//shape函数定义如下:Shape(CPoint StartPnt, CPoint EndPnt, int shapenum) : StartPnt(StartPnt), EndPnt(EndPnt), shapenum(shapenum) {}//下面这句看不懂Line(Line&l) : shape(l.startpnt,l.endpnt,0){}