摘要: 实验任务三: task3_1.cpp: #include <iostream> #include <fstream> #include <array> #define N 5 int main() { using namespace std; array<int, N> x{ 97, 98, 99, 阅读全文
posted @ 2022-12-02 00:19 orangelight 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 实验任务四: pets.hpp: #pragma once #include<iostream> #include<string> std::string; using namespace std; class MachinePets { public: MachinePets(const stri 阅读全文
posted @ 2022-11-29 08:41 orangelight 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 实验任务5: vectorInt.hpp: #pragma once #include<iostream> #include<cassert> using namespace std; class vectorInt { public: vectorInt(int n); vectorInt(int 阅读全文
posted @ 2022-11-03 15:40 orangelight 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 实验任务五: Info.hpp: #pragma once #include<iostream> #include<string> #include<iomanip> using namespace std; class Info { private: string nickname, contac 阅读全文
posted @ 2022-10-20 19:37 orangelight 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 实验任务三: Employee.hpp: #pragma once #include<iostream> #include<string> #include<iomanip> using std::string; using std::cout; using std::endl; using std 阅读全文
posted @ 2022-10-17 21:04 orangelight 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 实验任务2源代码: #include<iostream> using std::cout; using std::endl; class Point { public: Point(int x0=0, int y0=0); Point(const Point& p); ~Point()=defaul 阅读全文
posted @ 2022-09-30 22:47 orangelight 阅读(7) 评论(0) 推荐(0) 编辑