摘要: task2 person.hpp #ifndef PERSON_H #define PERSON_H #include<iostream> using namespace std; class Person { public: Person(){} Person(string a,string b, 阅读全文
posted @ 2021-12-14 13:15 HJ5623 阅读(34) 评论(2) 推荐(0) 编辑
摘要: 实验任务2 实验源码 #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : just as 阅读全文
posted @ 2021-11-28 21:25 HJ5623 阅读(27) 评论(2) 推荐(0) 编辑
摘要: 实验任务4 vector_int.h #ifndef VECTOR_H #define VECTOR_H #include<iostream> #include<cassert> using namespace std; class Vector_int { public: Vector_int(i 阅读全文
posted @ 2021-11-07 15:24 HJ5623 阅读(21) 评论(3) 推荐(0) 编辑
摘要: 实验任务5 info.h #ifndef INFO_H #define INFO_H #include<iostream> #include<vector> #include<array> using namespace std; class info { public: info(string a 阅读全文
posted @ 2021-10-30 22:30 HJ5623 阅读(38) 评论(3) 推荐(0) 编辑
摘要: 实验结论: 实验任务3: Complex.h源码 #ifndef COMPLEX_HPP #define COMPLEX_HPP #include<cmath> #include<iostream> using namespace std; class Complex { public: Compl 阅读全文
posted @ 2021-10-22 23:24 HJ5623 阅读(44) 评论(4) 推荐(0) 编辑