摘要: 1 3.1 cpp: 2 3 #include <iostream> 4 #include <fstream> 5 #include <array> 6 #define N 5 7 int main() { 8 using namespace std; 9 array<int, N> x{ 97, 阅读全文
posted @ 2022-12-05 22:35 薛天驰 阅读(14) 评论(0) 推荐(0) 编辑
摘要: pets.hpp: #include<iostream> #include<string> using namespace std; class MachinePets { private: string nickname; public: MachinePets() {} MachinePets( 阅读全文
posted @ 2022-11-28 23:27 薛天驰 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 实验5: #include<iostream> using std::cout; using std::endl; using std::cin; class vectorInt { public: vectorInt(int n); vectorInt(int n, int m); ~vector 阅读全文
posted @ 2022-11-06 19:10 薛天驰 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 实验任务5 info部分: #include<iostream> #include<string> #include<iomanip> using namespace std; class info { public: info(string nick, string cont, string ci 阅读全文
posted @ 2022-10-22 21:48 薛天驰 阅读(6) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<cmath> using namespace std; class Complex { public: ~Complex() = default; Complex(double m = 0, double n = 0); Complex(con 阅读全文
posted @ 2022-10-17 21:39 薛天驰 阅读(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() = default; i 阅读全文
posted @ 2022-10-01 17:58 薛天驰 阅读(6) 评论(0) 推荐(0) 编辑