1. 首页
  2. 数据库
  3. 其它
  4. vs2010编译C++静态成员函数的引用

vs2010编译C++静态成员函数的引用

上传者: 2020-12-31 13:41:43上传 PDF文件 17.37KB 热度 16次
//CTest.cpp:定义控制台应用程序的入口点。 // #include"stdafx.h" #include using namespace std; class Tc{ private: int a; static int b; public: Tc(int t){ a=t;b=b+t; } static void display(Tc C){ cout<<C.a<<''<<C.b<<endl; } }; int Tc
下载地址
用户评论