摘要: 任务1 button.hpp源代码 点击查看代码 #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label); const std::string 阅读全文
posted @ 2026-11-26 14:25 lllinvc 阅读(8) 评论(0) 推荐(0)
摘要: 任务1 t.h源码 点击查看代码 #pragma once #include <string> class T { public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T(T &&t); // 移动构造函数 ~T() 阅读全文
posted @ 2026-11-19 00:21 lllinvc 阅读(7) 评论(0) 推荐(0)
摘要: 任务1 程序源代码 点击查看代码 #include<iostream> #include<string> #include<vector> #include<algorithm> template<typename T> void output(const T &c); void test1(); 阅读全文
posted @ 2026-10-20 23:06 lllinvc 阅读(12) 评论(0) 推荐(0)