摘要: Task2: person.hpp: #include <iostream> #include <string> #include <iomanip> using namespace std; class Person { public: Person() = default; Person(str 阅读全文
posted @ 2021-12-11 21:11 KingLRom 阅读(37) 评论(3) 推荐(0) 编辑
摘要: task2: Code: #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: virtual void draw() { std::cout << "Graph::draw() 阅读全文
posted @ 2021-11-24 21:46 KingLRom 阅读(34) 评论(3) 推荐(0) 编辑
摘要: task4: vector_int.hpp源码: #include <iostream> #include <cassert> using namespace std; class Vector_int { public: Vector_int(int _size) :size(_size) { c 阅读全文
posted @ 2021-11-05 14:41 KingLRom 阅读(36) 评论(3) 推荐(0) 编辑
摘要: task5: info.hpp源码: #ifndef Info_Hpp #define Info_Hpp #include <iostream> #include <string> #include <iomanip> using namespace std; class info { public 阅读全文
posted @ 2021-10-27 23:58 KingLRom 阅读(54) 评论(3) 推荐(1) 编辑
摘要: task3: Complex.hpp源码: #ifndef Complex_hpp #define Complex_hpp #include <iostream> #include <cmath> using namespace std; class Complex { public: Comple 阅读全文
posted @ 2021-10-20 22:57 KingLRom 阅读(62) 评论(5) 推荐(1) 编辑