菜鸟请教一个简单问题
刚学C语言,很多不懂,请大家帮忙看一下#include <stdio.h>
int mid(int a,int b,int c);
{
int you
if(a>b>c)you=b;
if(c>b>a)you=b;
if(c>a>b)you=a;
if(b>a>c)you=a;
else you=c;
return you
}
void main()
{
int x,y,z,s;
printf("输入3个数");
scanf("%d,%d,%d",x,y,z);
s=mid(x,y,z);
printf("中间的数=%d",s);
}
错在哪?
VC弹出这样的话 --------------------Configuration: sdasda - Win32 Debug--------------------
Compiling...
sdasda.cpp
E:\sdasda.cpp(3) : error C2447: missing function header (old-style formal list?)
Error executing cl.exe.
sdasda.obj - 1 error(s), 0 warning(s)
请教下各位前辈。