vs2010编译C++静态成员函数的引用
//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
下载地址
用户评论