会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
nusit
博客园
首页
新随笔
联系
订阅
管理
2024年12月16日
cpp 实验6
摘要: 1 vector.h 2 #pragma once 3 #include<iostream> 4 #include<stdexcept> 5 using namespace std; 6 template<typename T> 7 class Vector { 8 private: 9 int s
阅读全文
posted @ 2024-12-16 09:54 泽康郁
阅读(53)
评论(0)
推荐(0)
2024年12月1日
cpp 实验5
摘要: 1 hpp 2 #pragma once 3 #include<iostream> 4 using namespace std; 5 class MachinePets { 6 private: 7 string nickname; 8 public: 9 MachinePets(const str
阅读全文
posted @ 2024-12-01 23:37 泽康郁
阅读(97)
评论(0)
推荐(0)
2024年11月17日
cpp 实验4
摘要: 1 .hpp 2 #pragma once 3 #include<iostream> 4 #include<vector> 5 #include<string> 6 #include<algorithm> 7 #include<numeric> 8 #include<iomanip> 9 using
阅读全文
posted @ 2024-11-17 23:22 泽康郁
阅读(95)
评论(0)
推荐(0)
2024年11月4日
cpp 实验3
摘要: task1 task1问题一:定义了两个类 Button和window.使用了标准的两个类 string和vector。问题二: 剩下的函数主要是一些负责输出结果的函数,它们在输出的过程中不会改变对象的值,所以我觉得没有必要加const,当然它们属于简单的输出语句可以设计成内联函数.问题三:定义一个
阅读全文
posted @ 2024-11-04 09:37 泽康郁
阅读(117)
评论(0)
推荐(0)
2024年10月22日
cpp 实验2
摘要: 1 t.h 2 #pragma once 3 #include<string> 4 using namespace std; 5 class T { 6 7 public: 8 T(int x = 0, int y = 0); 9 T(const T& t); 10 T(T&& t); 11 ~T(
阅读全文
posted @ 2024-10-22 22:50 泽康郁
阅读(114)
评论(0)
推荐(0)
公告