#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();
 
}

相关文章:

  • 2021-07-15
  • 2022-01-25
  • 2022-12-23
  • 2022-12-23
  • 2021-09-03
  • 2021-09-28
  • 2021-12-29
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-30
  • 2022-12-23
  • 2021-11-08
  • 2022-12-23
相关资源
相似解决方案