主观

#include ﹤ iostream. h ﹥

class test {

private: int x, y;

public: void test1 ( int a, int b) { x = a; y = b;}

int max( );

};

int test: max( ) { if(x﹥y) return x; else return y;}

void main( ){

test a;

a. test1(1,3);

cout ﹤﹤ a. max ( ) ﹤﹤ endl;

}

参考答案
您可能感兴趣的试题
¥

订单号:

遇到问题请联系在线客服

订单号:

遇到问题请联系在线客服