会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
zh5201bst
博客园
首页
新随笔
联系
订阅
管理
2025年12月2日
实验4 组合与继承
摘要: 实验任务1 代码组织: GradeCalc.hpp 类GradeCalc声明 GradeCalc.cpp 类GradeCalc实现 demo1.cpp 测试代码 + main.cpp GradeCalc.hpp #pragma once #include <vector> #include <arr
阅读全文
posted @ 2025-12-02 23:24 bastille433
阅读(1)
评论(0)
推荐(0)
2025年11月25日
实验3 类和对象_基础编程2
摘要: 实验任务1 代码组织: button.hpp Button类定义 window.hpp Window类定义 task1.cpp 测试模块、main button.hpp #pragma once #include <iostream> #include <string> class Button {
阅读全文
posted @ 2025-11-25 23:25 bastille433
阅读(6)
评论(4)
推荐(0)
2025年10月27日
实验2 现代C++编程初体验
摘要: 实验任务1 代码组织: T.h:类T的声明、友元函数声明 T.cpp:类T的实现、友元函数实现 task1.cpp:测试模块、main函数 T.h #include <string> // 类T: 声明 class T { // 对象属性、方法 public: T(int x = 0, int y
阅读全文
posted @ 2025-10-27 22:15 bastille433
阅读(9)
评论(1)
推荐(0)
2025年10月17日
实验1 现代C++编程初体验
摘要: 实验任务1 task1.cpp // 现代C++标准库、算法库体验 // 本例用到以下内容: // 1. 字符串string, 动态数组容器类vector、迭代器 // 2. 算法库:反转元素次序、旋转元素 // 3. 函数模板、const引用作为形参 #include <iostream> #in
阅读全文
posted @ 2025-10-17 19:08 bastille433
阅读(11)
评论(1)
推荐(0)
公告