摘要: task2: person.hpp: #include <iostream> #include <string> using namespace std; class Person { public: Person() { } Person(string a, string b, string c 阅读全文
posted @ 2021-12-11 19:46 Re-cursion 阅读(30) 评论(4) 推荐(0) 编辑
摘要: 实验二 task2.cpp #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: virtual void draw() { std::cout << "Graph::draw() 阅读全文
posted @ 2021-11-25 12:52 Re-cursion 阅读(20) 评论(3) 推荐(0) 编辑
摘要: 实验任务4 vector_int.hpp #include<iostream> #include<cassert> using namespace std; class Vector_int{ public: Vector_int(int Size,int Value = 0); Vector_in 阅读全文
posted @ 2021-11-07 19:11 Re-cursion 阅读(33) 评论(4) 推荐(1) 编辑
摘要: 实验任务5 Info.hpp #include<iostream> #include<string> using namespace std; class Info{ public: Info(string name = "",string con = "",string ci = "",int n 阅读全文
posted @ 2021-10-30 18:02 Re-cursion 阅读(31) 评论(4) 推荐(0) 编辑
摘要: 实验任务3 "Complex.hpp" #include<iostream> #include<cmath> using namespace std; class Complex { public: Complex(double a = 0,double b = 0):real{a},imag{b} 阅读全文
posted @ 2021-10-21 18:35 Re-cursion 阅读(24) 评论(4) 推荐(1) 编辑