关于CPoint 这样写法对不CPoint p(50,50)stackCPoint ss.push( CPoint(p.x-1, p.y+10))//有些情况下
关于CPoint 这样写法对不
CPoint p(50,50);
stack<CPoint> s;
s.push( CPoint(p.x-1, p.y+10));//有些情况下不允许使用两个参数. 但是又要进行加减运算
[解决办法]
Point肯定是有x,y两个参数的,你要做运算,何必不重载操作符呢
[解决办法]
