摘要: #include <iostream> #include <fstream> #include <vector> #include "Person.hpp" int main() { using namespace std; vector<Person> phone_book; Person p; 阅读全文
posted @ 2021-12-14 20:51 玖玖玖璐 阅读(4) 评论(3) 推荐(0) 编辑
摘要: #include <iostream>#include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : just as an interface 阅读全文
posted @ 2021-11-30 20:49 玖玖玖璐 阅读(29) 评论(3) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; class Vector_int { public: Vector_int(int n);//构造函数 Vector_int(int n, int starting);//重载构造函数 Vector_int(Vector 阅读全文
posted @ 2021-11-07 19:25 玖玖玖璐 阅读(14) 评论(3) 推荐(0) 编辑
摘要: #include <iostream> #include <string> using namespace std; class info { public: info(string nickname, string contact, string city, int n) : nickname{ 阅读全文
posted @ 2021-11-03 09:58 玖玖玖璐 阅读(16) 评论(3) 推荐(0) 编辑
摘要: #include <iostream> #include <cmath> using namespace std; class complex { public: complex(double m, double n = 0) : real{ m }, imag{ n }{} complex(com 阅读全文
posted @ 2021-10-26 00:18 玖玖玖璐 阅读(38) 评论(3) 推荐(0) 编辑