摘要: 实验三 task3_1.cpp 1 #include <iostream> 2 #include <fstream> 3 #include <array> 4 #define N 5 5 6 int main() { 7 using namespace std; 8 9 array<int, N> 阅读全文
posted @ 2022-12-04 21:37 摆烂青年 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 实验四 pets.hpp 1 #pragma once 2 #include<iostream> 3 #include<string> 4 using namespace std; 5 class MachinePets { 6 public: 7 MachinePets()=default; 8 阅读全文
posted @ 2022-11-29 19:08 摆烂青年 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 实验任务5 vectorInt.hpp 1 #pragma once 2 #include<iostream> 3 #include<cassert> 4 using namespace std; 5 6 class vectorInt { 7 public: 8 vectorInt(int n); 阅读全文
posted @ 2022-11-07 23:40 摆烂青年 阅读(7) 评论(0) 推荐(0) 编辑
摘要: task5 Info.h 1 #pragma once 2 #include <iostream> 3 #include <vector> 4 #include <string> 5 using namespace std; 6 7 class info { 8 public: 9 info(str 阅读全文
posted @ 2022-10-24 23:10 摆烂青年 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 实验任务4 Complex.hpp 1 #pragma once 2 #include<iostream> 3 #include<cmath> 4 5 using namespace std; 6 7 class Complex { 8 public: 9 10 Complex(double rea 阅读全文
posted @ 2022-10-18 20:18 摆烂青年 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 实验任务1 task1_1.cpp #include<iostream> #include<string> #include<vector> int main() { using namespace std; string s1; string s2{"c plus plus"}; string s 阅读全文
posted @ 2022-10-04 19:47 摆烂青年 阅读(14) 评论(0) 推荐(0) 编辑