What does this code do and how does it work?

后端 未结 0 765
耶瑟儿~
耶瑟儿~ 2021-01-01 18:10
 class Pos{
    public:
        int x,y;
        Pos(const Pos &p, int dx=0, int dy=0){ *this = p; x+=dx; y+=dy;}
        Pos(int _x, int _y){  x=_x; y=_y; }
            


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题