摘要: 实验任务1 源代码如下: contestant.hpp 点击查看代码 #pragma once #include <iomanip> #include <iostream> #include <string> struct Contestant { long id; // 学号 std::strin 阅读全文
posted @ 2025-12-22 22:15 OSCR 阅读(5) 评论(1) 推荐(0)
摘要: 实验任务1 源代码如下: publisher.hpp 点击查看代码 #pragma once #include <string> class Publisher { public: Publisher(const std::string &name_ = ""); virtual ~Publishe 阅读全文
posted @ 2025-12-16 20:13 OSCR 阅读(6) 评论(1) 推荐(0)
摘要: 实验任务1 源代码如下: GradeCalc.hpp 点击查看代码 #pragma once #include <vector> #include <array> #include <string> class GradeCalc { public: GradeCalc(const std::str 阅读全文
posted @ 2025-12-02 16:34 OSCR 阅读(5) 评论(1) 推荐(0)
摘要: 实验任务1 源代码如下: button.hpp 点击查看代码 #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label_); const std: 阅读全文
posted @ 2025-11-25 22:00 OSCR 阅读(4) 评论(1) 推荐(0)
摘要: 实验任务 源代码如下: T.h 点击查看代码 #pragma once #include <string> class T { public: T(int x = 0, int y = 0); T(const T &t); T(T &&t); ~T(); void adjust(int ratio) 阅读全文
posted @ 2025-10-27 21:50 OSCR 阅读(14) 评论(1) 推荐(0)
摘要: 任务1 源代码: 点击查看代码 #include <iostream> #include <string> #include <vector> #include <algorithm> template<typename T> void output(const T &c); void test1( 阅读全文
posted @ 2025-10-16 23:47 OSCR 阅读(14) 评论(1) 推荐(0)