为什么按了回车就闪退了呢
mingw吧
全部回复
仅看楼主
level 3
迷你肥皂 楼主
小白一个,为什么输入数字之后就闪退了呢,什么也没有提示
2018年08月01日 03点08分 1
level 3
迷你肥皂 楼主
#include <stdio.h>
main()
{
int a,b,c;
printf("Please input the number a:");
scanf("%d" , &a);
printf("Please input the number b:");
scanf("%d" , &b);
c=a+b;
printf("这两个数的和是:\n%d+%d=%d",a,b,c);
getchar();
return 0;
}
代码在这
2018年08月01日 03点08分 2
1