按照自己理解写的求3个数中的最大者出错了
#include<stdio.h>int main()
{
int max,a,b,c;
scanf("%d,%d,%d,&a,&b,&c");
max=c;
if(max<a)
max=a;
if(max<b)
max=b;
printf("max=%d\n",max);
return 0;
}
莋業3.cpp
C:\Windows\System32\莋業3.cpp(6) : warning C4700: local variable 'c' used without having been initialized
C:\Windows\System32\莋業3.cpp(7) : warning C4700: local variable 'a' used without having been initialized
C:\Windows\System32\莋業3.cpp(9) : warning C4700: local variable 'b' used without having been initialized
莋業3.obj - 0 error(s), 0 warning(s)
莋業3.obj - 1 error(s), 0 warning(s)
刚学了简单的编程想看看理解上的不足,求大侠们指点,出新问题了
[ 本帖最后由 疯狂的字母 于 2011-8-30 15:31 编辑 ]