摘要: TASK 2 Person.hpp 1 #ifndef PERSON_HPP 2 #define PERSON_HPP 3 4 #include<iostream> 5 #include<string> 6 #include<iomanip> 7 using namespace std; 8 9 c 阅读全文
posted @ 2021-12-12 22:00 zoracoding 阅读(7) 评论(3) 推荐(0) 编辑
摘要: task 2 改动后 1 #include<iostream> 2 #include<typeinfo> 3 4 //definition of Graph 5 class Graph 6 { 7 public: 8 void draw(){ std::cout<<"Graph::draw() : 阅读全文
posted @ 2021-11-29 21:34 zoracoding 阅读(8) 评论(3) 推荐(0) 编辑
摘要: task4 Vector_int hpp 1 #ifndef Vector_hpp 2 #define Vector_hpp 3 #include<iostream> 4 #include<cassert> 5 using namespace std; 6 class Vector_int 7 { 阅读全文
posted @ 2021-11-09 21:28 zoracoding 阅读(16) 评论(3) 推荐(0) 编辑
摘要: task 5.1 info.hpp 1 #include<string> 2 #include<iostream> 3 using namespace std; 4 class info{ 5 6 private: 7 string nickname,city,contact; 8 int n; 9 阅读全文
posted @ 2021-11-02 20:00 zoracoding 阅读(12) 评论(2) 推荐(0) 编辑
摘要: TASK 3:Complex.hpp 1 #include<math.h> 2 #include<iostream> 3 using namespace std; 4 class Complex 5 { 6 private: double real,imag; 7 public: 8 Complex 阅读全文
posted @ 2021-10-24 12:32 zoracoding 阅读(23) 评论(3) 推荐(0) 编辑