class C1 {
int x;
int y;
C1();
getX();
setX(int x);
getY();
setY(int y);
compute();
operator +;
operator -;
operator >;
operator ==;
operator ;
}
存为C1.h,然后在C1.cpp中实现它们(不过这道题没让你写)
class C1 {
int x;
int y;
C1();
getX();
setX(int x);
getY();
setY(int y);
compute();
operator +;
operator -;
operator >;
operator ==;
operator ;
}
存为C1.h,然后在C1.cpp中实现它们(不过这道题没让你写)