会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
cyuyan-xionger
博客园
首页
新随笔
新文章
联系
管理
订阅
2024年12月21日
实验六
摘要: task4 代码 Vector.hpp 点击查看代码 #pragma once #include<iostream> #include<stdexcept> using namespace std; template <typename T> class Vector { public: Vecto
阅读全文
posted @ 2024-12-21 19:06 熊二不晚安
阅读(5)
评论(0)
推荐(0)
2024年12月7日
实验五
摘要: 任务三: 测试代码> pets.hpp 点击查看代码 #pragma once #include<iostream> #include<string> using namespace std; class MachinePets { public: MachinePets(const string&
阅读全文
posted @ 2024-12-07 17:51 熊二不晚安
阅读(10)
评论(0)
推荐(0)
2024年11月24日
实验四 类的组合、继承、模板、标准库
摘要: 2.Gradeclc.hpp `#include include include include include include using std::vector; using std::string; using std::cin; using std::cout; using std::end
阅读全文
posted @ 2024-11-24 21:03 熊二不晚安
阅读(25)
评论(0)
推荐(0)
2024年11月9日
实验三 类和对象——基础编程2
摘要: 1/1自定义了两个类:一个是button,一个是window 标准库中使用了string,vector button和string button和window string和window vector和window 1/2 button.close函数不适合添加inline,因为这个函数的功能是在引
阅读全文
posted @ 2024-11-09 15:38 熊二不晚安
阅读(16)
评论(0)
推荐(0)
2024年10月14日
实验一
摘要: 代码一: 迭代器的v.end()是指容器最后一个元素的后面一个 代码二: 代码三: 点击查看代码 bool is_palindrome(std::string t) { int i = 0, j, flag = 0; j = t.size() - 1; for (; i < j; i++, j--)
阅读全文
posted @ 2024-10-14 19:47 熊二不晚安
阅读(10)
评论(0)
推荐(0)
公告