会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
赛博朋克
大黄蜂
博客园
首页
新随笔
联系
管理
订阅
2025年10月12日
lCode题库
摘要: https://c.icode.org.cn/wrc_learn
阅读全文
posted @ 2025-10-12 08:12 爱吃泡面的皮卡
阅读(5)
评论(0)
推荐(0)
2025年10月8日
set笔记
摘要:
阅读全文
posted @ 2025-10-08 11:38 爱吃泡面的皮卡
阅读(6)
评论(0)
推荐(0)
2025/10/8 课堂笔记配套示例代码
摘要:
阅读全文
posted @ 2025-10-08 11:37 爱吃泡面的皮卡
阅读(6)
评论(0)
推荐(0)
set插入示例
摘要: #include <bits/stdc++.h> using namespace std; int main() { set<int> numbers; cout << " 插入操作详解 " << endl; // 1. insert 单个元素 auto result1 = numbers.inse
阅读全文
posted @ 2025-10-08 11:31 爱吃泡面的皮卡
阅读(9)
评论(0)
推荐(0)
set查找和统计示例
摘要: #include <iostream> #include <set> using namespace std; int main() { set<int> data = {10, 20, 30, 40, 50, 60, 70, 80, 90, 100}; cout << " 查找操作详解 " <<
阅读全文
posted @ 2025-10-08 11:31 爱吃泡面的皮卡
阅读(6)
评论(0)
推荐(0)
set删除示例
摘要: #include <iostream> #include <set> using namespace std; int main() { set<int> data = {10, 20, 30, 40, 50, 60, 70, 80, 90, 100}; cout << "初始数据: "; for(
阅读全文
posted @ 2025-10-08 11:30 爱吃泡面的皮卡
阅读(9)
评论(0)
推荐(0)
set初始化
摘要: #include <iostream> #include <set> #include <vector> using namespace std; int main() { // 1. 默认构造函数 set<int> emptySet; // 2. 初始化列表(自动去重和排序) set<int> n
阅读全文
posted @ 2025-10-08 11:30 爱吃泡面的皮卡
阅读(5)
评论(0)
推荐(0)
pair模板示例
摘要: #include <utility> #include <cmath> #include <iostream> // 返回平方和平方根 std::pair<int, int> calculate(int x) { return {x+x,x*2}; } int main() { std::pair<
阅读全文
posted @ 2025-10-08 11:29 爱吃泡面的皮卡
阅读(8)
评论(0)
推荐(0)
moveclass示例
摘要: #include <iostream> #include <algorithm> class Buffer { private: int* data_; size_t size_; public: // 构造函数 Buffer(size_t size = 0) : size_(size) { dat
阅读全文
posted @ 2025-10-08 11:28 爱吃泡面的皮卡
阅读(5)
评论(0)
推荐(0)
2025年10月2日
指针和地址的示例运用代码
摘要: #include <iostream> using namespace std; int main(){ int namber = 42; int* ptr = &number; // ptr 储存 number 的地址 cout<<"变量值:"<<number<<endl; // 42 cout<
阅读全文
posted @ 2025-10-02 09:36 爱吃泡面的皮卡
阅读(9)
评论(0)
推荐(0)
下一页
公告