摘要: Person.hpp #pragma once #include<bits/stdc++.h> using namespace std; class person{ private: string name; string telephone; string email; public: perso 阅读全文
posted @ 2021-12-11 14:35 zhzhang-hong 阅读(33) 评论(1) 推荐(0) 编辑
摘要: electricCar.hpp #include<string> using namespace std; class Battery{ public: Battery(int cap=70); ~Battery(); int get_capacity(); private: int capacit 阅读全文
posted @ 2021-11-24 23:31 zhzhang-hong 阅读(10) 评论(1) 推荐(0) 编辑
摘要: Vector_int.hpp #include<string> using namespace std; class Vector_int{ public: Vector_int(int n); Vector_int(int n,int val); ~Vector_int(); int &at(in 阅读全文
posted @ 2021-11-05 15:59 zhzhang-hong 阅读(32) 评论(1) 推荐(0) 编辑
摘要: TextCoder.hpp #include<string> using namespace std; class TextCoder{ public: TextCoder(); TextCoder(string text); ~TextCoder(); string encoder(); stri 阅读全文
posted @ 2021-10-28 00:37 zhzhang-hong 阅读(45) 评论(2) 推荐(2) 编辑
摘要: complex.h #include "complex.h" #include <iostream> int main() { using namespace std; complex c1(3, -4); const complex c2(4.5); complex c3(c1); cout << 阅读全文
posted @ 2021-10-20 23:53 zhzhang-hong 阅读(21) 评论(3) 推荐(0) 编辑