摘要: 实验任务一 源代码 #include "window.hpp" #include <iostream> void test(){ Window w("Demo"); w.add_button("add"); w.add_button("remove"); w.add_button("modify") 阅读全文
posted @ 2026-11-22 10:07 qrdx 阅读(12) 评论(0) 推荐(0)
摘要: 任务一 源代码 #include <iostream> #include <utility> #include "t.h" void test() { using std::cout; using std::endl; cout << "T info: " << T::doc << endl; co 阅读全文
posted @ 2026-11-14 12:29 qrdx 阅读(17) 评论(0) 推荐(0)
摘要: 任务一 源代码 1 // 现代C++标准库、算法库体验 2 // 本例用到以下内容: 3 // 1. 字符串string, 动态数组容器类vector、迭代器 4 // 2. 算法库:反转元素次序、旋转元素 5 // 3. 函数模板、const引用作为形参 6 7 #include <iostrea 阅读全文
posted @ 2026-10-18 15:22 qrdx 阅读(9) 评论(0) 推荐(0)