运行不了
int max(int a,int b);main()
{
int x,y,z;
int max(int a,int b);
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;else return b;
}
缼少头文件预处理命令,#include<stdio.h>#include<stdio.h>
int max(int a,int b);
main()
{
int x,y,z;
int max(int a,int b);
printf("input two numbers:\n");
scanf("%d%d",&x,&y);
z=max(x,y);
printf("maxmum=%d\n",z);
}
int max(int a,int b)
{
if(a>b)return a;else return b;
}
这楼主是个VIP至尊啊!!你的代码没错误,只是缺少一个头文件,看2楼给你写的代码…… 恩恩 好滴 3qqqqqqqqqq
页:
[1]