摘要: 实验二: task2.cpp: #include <iostream> #include <fstream> #include <vector> #include "Person.hpp" int main() { using namespace std; vector<Person> phone_ 阅读全文
posted @ 2021-12-11 15:10 叶金萌 阅读(37) 评论(3) 推荐(0) 编辑
摘要: 实验二: task2.cpp: #include <iostream> #include <typeinfo> class Graph{ public: void draw(){ std::cout<<"Graph::draw() : just as an interface\n"; } }; cl 阅读全文
posted @ 2021-11-25 13:21 叶金萌 阅读(17) 评论(3) 推荐(0) 编辑
摘要: 实验4: vector_int.hpp: #include <iostream> #include <cassert> using namespace std; class vector_int{ public: vector_int(int x,int y=1):m(x),n(y){ p=new 阅读全文
posted @ 2021-11-09 21:15 叶金萌 阅读(33) 评论(3) 推荐(0) 编辑
摘要: 实验五: Info.hpp: #include <iostream> #include <string> using namespace std; class Info{ public: Info(string a=" ",string b=" ",string c=" ",int d=0):nic 阅读全文
posted @ 2021-11-01 13:04 叶金萌 阅读(45) 评论(3) 推荐(0) 编辑
摘要: 实验3: Complex.hpp: #ifndef Complex_hp #define Complex_hp #include <iostream> #include <cmath> using namespace std; class Complex { public: Complex() = 阅读全文
posted @ 2021-10-25 22:38 叶金萌 阅读(38) 评论(3) 推荐(0) 编辑