STL容器 字符串中的一些有用的函数 等
is_it_a_error
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
string.find() string.substr();
string.find('a')返回第一个出现a的位置,下标(注:非指针)string类的查找函数:int find(char c, int pos = 0) const;//从pos开始查找字符c在当前字符串的位置int find(const char *s, int pos = 0) const;//从pos开始查找字符串s在当前串中的位置int find(const char原创 2015-10-19 14:10:47 · 420 阅读 · 0 评论 -
tolower()
功能:把字符转化成小写字母,非字母字符则不作任何处理头文件//tolower(a);只能为单个字符//只能一位一位处理原创 2015-10-19 14:08:51 · 360 阅读 · 0 评论 -
multiset
在写BC的一个题时碰到了multiset,在这里来写一写hdu 5596multiset我把具体用法写到注释里吧......#include #include #include #include #include #include #include using namespace std;const int maxn = 50000 + 40原创 2015-12-13 10:14:29 · 269 阅读 · 0 评论
分享