摘要: task2 Perosn.hpp #pragma once #include<iostream> #include<cstring> #include<iomanip> using namespace std; class Person { string name; string telephone 阅读全文
posted @ 2021-12-12 19:07 不要说我笨 阅读(9) 评论(2) 推荐(0) 编辑
摘要: task3源代码 battery.hpp #include<iostream> using namespace std; class Battery { public: Battery(int a=70):capcity(a){} void get_capcity() { cout << capci 阅读全文
posted @ 2021-11-29 19:10 不要说我笨 阅读(11) 评论(1) 推荐(0) 编辑
摘要: task4代码: vector_int.hpp: #pragma once #include<iostream> using namespace std; class vector_int{ public: vector_int(int n) { p = new int[n](); cout<<"数 阅读全文
posted @ 2021-11-08 19:12 不要说我笨 阅读(10) 评论(1) 推荐(0) 编辑
摘要: 实验5头文件 info.hpp #include<iostream> #include<cstring> using namespace std; class Info { private: string nickname; string contact; string city; int num; 阅读全文
posted @ 2021-11-03 10:28 不要说我笨 阅读(8) 评论(2) 推荐(0) 编辑
摘要: 实验三 头文件代码: #include <iostream> #include <cmath> using namespace std; class Complex { friend double abs(const Complex& x) { return sqrt(x.imag * x.imag 阅读全文
posted @ 2021-10-23 18:30 不要说我笨 阅读(9) 评论(3) 推荐(0) 编辑