陕西木质包装箱:请帮我看一下有哪3个ERRORS

来源:百度文库 编辑:中科新闻网 时间:2024/05/12 06:44:38
#include<iostream.h>
int max(int a,int b);
int max(int a,int b,int c);
float max(float a, float b);
void main()
{

cout<<max(34,56)<<endl;
cout<<max(233,543,565)<<endl;
cout<<max(43.32,34.54)<<endl;
}
int max(int a,int b)
{
int t=(a>b?a,b);
return t;
}
int max(int a,int b,int c)
{
int t=max(a,b);
int f=max(t,c);
return f;
}
float max(float a,float b)
{
float t=(a>b?a,b);
return t;
}