64,649
社区成员
发帖
与我相关
我的任务
分享
class Increase{
public:
Increase(int x):value(x){}
Increase(const Increase& in) { //拷贝构造函数
cout << "in copy constructor" << endl;
this->value = in.value ;
}
Increase & operator++();
Increase operator++(int);
void display(){ cout <<"the value is " <<value <<endl; }
private:
int value;
};