摘要: class book{ char* title; int num_pages; int cur_page;public: book(const char* theTitle, int pages) :num_pages(pages) { title = new char[strlen(theTitl 阅读全文
posted @ 2016-04-28 19:47 huninglei 阅读(286) 评论(0) 推荐(0) 编辑
摘要: class shape{public: virtual float perimeter() const{ return 0; } virtual float area()const { return 0; } virtual const char* name()const { return "抽象图 阅读全文
posted @ 2016-04-28 10:12 huninglei 阅读(308) 评论(0) 推荐(0) 编辑