摘要: ##task1 #代码 1 #pragma once 2 #include <iomanip> 3 #include <iostream> 4 #include <string> 5 6 struct Contestant { 7 long id; // 学号 8 std::string name; 阅读全文
posted @ 2025-12-22 22:10 Zhades 阅读(13) 评论(1) 推荐(0)
摘要: ##task1 #代码 1 #include <iostream> 2 #include <string> 3 #include "publisher.hpp" 4 5 // Publisher类:实现 6 Publisher::Publisher(const std::string &name_) 阅读全文
posted @ 2025-12-16 20:54 Zhades 阅读(8) 评论(1) 推荐(0)
摘要: ##task1 #代码 1 #include <algorithm> 2 #include <array> 3 #include <cstdlib> 4 #include <iomanip> 5 #include <iostream> 6 #include <numeric> 7 #include 阅读全文
posted @ 2025-12-02 17:23 Zhades 阅读(22) 评论(1) 推荐(0)
摘要: ##task 1 #代码 1 #pragma once 2 3 #include <iostream> 4 #include <string> 5 6 class Button { 7 public: 8 Button(const std::string &label_); 9 const std: 阅读全文
posted @ 2025-11-25 17:24 Zhades 阅读(14) 评论(1) 推荐(0)
摘要: ##task1 #代码 1 #include "2T.h" 2 #include <iostream> 3 #include<string> 4 5 const std::string T::doc{"a simple class sample"}; 6 const int T::max_cnt = 阅读全文
posted @ 2025-10-27 17:45 Zhades 阅读(8) 评论(2) 推荐(0)
摘要: #实验任务1 ##代码 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <algorithm> 5 using namespace std; 6 template<typename T> 7 void 阅读全文
posted @ 2025-10-13 19:46 Zhades 阅读(26) 评论(1) 推荐(0)