rope stl
C++ STL摘记
一、string类补充 1.函数示例: (1)find和rfind函数,返回的是下标或者string::npos index=ss.find(s1,pos,num) find从pos(包括)开始往右查找(num的作用待补充) index=ss.rfind(s1,poss,num) rfind从pos ......
算法分析与设计——冒泡排序,选择排序,STL自带sort函数性能比较实验
实验环境:Win11,Dev c++5.11实验方法:生成不同数据量的随机数后使用三种排序方法,比较每种方法所耗时长。实验结果:数据量为1000时,冒泡排序平均用时为0.015s,选择排序平均用时为0.01s,STL自带sort函数平均用时显示为0s(过快无法测出)。数据量为10000时,冒泡排序平 ......
天梯赛练习题 L3-002 特殊堆栈(stl)
https://pintia.cn/problem-sets/994805046380707840/exam/problems/994805053695574016 输入样例: 17 Pop PeekMedian Push 3 PeekMedian Push 2 PeekMedian Push 1 ......