摘要: 四、实验结论 实验任务 1 · 窗口和按钮 button.hpp #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label); const std 阅读全文
posted @ 2026-11-26 23:00 Honmamisuzu0306 阅读(4) 评论(0) 推荐(0)
摘要: 实验2:类和对象 四、实验结论 1. 实验任务1:类 T 源代码 t.h 点击查看代码 #pragma once #include <string> class T { public: T(int x = 0, int y = 0); T(const T &t); T(T &&t); ~T(); v 阅读全文
posted @ 2026-11-19 16:13 Honmamisuzu0306 阅读(7) 评论(0) 推荐(0)
摘要: 实验任务1 源代码 task1.cpp 点击查看代码 // 现代C++标准库、算法库体验 // 本例用到以下内容: // 1. 字符串string, 动态数组容器类vector、迭代器 // 2. 算法库:反转元素次序、旋转元素 // 3. 函数模板、const引用作为形参 #include <io 阅读全文
posted @ 2026-10-20 18:50 Honmamisuzu0306 阅读(10) 评论(0) 推荐(0)
摘要: ceshi 阅读全文
posted @ 2026-10-16 11:08 Honmamisuzu0306 阅读(9) 评论(0) 推荐(0)