class Step{
private:
int num;
public:
Step(int num) {this->num = num;}
int getStep() {return num;}
Step& operator++(); //重载前自增运算符
Step operator++(int); //重载后自增运算符
};
Step& Step::operator++(){
num++;
return *this;
}
Step Step::operator++(int){
Step temp = *this;
++ *this;
return temp;
}