摘要: 实验任务3 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 {97, 98, 阅读全文
posted @ 2022-12-01 15:31 wch824 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 实验任务4 1 #pragma once 2 3 #include<string> 4 #include<iostream> 5 6 using std::string; 7 8 class MachinePets{ 9 public: 10 MachinePets(const string s): 阅读全文
posted @ 2022-11-23 22:53 wch824 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 实验任务5 1 #pragma once 2 3 #include<iostream> 4 #include<cassert> 5 using std::cout; 6 using std::endl; 7 8 class vectorInt 9 { 10 private: 11 /* data * 阅读全文
posted @ 2022-11-03 19:23 wch824 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 实验任务5 1 #pragma once 2 3 #include<iostream> 4 #include<iomanip> 5 #include<string> 6 7 using std::cout; 8 using std::endl; 9 using std::cin; 10 using 阅读全文
posted @ 2022-10-20 18:38 wch824 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 实验任务4 1 #pragma once 2 3 #include<iostream> 4 #include<cmath> 5 6 using std::cout; 7 using std::endl; 8 9 class Complex{ 10 public: 11 //构造函数 12 Compl 阅读全文
posted @ 2022-10-12 22:38 wch824 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 using std::cout; 3 using std::endl; 4 5 class Point { 6 public: 7 Point(int x0 = 0, int y0 = 0); 8 Point(const Point& p); 9 ~Po 阅读全文
posted @ 2022-09-28 22:21 wch824 阅读(23) 评论(0) 推荐(0) 编辑