会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
As-Val
博客园
首页
新随笔
联系
订阅
管理
2025年11月29日
实验四
摘要: 实验四:组合与继承 实验任务1 运行截图 问题回答 问题1:组合关系识别 GradeCalc类声明中,逐行写出所有体现"组合"关系的成员声明,并用一句话说明每个被组合对象的功能。 等级 std::vector<int> grades;:用来存放原始的成绩,动态数组,意味着在不受限制的情况下,grad
阅读全文
posted @ 2025-11-29 17:14 As_Val
阅读(18)
评论(0)
推荐(0)
2025年11月23日
实验三
摘要: 实验三:类和对象基础编程2 在本次实验中,使用的集成开发环境为Visual Studio Code与g++.exe (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0 实验任务1 1.编译指令与运行截图 2.问题回答 是的,是组合关系;
阅读全文
posted @ 2025-11-23 18:27 As_Val
阅读(27)
评论(1)
推荐(0)
2025年10月23日
实验二
摘要: 实验一 源代码 T.cpp #include "T.h" #include <iostream> #include <string> // 类T实现 // static成员数据类外初始化 const std::string T::doc{"a simple class sample"}; const
阅读全文
posted @ 2025-10-23 21:28 As_Val
阅读(43)
评论(1)
推荐(0)
2025年10月14日
实验一:现代C++初体验
摘要: 实验一 源代码 #include <iostream> #include <string> #include <vector> #include <algorithm> template<typename T> void output(const T &c); void test1(); void
阅读全文
posted @ 2025-10-14 20:40 As_Val
阅读(20)
评论(1)
推荐(0)
公告