摘要: 任务1: #pragma once #include <iomanip> #include <iostream> #include <string> struct Contestant { long id; // 学号 std::string name; // 姓名 std::string majo 阅读全文
posted @ 2025-12-23 23:09 封从想 阅读(8) 评论(1) 推荐(0)
摘要: 任务1: #include <iostream> #include <string> #include "publisher.hpp" // Publisher类:实现 Publisher::Publisher(const std::string &name_): name {name_} { } 阅读全文
posted @ 2025-12-16 21:38 封从想 阅读(9) 评论(1) 推荐(0)
摘要: task1: #include <algorithm> #include <array> #include <cstdlib> #include <iomanip> #include <iostream> #include <numeric> #include <string> #include < 阅读全文
posted @ 2025-12-02 23:17 封从想 阅读(6) 评论(1) 推荐(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 封从想 阅读(9) 评论(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 封从想 阅读(13) 评论(1) 推荐(0)