摘要: 任务2 源代码 Person.hpp #include <iostream> #include <iomanip> #include <string> using namespace std; class Person { friend ostream &operator<<(ostream &ou 阅读全文
posted @ 2021-12-12 14:16 RickyChan_Jan 阅读(18) 评论(3) 推荐(0) 编辑
摘要: 任务2 源代码 task2.cpp #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : j 阅读全文
posted @ 2021-11-27 09:17 RickyChan_Jan 阅读(25) 评论(4) 推荐(0) 编辑
摘要: 任务4 源代码 vector_int.hpp #pragma once #include <iostream> #include <cassert> class Vector_int { public: Vector_int(int n, int init_num = 0); Vector_int( 阅读全文
posted @ 2021-11-07 09:07 RickyChan_Jan 阅读(16) 评论(3) 推荐(0) 编辑
摘要: 任务5 源代码: info.hpp #pragma once #include<iostream> #include<iomanip> class Info { public: Info(const std::string &nickname0 = "", const std::string &co 阅读全文
posted @ 2021-10-31 13:22 RickyChan_Jan 阅读(32) 评论(4) 推荐(0) 编辑
摘要: 任务3 源代码: Complex.hpp #pragma onnce #include <iostream> #include <cmath> class Complex { friend Complex add(const Complex &, const Complex &); friend b 阅读全文
posted @ 2021-10-24 16:42 RickyChan_Jan 阅读(39) 评论(4) 推荐(0) 编辑