摘要: 《实验任务2》 “Person.hpp” #include <iostream> #include <algorithm> #include <string> #include <iomanip> using namespace std; class Person { private: string 阅读全文
posted @ 2021-12-09 21:51 人生何处不青山L 阅读(19) 评论(2) 推荐(0) 编辑
摘要: "Battery.hpp" #ifndef BATTERY_HPP #define BATTERY_HPP #include <bits/stdc++.h> using namespace std; class Battery { public: Battery(int _capacity = 70 阅读全文
posted @ 2021-11-24 17:26 人生何处不青山L 阅读(44) 评论(3) 推荐(0) 编辑
摘要: 实验任务4 “Vector_int.hpp" #ifndef VECTOR_INT #define VECTOR_INT #include <bits/stdc++.h> using namespace std; class Vector_int { public: Vector_int(int n 阅读全文
posted @ 2021-11-08 21:04 人生何处不青山L 阅读(9) 评论(4) 推荐(0) 编辑
摘要: 实验任务5 "info.hpp" #ifndef INFO_HPP #define INFO_HPP #include <bits/stdc++.h> using namespace std; class info { private: string name; string contact; st 阅读全文
posted @ 2021-10-27 17:23 人生何处不青山L 阅读(48) 评论(3) 推荐(0) 编辑
摘要: 实验任务3 "Complex.hpp" #ifndef COMPLEX_HPP #define COMPLEX_HPP #include <bits/stdc++.h> using namespace std; class Complex { public: Complex(double a=0.0 阅读全文
posted @ 2021-10-21 13:04 人生何处不青山L 阅读(45) 评论(4) 推荐(0) 编辑