文档分类
面向对象程序设计期末考试
class CE{
private:
int a,b;
int getmax(){return(a>b?a:b);}
public:
int c;
void SetValue(int x1,int x2,int x3){
a=x1,b=x2,c=x3;
}
int GetMax();
};
int CE::GetMax(){
int d=getmax();
return(d>c?d:c);