65,189
社区成员




struct RTPoint;
struct Point
{
...
}
struct XYPoint : Point
{
double x, y;
translate(const RTPoint &);
...
}
struct RTPoint : Point
{
double r, t;
translate(const XYPoint &);
...
}
暂时先不考虑哪些该public,哪些该private,所以先用struct
我认为硬是将两个不同坐标系凑在一起是没有必要滴~ 既然要用面向对象,干脆弄个基类Point,把他们联系起来就是了