摘要: 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,101}; ofstre 阅读全文
posted @ 2022-12-03 15:37 yzhag 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 1. task4.hpp #pragma once #include<iostream> #include<string> using namespace std; class MachinePets { public: MachinePets(const string s) :nickname(s 阅读全文
posted @ 2022-11-25 20:27 yzhag 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 实验任务五 vectorInt.hpp #pragma once #include<iostream> #include<cassert> using namespace std; class vectorInt { public: vectorInt(int n); vectorInt(int n 阅读全文
posted @ 2022-11-03 21:03 yzhag 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 实验五 info.hpp #pragma once #include<iostream> #include<string> using namespace std; class info { public: info(string ni0, string co0, string ci0, int n 阅读全文
posted @ 2022-10-22 14:38 yzhag 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 任务四 Complex.hpp #include<iostream> #include<cmath> using namespace std; class Complex{ public: Complex(double a=0.0,double b=0.0):real{a},imag{b}{}; C 阅读全文
posted @ 2022-10-13 18:36 yzhag 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 实验二: #include<iostream> using std::cout; using std::endl; class point { public: point(int x0 = 0, int y0 = 0); point(const point& p); ~point() = defau 阅读全文
posted @ 2022-09-28 17:30 yzhag 阅读(10) 评论(0) 推荐(0) 编辑