2021年8月14日
摘要: 1 //deque容器 构造函数 //deque赋值操作 //deque大小操作 //重新指定大小 2 //deque没有容量概念 //deque插入和删除 //deque 容器数据存取 3 ////deque 排序 sotr算法 4 5 #include<iostream> 6 #include< 阅读全文
posted @ 2021-08-14 16:52 Bytezero! 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 1 //vector 容器构造 vector赋值操作 vector 容量大小 vector插入和删除 2 //vector数据存取 vector互换容器 vector预留空间 3 #include<iostream> 4 #include<string> 5 #include<vector> 6 7 阅读全文
posted @ 2021-08-14 11:53 Bytezero! 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 1 //string字符串查找和替换 比较 存取 修改单个字符 插入和删除 string字串 2 #include <iostream> 3 #include<string> 4 5 using namespace std; 6 //查找 7 8 void test01() 9 { 10 strin 阅读全文
posted @ 2021-08-14 08:45 Bytezero! 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 1 //string字符串拼接 2 #include <iostream> 3 #include<string> 4 5 using namespace std; 6 7 8 void test01() 9 { 10 string str1 = "我"; 11 12 str1 += "爱学习"; 1 阅读全文
posted @ 2021-08-14 07:35 Bytezero! 阅读(1898) 评论(0) 推荐(0) 编辑