摘要: 实验任务3 #include <iostream> #include <fstream> #include <array> #define N 5 int main() { using namespace std; array<int, N> x{ 97, 98, 99, 100, 101 }; o 阅读全文
posted @ 2022-12-01 20:45 z2y 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 实验任务4 #include<iostream> #include"pets.h" void play(MachinePets& obj) { std::cout << obj.get_nickname() << " says" << obj.talk() << std::endl; } void 阅读全文
posted @ 2022-11-29 20:57 z2y 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 实验任务5: #include <iostream> #include "vectorInt.h" using namespace std; void test() { using namespace std; int n; cin >> n; vectorInt x1(n); for (auto 阅读全文
posted @ 2022-11-08 20:59 z2y 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 实验任务5 #include"Info.hpp" #include<iostream> #include<string> #include<vector> int main() { string s1,s2= "continue"; int i = 0, n = 0; int const capac 阅读全文
posted @ 2022-10-25 21:51 z2y 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 实验任务4 #include "Complex.hpp" #include <iostream> void test() { using namespace std; Complex c1(4,-3); const Complex c2(6.6); Complex c3(c1); cout << " 阅读全文
posted @ 2022-10-17 20:36 z2y 阅读(16) 评论(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()= default; i 阅读全文
posted @ 2022-10-05 12:58 z2y 阅读(10) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/zlaym/ 阅读全文
posted @ 2022-09-27 19:18 z2y 阅读(11) 评论(0) 推荐(0) 编辑