摘要: 一、实验任务1 源代码task1 1 #include <algorithm> 2 #include <array> 3 #include <cstdlib> 4 #include <iomanip> 5 #include <iostream> 6 #include <numeric> 7 #inc 阅读全文
posted @ 2025-11-28 11:10 htsjubbymjeymsy 阅读(5) 评论(0) 推荐(0)
摘要: 一、实验任务1 源代码task1 1 #pragma once 2 3 #include <iostream> 4 #include <string> 5 6 class Button { 7 public: 8 Button(const std::string &label_); 9 const 阅读全文
posted @ 2025-11-20 00:00 htsjubbymjeymsy 阅读(11) 评论(1) 推荐(0)
摘要: 一、实验任务1 源代码task1 1 #pragma once 2 3 #include <string> 4 5 // 类T: 声明 6 class T { 7 // 对象属性、方法 8 public: 9 T(int x = 0, int y = 0); // 普通构造函数 10 T(const 阅读全文
posted @ 2025-10-24 00:16 htsjubbymjeymsy 阅读(14) 评论(1) 推荐(0)
摘要: 一、实验任务1 源代码task1.cpp #include <iostream> #include<string> #include<vector> #include<algorithm> template <typename T> void output(const T &c); void tes 阅读全文
posted @ 2025-10-17 21:47 htsjubbymjeymsy 阅读(12) 评论(1) 推荐(0)