摘要: task2 person.hpp #include<iostream> #include<string> #include<iomanip> using namespace std; class Person { public: Person(string name0,string telephon 阅读全文
posted @ 2021-12-13 16:48 纸鸢* 阅读(24) 评论(2) 推荐(0) 编辑
摘要: task2.cpp 改动后代码 #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: virtual void draw() { std::cout << "Graph::draw 阅读全文
posted @ 2021-11-29 19:19 纸鸢* 阅读(31) 评论(2) 推荐(0) 编辑
摘要: task4 vector_int.hpp代码如下 #include<iostream> #include<cassert> using namespace std; class Vector_int{ public: Vector_int(int n); Vector_int(int n,int m 阅读全文
posted @ 2021-11-06 20:24 纸鸢* 阅读(11) 评论(2) 推荐(0) 编辑
摘要: task5 Info.hpp代码如下 #include<iostream> #include<string> using namespace std; class Info{ public: Info(string nickname1,string contact1,string city1,int 阅读全文
posted @ 2021-10-31 16:34 纸鸢* 阅读(38) 评论(3) 推荐(1) 编辑
摘要: task 3 Complex.hpp 代码如下: #include<iostream> #include<math.h> using namespace std; class Complex{ public: Complex(); Complex(double real1,double imag1) 阅读全文
posted @ 2021-10-22 10:24 纸鸢* 阅读(68) 评论(3) 推荐(1) 编辑
摘要: task4 User.hpp 代码如下: #include<iostream> #include<string> using namespace std; class User{ public: User(string name1); User(string name1,string passwor 阅读全文
posted @ 2021-10-22 10:18 纸鸢* 阅读(16) 评论(0) 推荐(0) 编辑
摘要: task3 Complex.hpp 代码 #include<iostream> #include<math.h> using namespace std; class Complex{ public: Complex(); Complex(double real1,double imag1); Co 阅读全文
posted @ 2021-10-20 22:54 纸鸢* 阅读(14) 评论(0) 推荐(0) 编辑