摘要: 实验任务2 Person.hpp #include<iostream> #include<string> #include<iomanip> using namespace std; class Person { public: Person() {}; Person(string n, strin 阅读全文
posted @ 2021-12-10 15:18 Rougesss 阅读(30) 评论(3) 推荐(0) 编辑
摘要: 实验任务2 修改前: #include <iostream> #include <typeinfo> class Graph { public: void draw() { std::cout << "Graph::draw() : just as an interface\n"; } }; cla 阅读全文
posted @ 2021-11-27 15:34 Rougesss 阅读(34) 评论(3) 推荐(0) 编辑
摘要: 实验任务4 "vector_int.hpp" #ifndef VECTOR_INT_H #define VECTOR_INT_H #include<iostream> #include<cassert> using namespace std; class vector_int{ public: v 阅读全文
posted @ 2021-11-07 20:36 Rougesss 阅读(40) 评论(2) 推荐(0) 编辑
摘要: 实验任务5 info.hpp #include<iostream> #include<string> #include<iomanip> using namespace std; class info { public: info(string ni, string c, string ci, in 阅读全文
posted @ 2021-10-29 15:01 Rougesss 阅读(21) 评论(3) 推荐(0) 编辑
摘要: 实验任务3: "Complex.hpp" #include<iostream> #include<math.h> using namespace std; class Complex { public: Complex(double x = 0, double y = 0) :real(x), im 阅读全文
posted @ 2021-10-21 10:50 Rougesss 阅读(25) 评论(3) 推荐(0) 编辑