摘要: task1 contestant.hpp 1 #pragma once 2 3 #include<iomanip> 4 #include<iostream> 5 #include<string> 6 7 struct Contestant{ 8 //学号/姓名/专业 9 long id; 10 st 阅读全文
posted @ 2025-12-19 01:26 fg-ever 阅读(12) 评论(1) 推荐(0)
摘要: task1 publisher.hpp 1 #pragma once 2 3 #include<iostream> 4 #include<string> 5 6 //发行/出版物类:Publisher(抽象类) 7 class Publisher{ 8 public: 9 Publisher(con 阅读全文
posted @ 2025-12-12 10:32 fg-ever 阅读(14) 评论(1) 推荐(0)
摘要: task1 GradeCalc.hpp 1 #pragma once 2 3 #include<vector> 4 #include<array> 5 #include<string> 6 7 class GradeCalc{ 8 public: 9 GradeCalc(const std::str 阅读全文
posted @ 2025-11-27 00:40 fg-ever 阅读(22) 评论(1) 推荐(0)
摘要: task1 Button.hpp 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-20 15:54 fg-ever 阅读(37) 评论(1) 推荐(0)
摘要: task1 T.h 1 #pragma 2 3 #include<string> 4 5 class T{ 6 public: 7 T(int x=0,int y=0); 8 T(const T &t); 9 T(T &&t); 10 ~T(); 11 12 void adjust(int rati 阅读全文
posted @ 2025-10-28 21:52 fg-ever 阅读(14) 评论(1) 推荐(0)
摘要: 任务1 task1.cpp 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-11 21:42 fg-ever 阅读(24) 评论(1) 推荐(0)