摘要: 三、实验内容 2. 实验任务2 Person.hpp: #ifndef PERSON_HPP #define PERSON_HPP #include<iostream> using namespace std; class Person{ private: string name,telephone 阅读全文
posted @ 2021-12-11 22:42 三面硬币 阅读(32) 评论(1) 推荐(0) 编辑
摘要: 四、实验结论 2. 实验任务2 程序源码: #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() 阅读全文
posted @ 2021-11-25 20:35 三面硬币 阅读(13) 评论(2) 推荐(0) 编辑
摘要: 四、实验结论 2. 实验任务4 动态int型数组类Vector_int的定义实现源码(vector_int.hpp) #ifndef VECTOR_INT_HPP #define VECTOR_INT_HPP #include<iostream> using namespace std; class 阅读全文
posted @ 2021-11-07 15:03 三面硬币 阅读(13) 评论(3) 推荐(0) 编辑
摘要: 四、实验结论 2. 实验任务5 Info.hpp文件源码: #ifndef INFO_HPP #define INFO_HPP #include<iostream> #include<iomanip> using namespace std; class Info{ public: Info(); 阅读全文
posted @ 2021-10-31 13:56 三面硬币 阅读(9) 评论(3) 推荐(0) 编辑
摘要: Complex.hpp #ifndef COMPLEX_HPP #define COMPLEX_HPP #include<iostream> #include<cmath> using namespace std; class Complex{ public: Complex(): real{0}, 阅读全文
posted @ 2021-10-24 21:40 三面硬币 阅读(16) 评论(2) 推荐(0) 编辑