struct Step { int x; int steps; Step(int xx,int s):x(xx),steps(s){} //就是这一句 };
这是构造函数,将xx的值赋给x,s的值赋给steps