摘要: 实验任务2 Person.hpp #ifndef PERSON_H #define PERSON_H #include <iostream> #include <iomanip> #include <string> using std::cout; using std::cin; using std 阅读全文
posted @ 2021-12-15 14:20 折木奉太郎A 阅读(34) 评论(2) 推荐(0) 编辑
摘要: 实验任务二 task2.cpp #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: virtual void draw() { std::cout << "Graph::draw 阅读全文
posted @ 2021-12-01 07:33 折木奉太郎A 阅读(30) 评论(2) 推荐(0) 编辑
摘要: 实验4 Vector_int.hpp #ifndef VECTOR_INT_HPP #define VECTOR_INT_HPP #include <iostream> using namespace std; class Vector_int{ public: Vector_int(int nn, 阅读全文
posted @ 2021-11-10 12:54 折木奉太郎A 阅读(10) 评论(1) 推荐(0) 编辑
摘要: info.cpp 1 #include<iostream> 2 #include<string> 3 4 using namespace std; 5 6 class Info 7 { 8 private: 9 string nickname; 10 string contact; 11 strin 阅读全文
posted @ 2021-11-03 14:45 折木奉太郎A 阅读(35) 评论(2) 推荐(0) 编辑
摘要: 实验三 #include <iostream> #include <cmath> using namespace std; class Complex{ private: double real; double imag; public: Complex(); Complex(double a,do 阅读全文
posted @ 2021-10-27 13:06 折木奉太郎A 阅读(42) 评论(2) 推荐(0) 编辑