数据结构

Vector的使用bolg

参考blog:https://blog.csdn.net/weixin_41743247/article/details/90635931

注意:1.常见错误赋值方式

vector<int>a;
for(int i=0;i<10;++i){a[i]=i;}//下标只能用来获取已经存在的元素

 

 

 

map与unordered_map

参考blog:https://blog.csdn.net/qq_21997625/article/details/84672775

 

http://c.biancheng.net/view/7236.html

 

 

 

string

参考blog:https://www.cnblogs.com/mengxiaoleng/p/11371470.html

https://blog.csdn.net/manonghouyiming/article/details/79827040

 https://blog.csdn.net/qq_37941471/article/details/82107077

 

to_string

功能:将数字常量转换为字符串

使用头文件为 #include<string>

 

 

 

链表

 参考blog:https://blog.csdn.net/weixin_43930512/article/details/91382416

 

迭代器

 

 

 

 

set与unordered_set

set特点:

1、set中的元素都是排好序的

2、set集合中没有重复的元素

3.set无下标(只能用迭代器遍历)

参考blog:https://www.cnblogs.com/q1204675546/p/9954253.html

 https://blog.csdn.net/zhangxiao93/article/details/74357101

https://blog.csdn.net/byn12345/article/details/79523516?utm_medium=distribute.pc_relevant.none-task-blog-baidujs_baidulandingword-2&spm=1001.2101.3001.4242

posted @ 2020-10-25 13:38  ATKevin  阅读(72)  评论(0编辑  收藏  举报