会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
fushuheng
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
下一页
2025年11月16日
HTML3------笔记图片
摘要:
阅读全文
posted @ 2025-11-16 09:30 付书恒
阅读(4)
评论(0)
推荐(0)
2025年11月15日
HTML2-----点击gsgadg变色
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>童心少年</title> <style> p{ color:red } </style> </head> <body> <p style="color:blue">假设 y=5,
阅读全文
posted @ 2025-11-15 12:00 付书恒
阅读(3)
评论(0)
推荐(0)
2025年10月8日
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:31 付书恒
阅读(4)
评论(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)
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:30 付书恒
阅读(4)
评论(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:29 付书恒
阅读(4)
评论(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 付书恒
阅读(4)
评论(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 <bits/stdc++.h> using namespace std; int main(){ int number=42; int *ptr=&number;//ptr 存储 number 的地址 cout<<"变量值:"<<number<<endl; //42 cout<<"
阅读全文
posted @ 2025-10-02 09:59 付书恒
阅读(7)
评论(0)
推荐(0)
advance 函数
摘要:
阅读全文
posted @ 2025-10-02 09:48 付书恒
阅读(15)
评论(0)
推荐(0)
上一页
1
2
3
下一页
公告