摘要: task2: Person.hpp #ifndef PERSON_HPP #define PERSON_HPP #include<iostream> #include<string> using namespace std; class Person { private: string name; 阅读全文
posted @ 2021-12-11 21:24 玖馆不打烊 阅读(29) 评论(4) 推荐(0) 编辑
摘要: task2.1: #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : just as an 阅读全文
posted @ 2021-11-29 22:45 玖馆不打烊 阅读(7) 评论(3) 推荐(0) 编辑
摘要: Vector_int.hpp #include<iostream> using namespace std; class Vector_int { public: Vector_int(int len) { size = len; a = new int[size]; cout << "Constr 阅读全文
posted @ 2021-11-08 16:23 玖馆不打烊 阅读(21) 评论(3) 推荐(0) 编辑
摘要: info.hpp: #include<iostream> #include<string> using namespace std; class info { public: info(string name, string con, string cs, int m) :nickname(name 阅读全文
posted @ 2021-10-31 19:40 玖馆不打烊 阅读(18) 评论(2) 推荐(0) 编辑
摘要: Complex.hpp #include<iostream> #include<cmath> using namespace std; class Complex { public: Complex(double r = 0.0, double i = 0.0) :real(r), imag(i) 阅读全文
posted @ 2021-10-23 23:06 玖馆不打烊 阅读(49) 评论(3) 推荐(0) 编辑