摘要: person.hpp #ifndef PERSON_HPP #define PERSON_HPP #include <iostream> #include<string> #include<iomanip> using namespace std; class Person { public: Pe 阅读全文
posted @ 2021-12-11 13:09 歧念 阅读(32) 评论(3) 推荐(0) 编辑
摘要: 没加virtual之前: task1.cpp #include<iostream> #include<typeinfo> //definition of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : j 阅读全文
posted @ 2021-11-27 20:59 歧念 阅读(22) 评论(2) 推荐(0) 编辑
摘要: vector_int.hpp #ifndef VECTOR_INT_HPP #define VECTOR_INT_HPP #include<iostream> using namespace std; class vector_int { public: vector_int(int n); vec 阅读全文
posted @ 2021-11-05 22:09 歧念 阅读(14) 评论(3) 推荐(0) 编辑
摘要: info.hpp #ifndef INFO_HPP #define INFO_HPP #include<iostream> #include<string> #include<vector> using namespace std; class info { public: info(string 阅读全文
posted @ 2021-10-30 15:40 歧念 阅读(30) 评论(3) 推荐(0) 编辑
摘要: complex.hpp #ifndef COMPLEX_HPP #define COMPLEX_HPP #include<iostream> #include<cmath> using namespace std; class Complex { public: Complex():real(0), 阅读全文
posted @ 2021-10-24 11:52 歧念 阅读(37) 评论(3) 推荐(0) 编辑