摘要: task1: #include <algorithm> #include <array> #include <cstdlib> #include <iomanip> #include <iostream> #include <numeric> #include <string> #include < 阅读全文
posted @ 2025-12-02 23:17 封从想 阅读(0) 评论(0) 推荐(0)
摘要: task1: #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label_); const std::string& get_label() con 阅读全文
posted @ 2025-11-25 23:26 封从想 阅读(6) 评论(1) 推荐(0)
摘要: 任务1: #include "T.h" #include <iostream> void test_T(); int main() { std::cout << "test Class T: \n"; test_T(); std::cout << "\ntest friend func: \n"; 阅读全文
posted @ 2025-10-28 20:59 封从想 阅读(7) 评论(1) 推荐(0)
摘要: 任务一: #include <iostream> #include <string> #include <vector> #include <algorithm> template<typename T> void output(const T &c); void test1(); void tes 阅读全文
posted @ 2025-10-17 20:36 封从想 阅读(11) 评论(1) 推荐(0)