摘要:
1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<set> 5 #include<string> 6 7 8 /* 9 3.8.6 set和multiset区别 10 11 set不可以插入重复数据, 阅读全文
posted @ 2021-05-12 11:16
yub4by
阅读(112)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<set> 5 6 7 /* 8 3.8.3 set容器大小和交换 9 10 size(); //返回容器中元素的数目 11 empty(); //判断 阅读全文
posted @ 2021-05-12 11:14
yub4by
阅读(124)
评论(0)
推荐(0)
摘要:
#include<iostream> #include<cstdlib> using namespace std; #include<set> /* 3.8 set/multiset容器 3.8.1 set基本概念 简介:所有元素都会在插入时自动被排序 本质:set/multiset属于关联式容器, 阅读全文
posted @ 2021-05-12 11:12
yub4by
阅读(112)
评论(0)
推荐(0)