#include "stdafx.h"
#include "iostream"
using  namespace std;
class C{
public:
 int  GetX(){return X;}
 void SetX(int X){this->X = X;}
private:
 int X;
};
void main(){
 C c;
 cout<<c.GetX()<<endl;
 cin.get();
 c.SetX(111);
 cout<<c.GetX()<<endl;
 cin.get();
 
}
    大部分转载 小部分自写
                    
                
                
            
        
浙公网安备 33010602011771号