1 #include "stdafx. h"
2 #include ﹤iostream﹥
3 using namespace std;
4 class Test
5 { prvate:
6 int x, y=20;
7 public:
8 Test(int i, int j) { x=i, y=j; }
9 int getx( ) { return x; }
10 int gety ( ) { return y; }
11 };
12 void main( )
13 { Test mt(10,20);
14 cout ﹤﹤mt. getx( )﹤﹤ endl;
15 cout ﹤﹤mt. gety( )﹤﹤ endl;
16 }
订单号:
遇到问题请联系在线客服
订单号:
遇到问题请联系在线客服