摘要: #ifndef PERSON_HPP #define PERSON_HPP #include<string> #include<iostream> #include<iomanip> using namespace std; class Person { private:string name, t 阅读全文
posted @ 2021-12-14 18:53 小小埋 阅读(21) 评论(3) 推荐(0) 编辑
摘要: #ifndef BATTERY_HPP #define BATTERY_HPP class Battery { private:double capacity; public:Battery(double ca = 70) :capacity(ca) {} double get_capacity() 阅读全文
posted @ 2021-11-27 13:38 小小埋 阅读(18) 评论(3) 推荐(0) 编辑
摘要: task5 #ifndef MATRIX_H #define MATRIX_H #include <iostream> #include <cassert> class Matrix { public: Matrix(int n); // 构造函数,构造一个n*n的矩阵 Matrix(int n, 阅读全文
posted @ 2021-11-09 18:36 小小埋 阅读(8) 评论(3) 推荐(0) 编辑
摘要: #ifndef info_HPP #define info_HPP #include<iostream> #include<string> using namespace std; class info{ private:string nickname,contact,city; int n; pu 阅读全文
posted @ 2021-11-02 13:08 小小埋 阅读(9) 评论(3) 推荐(0) 编辑
摘要: #ifndef Complex_HPP #define Complex_HPP #include<iostream> class Complex{ private:double real,imag; public:Complex(){} Complex(double x1):real(x1),ima 阅读全文
posted @ 2021-10-27 13:44 小小埋 阅读(42) 评论(3) 推荐(0) 编辑