出现基本错误,望指点!
# include<iostream.h>int max_value(int a,int b,int c);
int min_value(int a,int b,int c);
void main()
{
int x,y,z;
cout <<"请输入三个整数:";
cin>>x>>y>>z;
cout <<"最大值:"<<max_value(x,y,z)<<endl;
cout <<"最小值:"<<min_value(x,y,z)<<endl;
}
int max_value(int a,int b,int c);
{
if(a<b) a=b;
if(a<c) a=c;
return a;
}
int min_value(int a,int b,int c);
{
if(a>b) a=b;
if(a>c) a=c;
return a;
}
提示错误:
missing function header (old-style formal list?)