2022年12月7日
摘要: 实验任务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, 1 阅读全文
posted @ 2022-12-07 09:39 Duelist 阅读(18) 评论(0) 推荐(0) 编辑
  2022年11月30日
摘要: 实验任务4 pets.hpp #pragma once #include <iostream> using std::string; class MachinePets { private: string nickname; public: MachinePets(const string s); 阅读全文
posted @ 2022-11-30 15:08 Duelist 阅读(19) 评论(0) 推荐(0) 编辑
  2022年11月8日
摘要: 实验任务5 vectorInt.hpp #pragma once #include <iostream> using namespace std; class vectorInt { private: int length; int *array; public: vectorInt(int n); 阅读全文
posted @ 2022-11-08 19:43 Duelist 阅读(13) 评论(0) 推荐(0) 编辑
  2022年10月23日
摘要: 5.实验任务5 info.hpp #pragma once #include <iostream> #include <string> #include <iomanip> using std::string; using std::cout; using std::endl; class info 阅读全文
posted @ 2022-10-23 11:52 Duelist 阅读(7) 评论(0) 推荐(0) 编辑
  2022年10月19日
摘要: 4.实验任务4 Complex.hpp #pragma once #include <iostream> #include <math.h> class Complex { private: double real,imag; public: Complex(); ~Complex(); Compl 阅读全文
posted @ 2022-10-19 08:12 Duelist 阅读(13) 评论(0) 推荐(0) 编辑
  2022年9月30日
摘要: #include<iostream> #include<string> #include<vector> int main() { using namespace std; string s1; string s2{"c plus plus"}; string s3{s2}; string s4 = 阅读全文
posted @ 2022-09-30 11:27 Duelist 阅读(20) 评论(0) 推荐(0) 编辑