摘要:
task2 Perosn.hpp #pragma once #include<iostream> #include<cstring> #include<iomanip> using namespace std; class Person { string name; string telephone 阅读全文
摘要:
task3源代码 battery.hpp #include<iostream> using namespace std; class Battery { public: Battery(int a=70):capcity(a){} void get_capcity() { cout << capci 阅读全文
摘要:
task4代码: vector_int.hpp: #pragma once #include<iostream> using namespace std; class vector_int{ public: vector_int(int n) { p = new int[n](); cout<<"数 阅读全文
摘要:
实验5头文件 info.hpp #include<iostream> #include<cstring> using namespace std; class Info { private: string nickname; string contact; string city; int num; 阅读全文
摘要:
实验三 头文件代码: #include <iostream> #include <cmath> using namespace std; class Complex { friend double abs(const Complex& x) { return sqrt(x.imag * x.imag 阅读全文