rope总结
来源:互联网 发布:蜂巢网络与无人机 编辑:程序博客网 时间:2024/06/06 17:42
#include <ext/rope> //所在头文件using namespace __gnu_cxx;//所在命名空间const int N = 10000 + 10;//一般用来处理字符串rope<char> rs;//可以是int之类的类型,但是会有某些方法无法使用//等价于crope rsrs.insert(pos, str);//从pos位置开始插入strrs.erase(pos, len);//从pos位置开始删掉长度为len的元素rs.substr(pos, len);//从pos位置开始提取长度为len的子串rs.replace(pos, x)//替换pos处的元素为xrs.replace(pos, pos+len, str) //替换pos~pos+len-1这一段的元素为str,len=strlen(str)rs.at(pos) //访问第pos个元素
阅读全文
0 0
- rope总结
- rope poj
- Verlet rope
- POJ2365 Rope
- BZOJ1507【rope】
- BZOJ1209【rope】
- 2365 Rope
- 1020. Rope
- Rope:理论与实践
- Rope Crisis in Ropeland
- ural 1020. Rope
- cocos2d cut the rope
- ural 1020 Rope
- [timus] 1020. Rope
- hdu_4476_Cut the rope
- POJ 2365 Rope
- hust 1626 Cutting rope
- [BZOJ1507][NOI2003][Rope]Editor
- 仿百度首页
- 数据挖掘SSAS(Sql server analysis service)
- 移动页面侧滑的演示
- python爬虫由浅入深3--BeautifulSoup的使用的基本方法
- 移动
- rope总结
- [JAVA] 简述Hibernate HQL 01
- 鼠标移动,按下,松开记录坐标和偏移量事件
- dirprm/repfull.prm does not exist for REPFULL
- 媒体查询~~~~根据网页窗口大小改变颜色
- angularjs初始化时,同一方法调用了2次
- 奋斗群群赛---13,14 跑跑更健康!
- java swing 开发中的一些坑总结
- 新手学web之HTML快速了解及入门