摘要: task2 Person.hpp #ifndef PERSON_HPP #define PERSON_HPP #include<iostream> #include<string> #include<iomanip> using namespace std; class Person { publi 阅读全文
posted @ 2021-12-11 14:40 Rwang0 阅读(38) 评论(3) 推荐(0)
摘要: task2.cpp #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : just as a 阅读全文
posted @ 2021-11-24 21:10 Rwang0 阅读(52) 评论(3) 推荐(0)
摘要: task4.hpp #include <iostream> using std::cout; using std::endl; class Vector_int { public: Vector_int(int n); Vector_int(int n,int m); ~Vector_int(); 阅读全文
posted @ 2021-11-06 14:05 Rwang0 阅读(27) 评论(3) 推荐(0)
摘要: task5.hpp #ifndef INFO_HPP #define INFO_HPP #include <iostream> #include <string> #include <iomanip> using namespace std; class Info { public: Info(st 阅读全文
posted @ 2021-10-30 20:35 Rwang0 阅读(53) 评论(3) 推荐(1)
摘要: #include<iostream> #include<math.h> using namespace std; class Complex { public: Complex(double r=0,const double i=0) { real=r; imag=i; } Complex(cons 阅读全文
posted @ 2021-10-24 22:57 Rwang0 阅读(46) 评论(3) 推荐(2)