function 'void __cdecl main(void)' already has a body
#include<iostream>#include"E:\c++\最大公约于最小公倍数\yes.cpp"usingnamespacestd;intmax(int,int...
#include <iostream>
#include "E:\c++\最大公约于最小公倍数\yes.cpp"
using namespace std;
int max(int,int);
int min(int,int);
void main()
{
cout<<"please input in two words";
int a,b;
cin>>a>>b;
cout<<max(a,b)<<min(a,b)<<endl;
}
结果不对,好像因为原来的文件已有main函数,但怎么解决 展开
#include "E:\c++\最大公约于最小公倍数\yes.cpp"
using namespace std;
int max(int,int);
int min(int,int);
void main()
{
cout<<"please input in two words";
int a,b;
cin>>a>>b;
cout<<max(a,b)<<min(a,b)<<endl;
}
结果不对,好像因为原来的文件已有main函数,但怎么解决 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询