会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
astrat
博客园
首页
新随笔
联系
订阅
管理
2025年12月2日
实验4 组合与继承
摘要: 实验1: #pragma once #include <vector> #include <array> #include <string> class GradeCalc { public: GradeCalc(const std::string &cname); void input(int n
阅读全文
posted @ 2025-12-02 19:16 晚风吹动荷塘月
阅读(3)
评论(0)
推荐(0)
2025年11月24日
实验3 类和对象_基础编程2
摘要: 任务一: #pragma once #pragma once #include <iostream> #include <vector> #include <algorithm> #include "button.h" // 窗口类 class Window { public: Window(con
阅读全文
posted @ 2025-11-24 22:32 晚风吹动荷塘月
阅读(7)
评论(1)
推荐(0)
2025年10月24日
实验2
摘要: #pragma once #include <string> class T { public: T(int x = 0, int y = 0); T(const T& t); T(T&& t); ~T(); void adjust(int ratio); void display() const;
阅读全文
posted @ 2025-10-24 21:06 晚风吹动荷塘月
阅读(18)
评论(1)
推荐(0)
2025年10月15日
实验1 现代C++基础编程
摘要: 实验任务1: 问题一:reverse直接将s1反转,反转后结果存到s1本身,reverse_copy则是将s1反转后的结果存在s2,s1自身不变 问题二:rotate 算法通过将容器中 [first,middle) 区间的元素移到[middle,last)之后,实现元素循环移位 first:旋转范围
阅读全文
posted @ 2025-10-15 17:32 晚风吹动荷塘月
阅读(10)
评论(1)
推荐(0)
公告