摘要: Person.hpp #ifndef Person_HPP #define Person_HPP #include <iostream> #include<string> #include<iomanip> //使用std命名空间 using std::cout; using std::endl; 阅读全文
posted @ 2021-12-14 22:55 Daisy_iris 阅读(9) 评论(2) 推荐(0) 编辑
摘要: 观察验证实验 #include <iostream> #include <typeinfo> class Graph { public: void draw() { std::cout << "Graph::draw() : just as an interface\n"; } }; class R 阅读全文
posted @ 2021-11-30 22:41 Daisy_iris 阅读(23) 评论(2) 推荐(0) 编辑
摘要: 动态数组类 头文件 #ifndef VECTOR_INT_HPP #define VECTOR_INT_HPP #include<iostream> class Vector_int { public: Vector_int(int n);//指定数组对象大小 Vector_int(int n, i 阅读全文
posted @ 2021-11-09 10:12 Daisy_iris 阅读(32) 评论(2) 推荐(0) 编辑
摘要: 恢复内容开始 线上预约登记 头文件.hpp #ifndef INFO_HPP #define INFO_HPP #include<iostream> #include<string> using namespace std; class Order { private: string nicknam 阅读全文
posted @ 2021-11-03 10:49 Daisy_iris 阅读(25) 评论(3) 推荐(0) 编辑
摘要: 设计一个复数类 #ifndef Complex_HPP #define Complex_HPP #include<iostream> #include<cmath> using namespace std; class Complex{ private: double real; double im 阅读全文
posted @ 2021-10-26 23:34 Daisy_iris 阅读(33) 评论(3) 推荐(0) 编辑