摘要: task3_1.cpp: #include <iostream> #include <fstream> #include <array> #define N 5 int main() { using namespace std; array<int, N> x{ 97, 98, 99, 100, 1 阅读全文
posted @ 2022-12-02 14:03 彭鑫宇 阅读(29) 评论(0) 推荐(0) 编辑
摘要: task4.cpp: #pragma once #include<iostream> #include<string> using namespace std; class MachinePets{ public: MachinePets(const string s) :nickname{ s } 阅读全文
posted @ 2022-11-28 22:37 彭鑫宇 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 实验任务5: task5.hpp #pragma once #include<iostream> #define MAXSIZE 10000 using namespace std; class vectorInt { public: //构造函数与析构函数 vectorInt(int n); ve 阅读全文
posted @ 2022-11-03 19:39 彭鑫宇 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 实验任务5: task5.hpp: #pragma once #include <iostream> #include <vector> #include <string> using namespace std; class Info{ public: Info(string name, stri 阅读全文
posted @ 2022-10-19 16:38 彭鑫宇 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 实验任务4: task4.hpp: #pragma once #include<iostream> #include<math.h> using namespace std; class Complex { public: Complex() :real{ 0 }, imag{ 0 } {} ~Co 阅读全文
posted @ 2022-10-13 23:45 彭鑫宇 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 实验任务1 task1_1: #include <iostream> #include <string> #include <vector> int main() { using namespace std; string s1; string s2{ "c plus plus" }; string 阅读全文
posted @ 2022-09-29 18:15 彭鑫宇 阅读(79) 评论(0) 推荐(0) 编辑