摘要: 一. #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string& label_); const std::string& get_label() const; 阅读全文
posted @ 2025-12-05 01:00 HdYi 阅读(3) 评论(0) 推荐(0)
摘要: #pragma once #include <vector> #include <array> #include <string> class GradeCalc { public: GradeCalc(const std::string& cname); void input(int n); // 阅读全文
posted @ 2025-11-26 00:10 HdYi 阅读(7) 评论(0) 推荐(0)
摘要: #pragma once #include <string> // 类T: 声明 class T { // 对象属性、方法 public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T(T &&t); // 移动构造函数 阅读全文
posted @ 2025-11-03 00:01 HdYi 阅读(4) 评论(0) 推荐(0)
摘要: 任务 1: reverse 无返回值,会改变原容器 reverse_copy不修改原容器 rotate 将一段元素移动至另一段后,分别代表序列起始,支点,末尾 #include <iostream> #include <string> #include <vector> #include <algo 阅读全文
posted @ 2025-10-18 01:23 HdYi 阅读(7) 评论(1) 推荐(0)