class B2
{
public:
B2(int i)
{
b2 = i;
cout<<"Constructing B2."<<b2<<endl; }
void print() { cout<<b2<<endl;}
void p(){cout<<"123"<<endl;}
private:
int b2;
};
1
最新推荐文章于 2022-11-09 15:16:32 发布
class B2
{
public:
B2(int i)
{
b2 = i;
cout<<"Constructing B2."<<b2<<endl; }
void print() { cout<<b2<<endl;}
void p(){cout<<"123"<<endl;}
private:
int b2;
};