摘要: Person.cpp #include <iostream> #include <fstream> #include <vector> using namespace std; class Person{ public: Person(); Person(string name0,string te 阅读全文
posted @ 2021-12-15 08:41 闲人某某田 阅读(48) 评论(1) 推荐(0)
摘要: 实验二代码 #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: virtual void draw() { std::cout << "Graph::draw() : just 阅读全文
posted @ 2021-11-30 20:58 闲人某某田 阅读(29) 评论(2) 推荐(0)
摘要: Vector_int.hpp #include <iostream> #include <cassert> #define N 100 using namespace std; class Vector { public: Vector(int n); // 构造函数,构造一个n*n的矩阵 Vect 阅读全文
posted @ 2021-11-09 23:36 闲人某某田 阅读(31) 评论(2) 推荐(0)
摘要: info.hpp #include<iostream> #include<string> #include<vector> using namespace std; class info{ public: info(string nickname0,string contact0,string ci 阅读全文
posted @ 2021-11-02 23:38 闲人某某田 阅读(31) 评论(2) 推荐(0)
摘要: 实验任务三 Complex.hpp文件源码 #include <iostream> #include <string> #include <iomanip> #include <cmath> using namespace std; class Complex { public: Complex() 阅读全文
posted @ 2021-10-27 10:20 闲人某某田 阅读(31) 评论(1) 推荐(0)