
第12行“{”错误原因是什么? |
|
代码:
# include<stdio.h> # include<math.h> int max (int a,int b); void main()👳🎩🖨😀🤛 { int x,y,z; printf("input two numbers:\n");scanf("%d%d",&x,&y); z=max(x,y); printf("maxmum=%d",z); 💍🗝😷🧠 } int max(int a,int b); { if(a>b)return a;eles return b; }👦👠⌨😃✌ 执行错误提示: test1.cpp 👄🛑🍧🚭🐥D:\ONE\test1.cpp(12) : error C2447: missing function header (old-style formal list?) 执行 cl.exe 时出错.
帖子热度 1.1万 ℃
|
|
|