2025年12月19日
摘要: 一、任务1 1.源代码 contestant.cpp #pragma once #include <iomanip> #include <iostream> #include <string> struct Contestant { long id; // 学号 std::string name; 阅读全文
posted @ 2025-12-19 20:39 愿意讲 阅读(8) 评论(1) 推荐(0)
  2025年12月16日
摘要: 一、任务1 1、源代码: publish.hpp #pragma once #include <string> // 发行/出版物类:Publisher (抽象类) class Publisher { public: Publisher(const std::string &name_ = ""); 阅读全文
posted @ 2025-12-16 21:01 愿意讲 阅读(4) 评论(1) 推荐(0)
  2025年12月2日
摘要: 一、任务1 1、源代码 GradeCalc.cpp #include <algorithm> #include <array> #include <cstdlib> #include <iomanip> #include <iostream> #include <numeric> #include 阅读全文
posted @ 2025-12-02 20:18 愿意讲 阅读(8) 评论(1) 推荐(0)
  2025年11月25日
摘要: 一、任务1 1.源代码 button.hpp #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label_); const std::string& 阅读全文
posted @ 2025-11-25 23:34 愿意讲 阅读(10) 评论(1) 推荐(0)
  2025年10月22日
摘要: 四、实验结论 1.task1 T.h 查看代码 #pragma once #include <string> // 类T: 声明 class T { // 对象属性、方法 public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构 阅读全文
posted @ 2025-10-22 21:32 愿意讲 阅读(22) 评论(1) 推荐(0)
  2025年10月11日
摘要: 实验1 实验任务1 task 1.cpp #include <iostream> #include<string> #include<vector> #include<algorithm> template <typename T> void output(const T &c); void tes 阅读全文
posted @ 2025-10-11 22:50 愿意讲 阅读(15) 评论(1) 推荐(0)