摘要: TASK3: #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 16:01 995自成宇宙 阅读(14) 评论(0) 推荐(0) 编辑
摘要: Task3: hpp. 1 #pragma once 2 #include<iostream> 3 using namespace std; 4 class Complex { 5 private: 6 double a, b; 7 public: 8 Complex(double x = 0, d 阅读全文
posted @ 2022-11-27 16:33 995自成宇宙 阅读(9) 评论(0) 推荐(0) 编辑
摘要: task5 代码hpp #pragma once #include<iostream> #include<cassert> using namespace std; class vectorInt { private: int n, x;//n为数组长度,x为默认初始值 int* p;//数组 pu 阅读全文
posted @ 2022-11-02 11:25 995自成宇宙 阅读(13) 评论(0) 推荐(0) 编辑
摘要: task5 #include<iostream> using namespace std; #include<iomanip> class Info { private: string nickname, contact, city; int n; public: Info(string a,str 阅读全文
posted @ 2022-10-21 20:31 995自成宇宙 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 实验4 hpp #pragma once #include<iostream> using namespace std; class Complex { public: Complex(); Complex(double real0, double imag0 = 0); Complex(const 阅读全文
posted @ 2022-10-13 16:45 995自成宇宙 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 个人学习实验 阅读全文
posted @ 2022-09-28 16:26 995自成宇宙 阅读(83) 评论(0) 推荐(0) 编辑