为什么编译木问题,连接老出错呢。。。。
求高手解答。。。。#include <iostream>
using namespace std;
int Min(int a,int b)
{
return a<b?a:b;
}
float Min(float x,float y)
{
return x<y?x:y;
}
int main()
{
int a,b;
float x,y;
cout<<"输入整数a,b:";
cin>>a>>b;
cout<<a<<","<<b<<"的最小值为"<<Min(a,b)<<endl;
cout<<"输入浮点数x,y:";
cin>>x>>y;
cout<<x<<","<<y<<"的最小值为"<<Min(x,y)<<endl;
system("PAUSE");
return 0;
}