摘要:
STL3个代表性函数:for_each(), random_shuffle(), sort() vector<int> stuff; random_shuffle(stuff.begin(),stuff.end()); 随机排列两个迭代器之间的所有元素 sort(stuff.begin(),stuf 阅读全文
摘要:
一般STL函数接收迭代器参数的规则为:[it1, it2) 左闭右开区间; vector<int> scores; scores.erase(scores.begin(),scores.end()); 一般.end()指向容器结尾的下一个元素,称为超尾元素; scores.insert(score. 阅读全文
摘要:
STL中的常用容器包括:顺序性容器(vector、deque、list)、关联容器(map、set)、容器适配器(queue、stac) 转载自:https://blog.csdn.net/u013443618/article/details/49964299 https://www.cnblogs 阅读全文