int max(int a,int b);用vs 总报错 求指导!
#include <stdio.h>#include<stdlib.h>
int main()
{
int max(int a,int b);
{
int a,b;
if (a>b)
return a;
else
return b;
}
system("pause");
}
为什么报错呢!
2017-02-27 19:32
程序代码:#include <stdio.h>
#include<stdlib.h>
int main()
{
int max(int a,int b);
int a, b;
scanf("%d%d", &a, &b);
printf("%d", max(a, b));
system("pause");
}
int max(int a, int b)
{
if (a>b)
return a;
else
return b;
}[此贴子已经被作者于2017-2-27 19:39编辑过]
2017-02-27 19:36
2017-02-27 20:06
2017-02-27 20:11
2017-02-27 20:19

2017-02-27 20:26
2017-02-27 20:56

2017-02-27 22:12
2017-02-27 22:33
2017-02-28 08:49