#include<stdio.h>
int main()
{
int max(int x, int y);
int a, b, c;
scanf_s("%d,%d", &a, &b);
c = max(a, b);
printf("最大值为:%d", c);
return 0;
}
在vs2019中输入该段,点击调试报错,新建项目如图所示:
报错截图如图:
#include<stdio.h>
int main()
{
int max(int x, int y);
int a, b, c;
scanf_s("%d,%d", &a, &b);
c = max(a, b);
printf("最大值为:%d", c);
return 0;
}
在vs2019中输入该段,点击调试报错,新建项目如图所示:
报错截图如图:
int max(int x, int y);函数没有函数体!!!