求教那里错了!!
c4droid吧
全部回复
仅看楼主
level 2
#include<stdio.h>
int main()
{
int a, b, sum;
scanf("%d,%d", &a, &b);
sum = a + b;
printf("sum is %d\n ", sum);
return 0;
}
2016年07月20日 08点07分 1
level 2
//scanf("这里面没有逗号吧")
2016年07月20日 10点07分 2
level 14
就是运行的时候,别忘了逗号也要输入,否则你让人家scanf怎么给你匹配。
2016年07月20日 11点07分 3
level 2
麻烦帮我把代码修改下,我怎么改也不对。。
2016年07月20日 15点07分 5
a前面的地址符输错了,重新输就好了
2016年07月21日 03点07分
level 7
a前面的地址符输错了,重新输就好了
2016年07月21日 02点07分 7
level 14
7楼正解
2016年07月21日 04点07分 8
level 6
你在输入过程中换过 中文
2016年07月21日 04点07分 9
level 2
谢谢,大神们!
2016年07月21日 05点07分 11
level 2
可是这个结果竟然是我输入的a??请问为什么
2016年07月21日 06点07分 12
level 7
/data/data/com.n0n3m4.droidc/files/temp.c:27: error: unrecognized character \xe2 这是什么情况呀
2016年07月21日 06点07分 13
非英文字符
2016年07月22日 05点07分
level 9
scanf("%d %d", &a, &b);
里面最好改成空格,否则你要输入逗号(中间有什么符号就要输什么符号)
2016年07月22日 05点07分 14
level 5
注意编程的时候不要用中文输入键盘
2016年07月23日 05点07分 15
1