#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;
}
改成这样了?错误还有,哪里?谢谢