摘要: Person.hpp #ifndef PERSON_HPP #define PERSON_HPP #include<iostream> #include<string> using namespace std; class Person{ public: Person(){}; Person(str 阅读全文
posted @ 2021-12-11 23:08 不愿再有早八 阅读(20) 评论(3) 推荐(0) 编辑
摘要: Battery.hpp #ifndef BATTERY_HPP #define BATTERY_HPP #include<iostream> class Battery{ public: Battery(int a); int get_capacity(){return capacity;}; pr 阅读全文
posted @ 2021-11-28 19:37 不愿再有早八 阅读(18) 评论(3) 推荐(0) 编辑
摘要: Vector_int.hpp #ifndef VECTOR_INT_HPP #define VECTOR_INT_HPP #include<iostream> #include<cassert> using namespace std; class Vector_int{ public: Vecto 阅读全文
posted @ 2021-11-09 16:23 不愿再有早八 阅读(15) 评论(3) 推荐(0) 编辑
摘要: task5 Info.hpp 1 #ifndef INFO_HPP 2 #define INFO_HPP 3 #include<iostream> 4 #include<string> 5 using namespace std; 6 7 class Info{ 8 public: 9 Info(s 阅读全文
posted @ 2021-10-28 15:36 不愿再有早八 阅读(37) 评论(3) 推荐(0) 编辑
摘要: #ifndef COMPLEX_HPP #define COMPLEX_HPP #include<iostream> #include<cmath> using namespace std; class Complex{ public: Complex(); Complex(double a); C 阅读全文
posted @ 2021-10-22 23:11 不愿再有早八 阅读(28) 评论(3) 推荐(0) 编辑