编程是否错了,运行出错,是软件问题吗?
#include <stdio.h>int main()
{
int a,b,c,sum;
printf("please three integer: \n");
scanf("%d,%d,%d\n",&a,&b,&c);
sum=a+b+c;
printf("sum;\n",sum);
return 0;
}
scanf("%d,%d,%d\n",&a,&b,&c);//逗号!逗号!逗号!重要的话记得要说三遍
#include <stdio.h> int main() { int a,b,c,sum; printf("please three integer: \n"); scanf("%d,%d,%d",&a,&b,&c); sum=a+b+c; printf("sum;%d\n",sum); return 0; } /* please three integer: 1,2,3 sum;6 请按任意键继续. . . */请和你的代码详细对比一下