这是个什么情况?!
#include<stdio.h>int main()
{int a,b,c,max;
printf("please input a,b,c \n");
scanf("%d,%d,%d",&a,&b,&c);
max=a;
if(max<b)max=b;
if(max<c)max=c;
printf("the largest number is %d\n",max);
return 0;
}
输出结果却是:
--------------------Configuration: Cpp1 - Win32 Debug--------------------
Compiling...
Cpp1.cpp
Cpp1.obj - 0 error(s), 0 warning(s)
实在没想通,求指点!
PS:按照书上打的!