摘要: 一、实验任务1 源代码button.hpp 1 #pragma once 2 #include<iostream> 3 #include<string> 4 class Button{ 5 public: 6 Button(const std::string &label_); 7 const st 阅读全文
posted @ 2025-11-25 22:37 鱼籽不煮粥 阅读(6) 评论(1) 推荐(0)
摘要: 一、实验任务1 源代码T.h 1 #pragma once 2 #include<string> 3 class T{ 4 public: 5 T(int x=0,int y=0); 6 T(const T &t); 7 T(T &&t); 8 ~T(); 9 void adjust(int rat 阅读全文
posted @ 2025-10-27 20:24 鱼籽不煮粥 阅读(11) 评论(1) 推荐(0)
摘要: 一、实验任务1 源代码task1.cpp 1 #include<iostream> 2 #include<string> 3 #include<vector> 4 #include<algorithm> 5 template<typename T> 6 void output(const T&c); 阅读全文
posted @ 2025-10-14 21:31 鱼籽不煮粥 阅读(24) 评论(1) 推荐(0)