摘要: 实验任务1: 源代码GradeCalc.hpp 1 #pragma once 2 #include<vector> 3 #include<array> 4 #include<string> 5 6 class GradeCalc{ 7 public: 8 GradeCalc(const std::s 阅读全文
posted @ 2025-12-01 23:19 知之为吃吃 阅读(7) 评论(0) 推荐(0)
摘要: 实验任务1: 源代码Button.hpp 1 #pragma once 2 #include<iostream> 3 #include<string> 4 5 class Button{ 6 public: 7 Button(const std::string &label_); 8 const s 阅读全文
posted @ 2025-11-24 23:33 知之为吃吃 阅读(17) 评论(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 adjust(in 阅读全文
posted @ 2025-10-28 00:25 知之为吃吃 阅读(18) 评论(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-16 23:31 知之为吃吃 阅读(23) 评论(1) 推荐(0)