![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
上机错题
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 · 1159 阅读 · 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 · 975 阅读 · 0 评论