会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wyjc404
博客园
首页
新随笔
联系
订阅
管理
2025年12月23日
作业6
摘要: 作业6 实验任务1 #pragma once #include <iomanip> #include <iostream> #include <string> struct Contestant { long id; // 学号 std::string name; // 姓名 std::string
阅读全文
posted @ 2025-12-23 23:26 weiy404
阅读(5)
评论(1)
推荐(0)
2025年12月16日
实验五
摘要: 任务1: 问题1. (1) Publish存在纯虚函数talk() (2) 不能,抽象类无法实例化 问题2. (1) publish和use两个函数, virtual void publish() = 0 ; (2) 问题3. (1) Publish* (2) Book,Film,Music (3)
阅读全文
posted @ 2025-12-16 21:56 weiy404
阅读(5)
评论(1)
推荐(0)
2025年12月2日
作业4
摘要: 实验2 实验任务一 GradeCalc.cpp #include <algorithm> #include <array> #include <cstdlib> #include <iomanip> #include <iostream> #include <numeric> #include <s
阅读全文
posted @ 2025-12-02 17:38 weiy404
阅读(7)
评论(1)
推荐(0)
2025年11月25日
实验三
摘要: 实验2 实验任务一 : button.hpp: #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label_); const std::string
阅读全文
posted @ 2025-11-25 21:04 weiy404
阅读(5)
评论(1)
推荐(0)
2025年10月28日
实验2
摘要: 实验2 实验任务一 : 代码组织: T.h 内容:类T的声明、友元函数声明 T.cpp 内容:类T的实现、友元函数实现 task1.cpp 内容:测试模块、main函数 T.h: #include <string> // 类T: 声明 class T { // 对象属性、方法 public: T(i
阅读全文
posted @ 2025-10-28 20:30 weiy404
阅读(5)
评论(1)
推荐(0)
2025年10月13日
实验1
摘要: 实验1现代C++编程初体验 实验任务一 : task1.cpp: #include <iostream> #include <string> #include <vector> #include <algorithm> template <typename T> void output(const
阅读全文
posted @ 2025-10-13 21:56 weiy404
阅读(11)
评论(1)
推荐(0)
公告