摘要: 任务二: person.hpp: #pragma once #include<iostream> #include<string> using namespace std; class Person { private:string name, telephone, email; public:Pe 阅读全文
posted @ 2021-12-14 15:58 在野车辙 阅读(30) 评论(3) 推荐(0) 编辑
摘要: 任务二: 1、 cpp: #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : just a 阅读全文
posted @ 2021-11-29 19:52 在野车辙 阅读(6) 评论(3) 推荐(0) 编辑
摘要: 任务四: vector.hpp: #include<iostream> using namespace std; class Vector_int { private:int n, ori; int* p; public: Vector_int(int x, int y=0) :n(x), ori( 阅读全文
posted @ 2021-11-08 21:29 在野车辙 阅读(31) 评论(3) 推荐(0) 编辑
摘要: 任务五: info.hpp: #include<iostream> #include<string> #include<vector> using namespace std; class info { private: string nickname,contact,city;int n; sta 阅读全文
posted @ 2021-10-30 22:09 在野车辙 阅读(18) 评论(3) 推荐(0) 编辑
摘要: 。 阅读全文
posted @ 2021-10-27 16:07 在野车辙 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 任务三: complex.h: #include<math.h> #include<iostream> class complex { private:double r,i; public:complex(){}; complex(double x,double y=0.0):r(x),i(y){} 阅读全文
posted @ 2021-10-23 11:02 在野车辙 阅读(41) 评论(4) 推荐(0) 编辑