会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
gentlelight
博客园
首页
新随笔
联系
订阅
管理
2025年12月
实验4 组合与继承
摘要: 实验任务1 源代码: #include <algorithm> #include <array> #include <cstdlib> #include <iomanip> #include <iostream> #include <numeric> #include <string> #inclu
阅读全文
posted @ 2025-12-01 22:28 溯溪而上
阅读(0)
评论(0)
推荐(0)
2025年11月
实验3 类和对象_基础编程2
摘要: 实验任务1 源代码 #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label_); const std::string& get_label()
阅读全文
posted @ 2025-11-25 20:16 溯溪而上
阅读(5)
评论(1)
推荐(0)
2025年10月
实验2 现代C++编程初体验
摘要: 实验任务1 源码 T.cpp 1 #include "T.h" 2 #include <iostream> 3 #include <string> 4 5 // 类T实现 6 7 // static成员数据类外初始化 8 const std::string T::doc{"a simple clas
阅读全文
posted @ 2025-10-26 21:05 溯溪而上
阅读(18)
评论(1)
推荐(0)
博客地址
摘要: https://www.cnblogs.com/gentlelight
阅读全文
posted @ 2025-10-16 22:15 溯溪而上
阅读(16)
评论(0)
推荐(0)
实验1 现代C++编程初体验
摘要: 实验任务1: 源代码: 1 // 现代C++标准库、算法库体验 2 // 本例用到以下内容: 3 // 1. 字符串string, 动态数组容器类vector、迭代器 4 // 2. 算法库:反转元素次序、旋转元素 5 // 3. 函数模板、const引用作为形参 6 #include <iostr
阅读全文
posted @ 2025-10-16 22:14 溯溪而上
阅读(18)
评论(1)
推荐(0)
公告