摘要: task2 hpp #ifndef PERSON_HPP #define PERSON_HPP #include <iostream> #include <string> #include <iomanip> using namespace std; class Person{ public: Pe 阅读全文
posted @ 2021-12-15 00:30 黄金派大星 阅读(15) 评论(4) 推荐(0) 编辑
摘要: task3 Battery.hpp #ifndef BATTERY_HPP #define BATTERY_HPP #include<bits/stdc++.h> using namespace std; class Battery { public: Battery(int a=70):capac 阅读全文
posted @ 2021-12-01 10:49 黄金派大星 阅读(18) 评论(3) 推荐(0) 编辑
摘要: task4 hpp #ifndef VECTOR_INT_HPP #define VECTOR_INT_HPP #include<bits/stdc++.h> using namespace std; class Vector_int { public: Vector_int(int size,in 阅读全文
posted @ 2021-11-09 22:44 黄金派大星 阅读(6) 评论(3) 推荐(0) 编辑
摘要: task5 hpp: #ifndef INFO_HPP #define INFO_HPP #include<bits/stdc++.h> #include<vector> using namespace std; class Info { public: Info()=default; Info(s 阅读全文
posted @ 2021-11-03 15:04 黄金派大星 阅读(16) 评论(3) 推荐(0) 编辑
摘要: task3 Complex.cpp #ifndef COMPLEX_HPP #define COMPLEX_HPP #include<bits/stdc++.h> using namespace std; class Complex { public: Complex(); Complex (dou 阅读全文
posted @ 2021-10-24 15:09 黄金派大星 阅读(27) 评论(3) 推荐(0) 编辑