摘要: 实验任务2 Person.hpp #ifndef _PERSON_HPP_ #define _PERSON_HPP_ #include <iostream> #include <iomanip> #include <string> using namespace std; const int SW 阅读全文
posted @ 2021-12-12 13:38 Pommissarzhu 阅读(45) 评论(1) 推荐(0)
摘要: 实验任务2 task2.cpp #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : jus 阅读全文
posted @ 2021-11-25 20:54 Pommissarzhu 阅读(30) 评论(2) 推荐(1)
摘要: 实验任务4 vector_int.hpp #ifndef _VECTOR_INT_HPP_ #define _VECTOR_INT_HPP_ #include <iostream> #include <cassert> using namespace std; class Vector_int { 阅读全文
posted @ 2021-11-07 16:52 Pommissarzhu 阅读(32) 评论(3) 推荐(1)
摘要: 实验任务5 Info.hpp #include <iostream> #include <string> using namespace std; class Info { public: Info(string a, string b, string c, int d); void print() 阅读全文
posted @ 2021-10-30 17:17 Pommissarzhu 阅读(33) 评论(3) 推荐(1)
摘要: 实验任务三 //Complex.hpp #include<iostream> #include<cmath> using namespace std; class Complex { public: Complex() : real{0}, imag{0} {}; Complex(double r, 阅读全文
posted @ 2021-10-20 19:26 Pommissarzhu 阅读(33) 评论(3) 推荐(2)