摘要: Person.hpp 1 #ifndef PERSON_HPP 2 #define PERSON_HPP 3 4 #include<string> 5 #include<iostream> 6 7 using namespace std; 8 9 class Person 10 { 11 publi 阅读全文
posted @ 2021-12-13 19:00 悟道树 阅读(38) 评论(3) 推荐(0) 编辑
摘要: task2 改动后 1 #include <iostream> 2 #include <typeinfo> 3 4 // definitation of Graph 5 class Graph 6 { 7 public: 8 void draw() { std::cout << "Graph::dr 阅读全文
posted @ 2021-11-29 20:11 悟道树 阅读(13) 评论(3) 推荐(0) 编辑
摘要: task4.hpp 1 #pragma once 2 #ifndef VECTOR_INT_HPP 3 #define VECTOR_INT_HPP 4 #include<iostream> 5 6 class vector_int 7 { 8 private: 9 int* p; 10 int s 阅读全文
posted @ 2021-11-09 21:18 悟道树 阅读(14) 评论(3) 推荐(0) 编辑
摘要: info.hpp 1 #include<iostream> 2 #include<string> 3 using namespace std; 4 class Info{ 5 6 public: 7 Info(string name,string phone,string place,string 阅读全文
posted @ 2021-11-02 17:57 悟道树 阅读(19) 评论(3) 推荐(0) 编辑
摘要: #ifndef COMPLEX_HPP #define COMPLEX_HPP #include<iostream> #include<cmath> using namespace std; class Complex { private: double real; double imag; pub 阅读全文
posted @ 2021-10-25 20:21 悟道树 阅读(23) 评论(3) 推荐(0) 编辑