摘要: 实验四 继承 实验任务二 task2.cpp #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: virtual void draw() { std::cout << "Grap 阅读全文
posted @ 2021-11-30 22:59 胖头鱼鱼鱼鱼 阅读(45) 评论(3) 推荐(0)
摘要: 实验四 Vector_int.hpp #include <iostream> #include <cassert> #include <cstring> using namespace std; class Vector_int { public: Vector_int(int _size) :si 阅读全文
posted @ 2021-11-10 15:02 胖头鱼鱼鱼鱼 阅读(38) 评论(3) 推荐(0)
摘要: 实验任务五 info.hpp #ifndef info_hpp #define info_hpp #include <iostream> #include <string> #include <iomanip> using namespace std; class info { public: in 阅读全文
posted @ 2021-11-03 11:56 胖头鱼鱼鱼鱼 阅读(17) 评论(2) 推荐(0)
摘要: 实验任务三 Complex.hpp #ifndef _Complex_hpp #define _Complex_hpp #include <iostream> #include <cmath> using namespace std; class Complex { public: Complex( 阅读全文
posted @ 2021-10-24 08:53 胖头鱼鱼鱼鱼 阅读(26) 评论(3) 推荐(0)