11 2021 档案

摘要:#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 小小埋 阅读(39) 评论(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 小小埋 阅读(27) 评论(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 小小埋 阅读(29) 评论(3) 推荐(0)