摘要: #include <iostream> #include <fstream> #include <array> #define N 5 int main() { using namespace std; array<int, N> x {97, 98, 99, 100, 101}; ofstream 阅读全文
posted @ 2022-12-01 15:24 xrzjjy 阅读(51) 评论(0) 推荐(0) 编辑
摘要: #pragma once #include<iostream> using namespace std; class MachinePets{ public: MachinePets(const string s):nickname{s} {} string get_nickname() const 阅读全文
posted @ 2022-11-27 16:34 xrzjjy 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 1 #pragma once 2 #include<iostream> 3 using namespace std; 4 class vectorInt{ 5 public: 6 vectorInt(int n):size(n) { 7 cout << "construct 1 called"<<e 阅读全文
posted @ 2022-11-03 22:53 xrzjjy 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 1 #include"Info.hpp" 2 #include<iostream> 3 #include<vector> 4 #include<iomanip> 5 using namespace std; 6 const int capacity = 100; 7 int main(){ 8 ve 阅读全文
posted @ 2022-10-20 14:13 xrzjjy 阅读(12) 评论(1) 推荐(1) 编辑
摘要: 实验结论 实验任务4 1 #pragma once 2 #include<iostream> 3 #include<cmath> 4 using namespace std; 5 class Complex{ 6 public: 7 Complex(double r=0.0,double i=0.0 阅读全文
posted @ 2022-10-14 17:14 xrzjjy 阅读(20) 评论(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 ~P 阅读全文
posted @ 2022-09-28 22:19 xrzjjy 阅读(8) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/xrzjjy/ 阅读全文
posted @ 2022-09-27 12:46 xrzjjy 阅读(43) 评论(0) 推荐(0) 编辑