2020年7月2日

(C语言)买东西找零钱

摘要: #include <stdio.h>#include <string.h>#define N 1000void main(){ int x, y,sum=0; printf("请输入小明的钱和购买物品的钱:"); scanf("%d %d", &x, &y); x = x - y; sum += x 阅读全文

posted @ 2020-07-02 23:19 白胡 阅读(782) 评论(0) 推荐(0) 编辑

今日错误(C语言)(定义二维数组储存)

摘要: #include <stdio.h>#include <string.h>#define P 1000int main(){ int i, j,K,N; char s[P][P], temp[P]; printf("请输入N和K的值:"); scanf("%d %d", &N, &K); for ( 阅读全文

posted @ 2020-07-02 10:43 白胡 阅读(158) 评论(0) 推荐(0) 编辑

导航