摘要: 实验任务4 #ifndef VECTOR_INT_H #define VECTOR_INT_H #include<iostream> #include<cassert> using namespace std; class vector_int{ public: vector_int(int n,i 阅读全文
posted @ 2021-12-19 19:40 晨^O^ 阅读(26) 评论(0) 推荐(0) 编辑
摘要: task2、 Person.hpp #include<iostream> #include<string> #include<iomanip> using namespace std; class Person { private: string name; string telephone; st 阅读全文
posted @ 2021-12-11 12:16 晨^O^ 阅读(24) 评论(1) 推荐(0) 编辑
摘要: #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: virtual void draw() { std::cout << "Graph::draw() : just as an 阅读全文
posted @ 2021-11-30 23:26 晨^O^ 阅读(28) 评论(1) 推荐(0) 编辑
摘要: 实验五、 Info.hpp: #include<iostream> #include<string> using namespace std; class Info{ public: Info(string nc="***",string ct="******",string cy="**",int 阅读全文
posted @ 2021-10-29 11:28 晨^O^ 阅读(30) 评论(1) 推荐(0) 编辑
摘要: 一、实验任务3 不使用C++标准库,自行设计并实现一个复数类Complex: Complex.hpp: #include<iostream> #include<cmath> using namespace std; class Complex{ public: Complex(float x=0,f 阅读全文
posted @ 2021-10-23 12:57 晨^O^ 阅读(43) 评论(2) 推荐(0) 编辑