摘要: 实验任务1: 源代码: contestant.hpp: #pragma once #include <iomanip> #include <iostream> #include <string> struct Contestant { long id; // 学号 std::string name; 阅读全文
posted @ 2025-12-20 17:04 系统警告 阅读(8) 评论(1) 推荐(0)
摘要: 实验任务1 源代码: publisher.cpp: #include <iostream> #include <string> #include "publisher.hpp" Publisher::Publisher(const std::string &name_): name {name_} 阅读全文
posted @ 2025-12-14 16:16 系统警告 阅读(3) 评论(1) 推荐(0)
摘要: 实验任务1 源代码: GradeCalc.hpp: #pragma once #include <vector> #include <array> #include <string> class GradeCalc { public: GradeCalc(const std::string &cna 阅读全文
posted @ 2025-11-29 20:44 系统警告 阅读(10) 评论(1) 推荐(0)
摘要: 实验任务1 源代码: button.hpp: #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label_); const std::string& 阅读全文
posted @ 2025-11-23 19:08 系统警告 阅读(14) 评论(1) 推荐(0)
摘要: 实验任务1 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); void displ 阅读全文
posted @ 2025-10-26 22:48 系统警告 阅读(11) 评论(1) 推荐(0)
摘要: 实验任务1 #include <iostream> #include <string> #include <vector> #include <algorithm> template<typename T> void output(const T &c); void test1(); void te 阅读全文
posted @ 2025-10-15 21:51 系统警告 阅读(12) 评论(1) 推荐(0)