摘要: 任务2 1 #pragma once 2 #include <iostream> 3 #include<string> 4 #include <istream> 5 #include <sstream> 6 using std::endl; 7 using std::cout; 8 using st 阅读全文
posted @ 2021-12-11 21:15 under_world 阅读(42) 评论(5) 推荐(0) 编辑
摘要: 任务三 Battery.hpp #pragma once #include<iostream> using namespace std; class Battery { public: Battery(float n=70) :capacity{ n } {} float get_capacity( 阅读全文
posted @ 2021-11-27 19:54 under_world 阅读(26) 评论(2) 推荐(0) 编辑
摘要: 任务四 Vector_int.hpp #pragma once #include<iostream> #include<cassert> class Vector_int { public: Vector_int(int n); Vector_int(int n, int m); Vector_in 阅读全文
posted @ 2021-11-07 18:56 under_world 阅读(10) 评论(2) 推荐(0) 编辑
摘要: 恢复内容开始 任务五 lnfo.hpp #pragma once#include<iostream>#include<string>using namespace std;class lnfo { public: void in(string a,string b,string c,int d){ 阅读全文
posted @ 2021-11-02 23:10 under_world 阅读(28) 评论(3) 推荐(0) 编辑
摘要: 任务3 Complex.hpp #ifndef COMPLEX_H #define COMPLEX_H #include<iostream> #include<cmath> class Complex { public: Complex(double i = 0, double j = 0) :a{ 阅读全文
posted @ 2021-10-23 17:07 under_world 阅读(39) 评论(3) 推荐(0) 编辑