摘要: task3.1 #include <iostream> #include <fstream> #include <array> #define N 5 int main() { using namespace std; array<int, N> x {97, 98, 99, 100, 101}; 阅读全文
posted @ 2022-12-04 16:28 风吹过le 阅读(11) 评论(0) 推荐(0) 编辑
摘要: task4 hpp #pragma once #include<iostream> using namespace std; class MachinePets { private: string nickname; public: const string get_nickname() { ret 阅读全文
posted @ 2022-11-29 21:26 风吹过le 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 实验任务5 #pragma once #include<iostream> #include<cassert> using namespace std; class vectorInt { public: vectorInt(int n); vectorInt(int n, int value); 阅读全文
posted @ 2022-11-06 16:19 风吹过le 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 实验五 hpp #pragma once #include<iostream> #include<iomanip> #include<string> using namespace std; class Info { public: Info(string name0,string contact0 阅读全文
posted @ 2022-10-25 20:32 风吹过le 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 实验4 complex.hpp #pragma once #include<iostream> #include<cmath> using namespace std; class Complex { public: Complex(double x0, double y); Complex(con 阅读全文
posted @ 2022-10-17 13:10 风吹过le 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 实验2 #include <iostream> using std::cout; using std::endl; class point { public: point(int x0 = 0, int y0 = 0); point(const point& p); ~point() = defau 阅读全文
posted @ 2022-10-01 20:07 风吹过le 阅读(7) 评论(0) 推荐(0) 编辑