问题
问答题
#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;}
答案
参考答案: