#include<iostream>
#include<string>
using namespace std;
int main()
{ class a{ public: bool b(const int c,const int d) { return c>b?c:d; } } bool g; int e=10,f=11; cout<<g.b(e,f)<<endl; return 0;
}
#include<iostream>
#include<string>
using namespace std;
int main()
{ class a{ public: int b(const int c,const int d) { returnc>b?c:d; } }; int g; int e=10,f=11; cout<<g.b(e,f)<<endl; return 0;
}
改成这样了?错误还有,哪里?谢谢
原帖由 [bold][underline]DG中专生[/underline][/bold] 于 2007-12-7 14:01 发表 [url=http://bbs.]" border="0" />[/url]
#include
#include
using namespace std;
int main()
{ class a{ public: int b(const int c,const int d) { returnc>b?c:d; } }; int g; int e=10,f=11; cout<<g.b(e,f)<<endl;