会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
llh521125
博客园
首页
新随笔
联系
订阅
管理
2025年12月24日
实验六
摘要: 任务1 1.实验代码 #pragma once #include <iomanip> #include <iostream> #include <string> struct Contestant { long id; // 学号 std::string name; // 姓名 std::strin
阅读全文
posted @ 2025-12-24 00:08 沉睡的余数
阅读(5)
评论(1)
推荐(0)
2025年12月16日
实验五 多态
摘要: 任务1 1.实验代码 #pragma once #include <string> // 发行/出版物类:Publisher (抽象类) class Publisher { public: Publisher(const std::string &name_ = ""); // 构造函数 virtu
阅读全文
posted @ 2025-12-16 23:36 沉睡的余数
阅读(12)
评论(1)
推荐(0)
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 沉睡的余数
阅读(19)
评论(1)
推荐(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 沉睡的余数
阅读(18)
评论(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 沉睡的余数
阅读(13)
评论(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 沉睡的余数
阅读(24)
评论(1)
推荐(0)
公告