2021年12月12日
摘要: 任务二 源代码 Person.hpp #pragma once #include<iostream> #include <iomanip> #include<string> using namespace std; class Person { friend ostream& operator<<( 阅读全文
posted @ 2021-12-12 14:16 Popcorn_ZSJ 阅读(24) 评论(3) 推荐(0) 编辑
2021年11月27日
摘要: 任务二 源代码 task2.cpp #include<iostream> #include<typeinfo> class Graph { public: void draw() { std::cout << "Graph::draw() : just as an interface\n"; } } 阅读全文
posted @ 2021-11-27 09:17 Popcorn_ZSJ 阅读(16) 评论(3) 推荐(0) 编辑
2021年11月7日
摘要: 任务4 源代码: Vector_int.hpp #pragma once #include<iostream> #include<cassert> class Vector_int { public: Vector_int(int n); Vector_int(int n, int initial) 阅读全文
posted @ 2021-11-07 09:07 Popcorn_ZSJ 阅读(11) 评论(3) 推荐(1) 编辑
2021年10月31日
摘要: 任务5 源代码: info.hpp #ifndef INFO_HPP #define INFO_HPP #include<iostream> #include<string> #include<iomanip> using namespace std; class Info { public: In 阅读全文
posted @ 2021-10-31 13:22 Popcorn_ZSJ 阅读(26) 评论(5) 推荐(1) 编辑
2021年10月24日
摘要: 任务3 源代码 Complex.hpp #ifndef COMPLEX_HPP #define COMPLEX_HPP #include<iostream> #include<stdbool.h> #include<cmath> using namespace std; class Complex 阅读全文
posted @ 2021-10-24 16:42 Popcorn_ZSJ 阅读(18) 评论(3) 推荐(1) 编辑