会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
hangyiya
博客园
首页
新随笔
联系
订阅
管理
2025年12月23日
实验6
摘要: #pragma once #include <iomanip> #include <iostream> #include <string> struct Contestant { long id;// 学号 std::string name; // 姓名 std::string major;// 专
阅读全文
posted @ 2025-12-23 23:26 HdYi
阅读(6)
评论(1)
推荐(0)
2025年12月17日
实验5
摘要: 一 #pragma once #include <string> // 发行/出版物类:Publisher (抽象类) class Publisher { public: Publisher(const std::string& name_ = ""); // 构造函数 virtual ~Publi
阅读全文
posted @ 2025-12-17 00:46 HdYi
阅读(6)
评论(1)
推荐(0)
2025年12月5日
实验3
摘要: 一. #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string& label_); const std::string& get_label() const;
阅读全文
posted @ 2025-12-05 01:00 HdYi
阅读(8)
评论(0)
推荐(0)
2025年11月26日
实验4
摘要: #pragma once #include <vector> #include <array> #include <string> class GradeCalc { public: GradeCalc(const std::string& cname); void input(int n); //
阅读全文
posted @ 2025-11-26 00:10 HdYi
阅读(13)
评论(1)
推荐(0)
2025年11月3日
实验2
摘要: #pragma once #include <string> // 类T: 声明 class T { // 对象属性、方法 public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T(T &&t); // 移动构造函数
阅读全文
posted @ 2025-11-03 00:01 HdYi
阅读(7)
评论(0)
推荐(0)
2025年10月18日
实验1 现代C++编程初体验
摘要: 任务 1: reverse 无返回值,会改变原容器 reverse_copy不修改原容器 rotate 将一段元素移动至另一段后,分别代表序列起始,支点,末尾 #include <iostream> #include <string> #include <vector> #include <algo
阅读全文
posted @ 2025-10-18 01:23 HdYi
阅读(9)
评论(1)
推荐(0)
公告