摘要: 转自:https://www.jianshu.com/p/7d63991470a8,https://bbs.csdn.net/topics/392084964 1.介绍 C++primer p474 上面提到在对vector进行push_back重新分配内存空间时,是将旧空间移动到新内存的,但移动过 阅读全文
posted @ 2021-03-03 15:49 lypbendlf 阅读(981) 评论(0) 推荐(0)
摘要: 转自:https://www.cnblogs.com/wkfvawl/p/9475939.html,https://www.cnblogs.com/linuxAndMcu/p/10264339.html 1.二分查找 #include <algorithm> //查找某个元素是否出现,返回布尔类型, 阅读全文
posted @ 2021-03-03 12:19 lypbendlf 阅读(144) 评论(0) 推荐(0)