随笔分类 -  C++

摘要:string的初始化 string str1 = "hello world"; // str1 = "hello world" string str2("hello world"); // str2 = "hello world" string str3 = str1; // str3 = "hel 阅读全文
posted @ 2022-01-24 17:57 夜灯长明 阅读(82) 评论(0) 推荐(0) 编辑
摘要:1. 什么是vector 向量(Vector)是一个封装了动态大小数组的顺序容器(Sequence Container)。跟任意其它类型容器一样,它能够存放各种类型的对象。可以简单的认为,向量是一个能够存放任意类型的动态数组。 2.容器特性 顺序序列 顺序容器中的元素按照严格的线性顺序排序。可以通过 阅读全文
posted @ 2022-01-22 15:27 夜灯长明 阅读(483) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示