摘要: 假设程序涉及矩形。每个矩形由其左上角和右下角表示。为了让Rectangle对象尽可能小,可能把定义矩形的点放在一个辅助的struct内再让Rectangle去指它: 1 class Point { // 得到坐标 2 public: 3 Point(... 阅读全文
posted @ 2015-01-09 13:41 依然冷月 阅读(290) 评论(0) 推荐(0) 编辑