c++11&14 STL要点汇总

上传:zgchenhongjun 浏览: 12 推荐: 0 文件:PDF 大小:50.61KB 上传时间:2020-12-23 01:13:58 版权申诉
在c++里面不得不提的一个标准库,就是STL,STL包含很多实用的数据结构,如vector,list,map,set等都是我们常用的,而c++11也对STL做了一些补充,使得STL的内容越来越丰富,可选择的也越来越多了。 1. std::array 先看一段代码: #include #include int main() { std::array arrayDemo = { 1,2,3,4 }; std::cout << "arrayDemo:" << std::endl; for (auto itor :
上传资源
用户评论