摘要: task4 task.cpp #include <iostream> #include "Vector.hpp" void test() { using namespace std; int n; cin >> n; Vector<double> x1(n); for(auto i = 0; i < 阅读全文
posted @ 2022-12-07 08:41 MRchenyuheng 阅读(24) 评论(0) 推荐(0) 编辑
摘要: task4 main.cpp #include <iostream> #include "pets.hpp" void play(MachinePets &obj) { std::cout << obj.get_nickname() << " says " << obj.talk() << std: 阅读全文
posted @ 2022-11-28 21:29 MRchenyuheng 阅读(26) 评论(0) 推荐(0) 编辑
摘要: #1cpp #include<iostream> #include"point.hpp" #include<vector> using namespace std; void test1() { int n; cin >> n; vector<Point> x(n); x.at(0).show(); 阅读全文
posted @ 2022-11-08 23:13 MRchenyuheng 阅读(18) 评论(0) 推荐(0) 编辑
摘要: #实验任务一 model 1 #include <iostream> using std::cout; using std::endl; // 类A的定义 class A{ public: A(int x0, int y0): x{ x0 }, y{ y0 } {} void show() cons 阅读全文
posted @ 2022-10-19 16:39 MRchenyuheng 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 实验二 实验任务1 #include <iostream> #include <complex> int main() { using namespace std; complex<double> c1{3,4} , c2{4.5}; const complex<double> c3{c2}; co 阅读全文
posted @ 2022-10-13 22:00 MRchenyuheng 阅读(25) 评论(0) 推荐(0) 编辑
摘要: Test 1 #include<iostream> #include<cstring> #include<vector> using namespace std; int main() { string s1; string s2{"c plus plus"}; string s3{s2}; str 阅读全文
posted @ 2022-09-28 20:53 MRchenyuheng 阅读(19) 评论(0) 推荐(0) 编辑
摘要: welcome to my blogs! 阅读全文
posted @ 2022-09-26 11:02 MRchenyuheng 阅读(18) 评论(0) 推荐(1) 编辑