摘要:
person.hpp #ifndef PERSON_HPP #define PERSON_HPP #include <iostream> #include<string> #include<iomanip> using namespace std; class Person { public: Pe 阅读全文
摘要:
没加virtual之前: task1.cpp #include<iostream> #include<typeinfo> //definition of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : j 阅读全文
摘要:
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 阅读全文
摘要:
info.hpp #ifndef INFO_HPP #define INFO_HPP #include<iostream> #include<string> #include<vector> using namespace std; class info { public: info(string 阅读全文
摘要:
complex.hpp #ifndef COMPLEX_HPP #define COMPLEX_HPP #include<iostream> #include<cmath> using namespace std; class Complex { public: Complex():real(0), 阅读全文