摘要: task2 Person.hpp #ifndef PERSON_HPP #define PERSON_HPP #include<iostream> #include<iomanip> using namespace std; class Person { private: string name; 阅读全文
posted @ 2021-12-11 11:41 小笙儿的妙妙 阅读(51) 评论(3) 推荐(0) 编辑
摘要: task 2 未修改前: #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : just a 阅读全文
posted @ 2021-11-27 12:47 小笙儿的妙妙 阅读(44) 评论(3) 推荐(0) 编辑
摘要: task 4 #ifndef VECTOR_INT_HPP #define VECTOR_INT_HPP #include<iostream> #include<cassert> using namespace std; class Vector_int { public: Vector_int(i 阅读全文
posted @ 2021-11-04 18:10 小笙儿的妙妙 阅读(35) 评论(3) 推荐(0) 编辑
摘要: task 5 info.hpp #ifndef INFO_HPP #define INFO_HPP #include<iostream> #include<string> using namespace std; class Info { public: Info(string x,string y 阅读全文
posted @ 2021-10-27 21:02 小笙儿的妙妙 阅读(29) 评论(3) 推荐(0) 编辑
摘要: task3. #ifndef COMPLEX_HPP #define COMPLEX_HPP #include<iostream> #include<cmath> using namespace std; class Complex { public: Complex(double x=0,doub 阅读全文
posted @ 2021-10-21 21:29 小笙儿的妙妙 阅读(28) 评论(3) 推荐(0) 编辑