摘要: 实验任务3: task3_1.cpp #include <iostream> #include <fstream> #include <array> #define N 5 int main() { using namespace std; array<int, N> x {97, 98, 99, 阅读全文
posted @ 2022-11-30 18:49 VV才不是小学生 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 实验任务4: pets.hpp: #include <iostream> #include<string.h> using namespace std; class MachinePets { private: string nickname; public: MachinePets(const s 阅读全文
posted @ 2022-11-26 10:15 VV才不是小学生 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 实验任务5: vectorint: #include<iostream> using namespace std; class vectorInt { public: vectorInt(int n) :size{ n } { p = new int[n]; cout << "constructor 阅读全文
posted @ 2022-11-02 17:10 VV才不是小学生 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 实验任务5: task 5.hpp: #include"intro.hpp" #include <iostream> #include <string> #include<iomanip> #include<vector> using namespace std; int main() { stri 阅读全文
posted @ 2022-10-19 18:17 VV才不是小学生 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 实验结论: 实验任务四: Complex.hpp: #pragma once #include <iostream> #include<math.h> using namespace std; class Complex { public: Complex(double r = 0, double 阅读全文
posted @ 2022-10-12 16:23 VV才不是小学生 阅读(40) 评论(0) 推荐(0) 编辑