会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
zxll
博客园
首页
新随笔
联系
订阅
管理
2025年12月23日
OOP实验六
摘要: 实验任务一 源代码: #include <algorithm> #include <iostream> #include <stdexcept> #include <vector> #include "contestant.hpp" #include "utils.hpp" const std::s
阅读全文
posted @ 2025-12-23 15:50 周心岚
阅读(6)
评论(1)
推荐(0)
2025年12月16日
OOP实验五
摘要: 实验任务一 源代码: #include <iostream> #include <string> #include "publisher.hpp" // Publisher类:实现 Publisher::Publisher(const std::string &name_): name {name_
阅读全文
posted @ 2025-12-16 13:10 周心岚
阅读(7)
评论(1)
推荐(0)
2025年12月1日
oop实验四
摘要: 实验任务一 源代码: #include <iostream> #include <string> #include "GradeCalc.hpp" void test() { GradeCalc c1("OOP"); std::cout << "录入成绩:\n"; c1.input(5); std:
阅读全文
posted @ 2025-12-01 14:59 周心岚
阅读(8)
评论(1)
推荐(0)
2025年11月22日
oop实验三
摘要: 实验任务一 源代码: #include "window.hpp" #include <iostream> void test(){ Window w("Demo"); w.add_button("add"); w.add_button("remove"); w.add_button("modify"
阅读全文
posted @ 2025-11-22 13:43 周心岚
阅读(15)
评论(1)
推荐(0)
2025年10月27日
oop实验二
摘要: 实验任务一 源代码 #pragma once #include <string> // 类T: 声明 class T { // 对象属性、方法 public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T(T &&t);
阅读全文
posted @ 2025-10-27 23:02 周心岚
阅读(13)
评论(2)
推荐(0)
2025年10月17日
oop实验一
摘要: 实验任务一 源代码 void test1(); void test2(); void test3(); int main() { std::cout << "测试1: \n"; test1(); std::cout << "\n测试2: \n"; test2(); std::cout << "\n测
阅读全文
posted @ 2025-10-17 18:21 周心岚
阅读(10)
评论(1)
推荐(0)
公告