会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
pithia
博客园
首页
新随笔
联系
订阅
管理
2025年11月30日
实验4 组合与继承
摘要: 实验任务一: 源代码: 1 #pragma once 2 #include <vector> 3 #include <array> 4 #include <string> 5 class GradeCalc { 6 public: 7 GradeCalc(const std::string& cna
阅读全文
posted @ 2025-11-30 12:14 pithia
阅读(5)
评论(0)
推荐(0)
2025年11月24日
类和对象_基础编程2
摘要: 实验任务一: 源代码: button.hpp 1 #pragma once 2 #include <iostream> 3 #include <string> 4 class Button { 5 public: 6 Button(const std::string& label_); 7 cons
阅读全文
posted @ 2025-11-24 16:18 pithia
阅读(14)
评论(1)
推荐(0)
2025年10月26日
实验二
摘要: 实验任务一: 源代码: T.h 1 #pragma once 2 #include<string> 3 class T 4 { 5 public: 6 T(int x = 0, int y = 0); // 普通构造函数 7 T(const T& t); // 复制构造函数 8 T(T&& t);
阅读全文
posted @ 2025-10-26 18:29 pithia
阅读(10)
评论(1)
推荐(0)
2025年10月17日
实验一 现代C++编程初体验
摘要: 实验任务一源代码: 1 #include<iostream> 2 #include<string> 3 #include<vector> 4 #include<algorithm> 5 template<typename T> 6 void output(const T& c); 7 void te
阅读全文
posted @ 2025-10-17 20:52 pithia
阅读(15)
评论(1)
推荐(0)
公告