摘要: 实验任务二 #main_task2.cpp 1 #include<iostream> 2 #include<fstream> 3 #include<vector> 4 #include"Person_task.hpp" 5 6 using namespace std; 7 8 int main() 阅读全文
posted @ 2021-12-09 22:34 曾经蜡笔没有小新i 阅读(47) 评论(2) 推荐(0) 编辑
摘要: 实验任务二 #程序源码 1 #include <iostream> 2 #include <typeinfo> 3 4 // definitation of Graph 5 class Graph 6 { 7 public: 8 virtual void draw() { std::cout << 阅读全文
posted @ 2021-11-24 01:04 曾经蜡笔没有小新i 阅读(51) 评论(2) 推荐(0) 编辑
摘要: 实验任务四 vector_int.hpp 1 #ifndef VECTOR_INT_HPP 2 #define VECTOR_INT_HPP 3 #include<iostream> 4 #include<cassert> 5 6 using namespace std; 7 class Vecto 阅读全文
posted @ 2021-11-02 22:22 曾经蜡笔没有小新i 阅读(44) 评论(2) 推荐(0) 编辑
摘要: #任务5 info.hpp 1 #ifndef INFO_HPP 2 #define INFO_HPP 3 4 #include<iostream> 5 #include<string> 6 using namespace std; 7 8 class info 9 { 10 public: 11 阅读全文
posted @ 2021-10-28 19:17 曾经蜡笔没有小新i 阅读(25) 评论(2) 推荐(0) 编辑
摘要: 1 #ifndef COMPLEX_HPP 2 #define COMPLEX_HPP 3 4 //complex类定义 5 #include<iostream> 6 #include<math.h> 7 using namespace std; 8 class Complex 9 { 10 pub 阅读全文
posted @ 2021-10-21 17:24 曾经蜡笔没有小新i 阅读(19) 评论(3) 推荐(0) 编辑