![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c语言
龑承儒
这个作者很懒,什么都没留下…
展开
-
积水问题
积水问题 已知地形,求积水 #include<stdio.h> #define N 100 int main(){ int i, max = 0, j, len = 0, en = 0, count = 0, result = 0; int d[N] = {0}; printf("请输入地形:"); for(i = 0; i < N && scanf("%d", d + i) != EOF && d[i] != -1; i++){ if(d[.原创 2020-06-12 12:51:32 · 303 阅读 · 0 评论 -
链表实现加法
不会溢出的加法运算(链表实现) 链表做加法 #include<stdio.h> #include<malloc.h> #include<stdlib.h> typedef struct _Num{ int value; struct _Num* next; } Num; int main(){ Num *c, *l, *t, *s, *f; int sum = 0, tmp = 0; c = (Num*)malloc(sizeo原创 2020-06-12 12:46:36 · 278 阅读 · 0 评论 -
不带括号的计算式后缀表达式
不带括号的计算式后缀表达式写着玩,带括号的扩展一下 写着玩,带括号的扩展一下 #include<stdio.h> #include<string.h> int main(){ int count = 0, max = 0, i = 0; char num[20], temp[20], result[20][20]; char ps, md, bet; printf("请输入字符串:\n"); memset(result, '\0', sizeof(result)); me原创 2020-06-10 13:33:37 · 353 阅读 · 0 评论