摘要: Test 2: Person.hpp: #ifndef PERSON_HPP #define PERSON_HPP #include<iostream> #include<string> using namespace std; class Person { private: string name 阅读全文
posted @ 2021-12-15 14:18 Hershel-Hjh 阅读(16) 评论(2) 推荐(0) 编辑
摘要: task2.cpp #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : just as a 阅读全文
posted @ 2021-11-26 09:49 Hershel-Hjh 阅读(10) 评论(3) 推荐(0) 编辑
摘要: vector_int.hpp: #ifndef VECTOR_INT_H #define VECTOR_INT_H #include<iostream> #include<cassert> using namespace std; class vector_int { public: vector_ 阅读全文
posted @ 2021-11-09 22:53 Hershel-Hjh 阅读(39) 评论(4) 推荐(0) 编辑
摘要: task5 : "info.h" #include<iostream> #include<string> #include<iomanip> using namespace std; class info { private: string nickname; string contact; str 阅读全文
posted @ 2021-10-30 18:40 Hershel-Hjh 阅读(44) 评论(3) 推荐(0) 编辑
摘要: task3 Complex.hpp #include<iostream> #include<cmath> using namespace std; class Complex { private: double real; double imag; public: Complex(double x 阅读全文
posted @ 2021-10-24 09:24 Hershel-Hjh 阅读(33) 评论(3) 推荐(0) 编辑