#include < iostream > using namespace std; class base { private: const int a; static const int b; public: base( int); void Show(); }; _____________=22;
_____________: a (i){ } //初始化 void
#include < iostream. h > class test{ private: static int x; int y; public: void test1 ( int a, int b) { x = a; y = b; } }; void main() { test a; a. test1 (2,3) ; }
#include<iostream.h> class Test { int n; static int sum; public: Test(int x){n=x;} void add(){_____________;} void disp() { cout<<{"n="<<n<<",sum="<<sum<<endl; } }
#include < iostream. h > class Class { public: static int var; Class() { var++; } }; int Class :: var = 0; void main() { cout < < ″Class :: var =″ < < Class :: var < < end
下列说法不正确的是()
设类T将其他类对象作为成员,则创建类T的对象时,下列描述正确的是( )
友员的作用之一是()