
上机错题
Littlsecr
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
动物园(虚函数与多态)------已解决
问题:未释放内存#include <iostream> #include <string> using namespace std; class Animal { public: Animal() {} virtual void Speak() {}; }; class Tiger : public Animal { private: st...原创 2018-05-31 17:13:46 · 1262 阅读 · 0 评论 -
图形输出(抽象类+多层继承)------已解决
问题:没有按照要求定义设置名称的纯虚函数#include <iostream> #include <string> #include <iomanip> using namespace std; class Shape { protected: string name; double x, y; public: Shape() ...原创 2018-05-31 17:07:51 · 1041 阅读 · 0 评论