摘要: 实验任务1 程序源代码如下: contestant.hpp 1 #pragma once 2 #include <iomanip> 3 #include <iostream> 4 #include <string> 5 6 struct Contestant { 7 long id; 8 std:: 阅读全文
posted @ 2025-12-17 13:14 摇摇车nuist 阅读(13) 评论(1) 推荐(0)
摘要: 实验任务1 程序源代码如下: publisher.hpp 1 #pragma once 2 3 #include <string> 4 5 class Publisher { 6 public: 7 Publisher(const std::string& name_ = ""); 8 virtua 阅读全文
posted @ 2025-12-10 14:36 摇摇车nuist 阅读(19) 评论(1) 推荐(0)
摘要: 实验任务1 程序源代码如下: GradeCalc.hpp 1 #pragma once 2 3 #include <vector> 4 #include <array> 5 #include <string> 6 7 class GradeCalc { 8 public: 9 GradeCalc(c 阅读全文
posted @ 2025-11-26 18:27 摇摇车nuist 阅读(25) 评论(1) 推荐(0)
摘要: 实验任务1 实验源代码如下: button.hpp 1 #pragma once 2 3 #include <iostream> 4 #include <string> 5 6 class Button { 7 public: 8 Button(const std::string& label_); 阅读全文
posted @ 2025-11-19 21:30 摇摇车nuist 阅读(30) 评论(1) 推荐(0)
摘要: 实验任务1 程序源代码如下: T.h 1 #pragma once 2 #include <string> 3 4 class T{ 5 public: 6 T(int x = 0,int y = 0); 7 T(const T &t); 8 T(T &&t); 9 ~T(); 10 11 void 阅读全文
posted @ 2025-10-23 21:11 摇摇车nuist 阅读(29) 评论(1) 推荐(0)
摘要: 1.实验任务1 程序源代码 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <algorithm> 5 6 template<typename T> 7 void output(const T& c); 阅读全文
posted @ 2025-10-12 16:33 摇摇车nuist 阅读(18) 评论(1) 推荐(0)