应用题 #include < iostream, h > class test { private : int x, y; public : void testl ( 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. testl ( 1,3); cout << a. max ( ) << endl; }
【正确答案】int test:max() 成员函数定义时用"::/
【答案解析】