摘要: 实验二 Person.hpp #include<iostream> #include<string> using namespace std; class Person{ public: Person(){} Person(string a,string b,string c=" "):name(a 阅读全文
posted @ 2021-12-12 19:26 小流Yu大洋 阅读(24) 评论(2) 推荐(0) 编辑
摘要: task2 #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : just as an in 阅读全文
posted @ 2021-11-24 18:59 小流Yu大洋 阅读(49) 评论(2) 推荐(0) 编辑
摘要: #ifndef Vector_int_hpp #define Vector_int_hpp #include <iostream> using namespace std; class Vector_int { public: Vector_int(int n);//构造函数不含初始值 Vector 阅读全文
posted @ 2021-11-03 19:13 小流Yu大洋 阅读(17) 评论(2) 推荐(0) 编辑
摘要: #ifndef Info_hpp #define Info_hpp #include<iostream> #include<string> using namespace std; //Info类的定义 class Info { private: string nickname;//昵称 strin 阅读全文
posted @ 2021-10-26 20:54 小流Yu大洋 阅读(35) 评论(2) 推荐(0) 编辑
摘要: 恢复内容开始 恢复内容开始 Complex类的定义 #include<iostream> #include<math.h> using namespace std; //类的定义 class Complex { public: //构造函数 Complex(){}; //构造函数重载 Complex 阅读全文
posted @ 2021-10-21 17:26 小流Yu大洋 阅读(49) 评论(3) 推荐(0) 编辑