摘要: 实验3 任务一 源代码 点击查看代码 button.hpp #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label); const std::s 阅读全文
posted @ 2026-11-26 13:12 qymqym 阅读(10) 评论(0) 推荐(0)
摘要: 实验2 类和对象_基础编程1 任务一 简单类 T:封装 / static / friend / const 源代码 点击查看代码(t.h / t.cpp / task1.cpp) t.h #pragma once #include <string> class T { public: T(int x 阅读全文
posted @ 2026-11-18 13:43 qymqym 阅读(8) 评论(0) 推荐(0)
摘要: 任务一 源代码 点击查看代码 #include <iostream> #include <string> #include <vector> #include <algorithm> // 模板函数声明 template<typename T> void output(const T &c); vo 阅读全文
posted @ 2026-10-18 18:54 qymqym 阅读(19) 评论(0) 推荐(0)