会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
llh521125
博客园
首页
新随笔
联系
订阅
管理
2025年12月2日
实验四 组合与继承
摘要: 实验1 1.源代码 #pragma once #include <vector> #include <array> #include <string> class GradeCalc { public: GradeCalc(const std::string &cname); void input(
阅读全文
posted @ 2025-12-02 22:51 沉睡的余数
阅读(1)
评论(0)
推荐(0)
2025年11月25日
实验三 类和对象
摘要: 实验1 1.源代码 #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label_); const std::string& get_label()
阅读全文
posted @ 2025-11-25 23:46 沉睡的余数
阅读(8)
评论(1)
推荐(1)
2025年10月29日
实验2 现代C++编程初体验
摘要: 1.实验任务1 #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(
阅读全文
posted @ 2025-10-29 07:15 沉睡的余数
阅读(10)
评论(1)
推荐(0)
2025年10月18日
实验1 现代C++编程初体验
摘要: 实验任务 1 验证性实验 在C++编码环境中,输入、运行并观察以下代码,结合运行结果和注释,体验使用C++标准库进行编程的便捷性。从面 向对象编程范式的角度,体会封装与基于接口编程的意义。 1 #include <iostream> 2 #include <string> 3 #include <v
阅读全文
posted @ 2025-10-18 01:10 沉睡的余数
阅读(18)
评论(1)
推荐(0)
公告