各位大神帮我看看问题吧
#include<stdio.h>int main()
{
int max(int x,int y);
int a,b,c;
scanf("%d,%d,&a,&b);
c=max(a,b);
printf("max=%d\n",c);
return 0;
}
int max(int x,int y)
{
int z;
if(x>y)z=x;
else z=y;
return(z);
}
C:\Users\20305\Desktop\new.cpp(6) : error C2001: newline in constant
C:\Users\20305\Desktop\new.cpp(7) : error C2146: syntax error : missing ')' before identifier 'c'
执行 cl.exe 时出错.
new.obj - 1 error(s), 0 warning(s)