摘要: task.4 cpp #include <iostream> #include "Pets.hpp" void play(MachinePets &obj) { std::cout << obj.get_nickname() << " says " << obj.talk() << std::end 阅读全文
posted @ 2022-11-30 13:20 我不当大哥好多年了 阅读(16) 评论(0) 推荐(0) 编辑
摘要: //task.5.cpp #include <iostream> #include "vectorInt.hpp" void test() { using namespace std; int n; cin >> n; vectorInt x1(n); for (auto i = 0; i < n; 阅读全文
posted @ 2022-11-08 19:24 我不当大哥好多年了 阅读(16) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using std::cout; using std::endl; // 类A的定义 class A{ public: A(int x0, int y0): x{ x0 }, y{ y0 } {} void show() const { cout << x < 阅读全文
posted @ 2022-10-26 08:41 我不当大哥好多年了 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 实验四 #pragma once #include <iostream> #include <string> #include <iomanip> #include <cmath> using std::cout; using std::endl; class Complex { public: C 阅读全文
posted @ 2022-10-17 16:55 我不当大哥好多年了 阅读(20) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<cstring> #include<vector> using namespace std; int main() { string s1; string s2{"c plus plus"}; string s3{s2}; string s4 阅读全文
posted @ 2022-10-04 20:03 我不当大哥好多年了 阅读(12) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/lxyyyds/ 阅读全文
posted @ 2022-09-27 23:10 我不当大哥好多年了 阅读(30) 评论(0) 推荐(0) 编辑