摘要: person.hpp #ifndef PERSOM_HPP #define PERSON_HPP #include<string> #include<iostream> #include<iomanip> using std::string; using std::ostream; using st 阅读全文
posted @ 2021-12-13 19:42 姬冰洁 阅读(34) 评论(3) 推荐(0) 编辑
摘要: 任务二: #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : just as an int 阅读全文
posted @ 2021-11-27 20:03 姬冰洁 阅读(28) 评论(3) 推荐(0) 编辑
摘要: 任务五源码: #ifndef INFO_HPP #define INFO_HPP #include<iostream> #include<iomanip> #include <string> using namespace std; class Info { public: Info(string 阅读全文
posted @ 2021-11-03 12:40 姬冰洁 阅读(20) 评论(4) 推荐(0) 编辑
摘要: 任务三源码: #ifndef COMPLEX_HPP #define COMPLEX_HPP #include <iostream> class Complex{ public: Complex(){}; Complex(double r,double i=0):real(r),imag(i){}; 阅读全文
posted @ 2021-10-26 23:33 姬冰洁 阅读(36) 评论(4) 推荐(0) 编辑