2026年11月26日

摘要: 面向对象程序设计 实验3 实验任务一 源码以及运行测试截图 button.hpp #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label); c 阅读全文
posted @ 2026-11-26 15:29 Kangkk7 阅读(6) 评论(0) 推荐(0)

2026年11月18日

摘要: 面向对象程序设计 实验2 实验任务一 源码以及运行测试截图 t.h #pragma once #include <string> class T { public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T(T &&t 阅读全文
posted @ 2026-11-18 21:47 Kangkk7 阅读(11) 评论(0) 推荐(0)

2026年10月16日

摘要: 实验 1:现代 C++ 编程初体验 语言标准:C++ 17 任务1: 1. 源代码: #include <iostream> #include <string> #include <vector> #include <algorithm> template<typename T> void outp 阅读全文
posted @ 2026-10-16 15:38 Kangkk7 阅读(21) 评论(0) 推荐(1)