摘要: 实验任务2 Person.hpp #include<iostream> #include<string> using namespace std; class Person{ public: Person(){}; Person(string a,string b,string c=" "):nam 阅读全文
posted @ 2021-12-12 16:20 潘俊杰 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 实验任务2 #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : just as an in 阅读全文
posted @ 2021-11-26 12:36 潘俊杰 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 实验任务四 vector.hpp #include<iostream> using namespace std; class Vector_int{ public: Vector_int(int n):size(n){ a=new int[size]; cout<<"Default Construc 阅读全文
posted @ 2021-11-07 11:53 潘俊杰 阅读(10) 评论(1) 推荐(0) 编辑
摘要: 实验结论: 实验任务5: info.hpp #include <iostream> #include <vector> #include <string> using namespace std; class Info{ private: string nickname; string contac 阅读全文
posted @ 2021-10-28 21:04 潘俊杰 阅读(10) 评论(2) 推荐(0) 编辑
摘要: 实验结论: 实验任务三: Complex.hpp #include<iostream> #include<math.h> using namespace std; class Complex { public: Complex():real(0),imag(0){} Complex(float x) 阅读全文
posted @ 2021-10-22 19:20 潘俊杰 阅读(35) 评论(3) 推荐(0) 编辑