摘要: 试验任务三 task3_1 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> x{ 阅读全文
posted @ 2022-12-06 22:40 Z`x 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 实验任务4pet.hpp 1 #pragma once 2 3 #include<iostream> 4 #include<string> 5 6 using namespace std; 7 8 class MachinePets { 9 public: 10 //MachinePets(){} 阅读全文
posted @ 2022-11-29 23:40 Z`x 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 实验四 vectorInt.hpp 1 #pragma once 2 3 #include<iostream> 4 5 using namespace std; 6 7 class vectorInt { 8 public: 9 vectorInt(int a); 10 vectorInt(int 阅读全文
posted @ 2022-11-09 00:03 Z`x 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 实验5 task_5.cpp 1 #include"info.hpp" 2 #include<vector> 3 //#include<iomanip> 4 5 int main(){ 6 using namespace std; 7 const int capacity = 100; 8 vect 阅读全文
posted @ 2022-10-26 08:46 Z`x 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 实验任务4 task_4.cpp 1 #include "Complex.hpp" 2 #include <iostream> 3 4 // 类测试 5 void test() { 6 using namespace std; 7 8 Complex c1(6, -8); 9 const Compl 阅读全文
posted @ 2022-10-17 11:55 Z`x 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 实验任务(1) task1_1 1 #include<iostream> 2 #include<string> 3 #include<vector> 4 int main() { 5 using namespace std; 6 string s1; 7 string s2{ "c plus plu 阅读全文
posted @ 2022-10-06 16:48 Z`x 阅读(3) 评论(0) 推荐(0) 编辑