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
最新推荐文章于 2024-04-29 21:54:51 发布
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;
};