摘要: 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-03 22:34 梁钰杰 阅读(22) 评论(0) 推荐(0) 编辑
摘要: task4 Pets.h #pragma once #include<iostream> #include<string> using namespace std; class MachinePets { public: MachinePets(const string s); virtual st 阅读全文
posted @ 2022-11-27 10:34 梁钰杰 阅读(21) 评论(0) 推荐(0) 编辑
摘要: task5 VectorInt.h #pragma once #include<iostream> #include<cassert> using namespace std; class VectorInt { public: VectorInt(int n); VectorInt(int n, 阅读全文
posted @ 2022-11-05 21:46 梁钰杰 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 实验5 #pragma once #include<iostream> #include<string> #include<iomanip> using namespace std; class info { public: info(string nickname0,string contact0 阅读全文
posted @ 2022-10-20 18:32 梁钰杰 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 实验4 #pragma once #include<iostream> #include<cmath> using namespace std; class Complex { public: Complex(double r = 0.0, double i = 0.0) :real(r), ima 阅读全文
posted @ 2022-10-16 15:45 梁钰杰 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 实验1 #include<iostream> #include<string> #include<vector> int main() { using namespace std; string s1; string s2{ "c plus plus" }; string s3{ s2 }; str 阅读全文
posted @ 2022-10-02 14:15 梁钰杰 阅读(17) 评论(0) 推荐(0) 编辑