c++中获取字符串的长度 摘要: ### 一、strlen()函数例: 函数 strlen()是一个常规函数,他接受一个 C-风格字符串作为参数,并返回字符串包含的字符数。 参数必须是字符型指针(char*)。当数组名作为参…… 文章列表 2019年11月17日 0 点赞 0 评论 1017 浏览 评分:9.9
C++ 二分查找函数 摘要::bowtie: :heart_eyes: :heart_eyes: :heart_eyes: ``` #include//头文件 //标准形式 lower_bound(int* first,…… 文章列表 2019年11月17日 0 点赞 0 评论 1507 浏览 评分:9.7
C++中int与string的相互转换 摘要:### 一、 int转string 1. c++11标准增加了全局函数std::to_string; ###### *头文件:#include * ```cpp int a=123; str…… 文章列表 2019年11月17日 0 点赞 0 评论 1602 浏览 评分:9.9
【题解】hevttc_2019_1_创译云端新生赛 摘要:- 错过比赛的同学请点进每道题的**原题链接**补题 ------------ ###A.Hello World 原题链接:[Hello World](https://www.dotcp…… 文章列表 2019年11月17日 0 点赞 0 评论 706 浏览 评分:9.6
STL---string容器 摘要:``` 头文件:#include 还要在加上,using namespace std; ``` ```初始化 ``` ``` string str="abcd"; ``` ```str…… 文章列表 2019年11月19日 0 点赞 0 评论 587 浏览 评分:9.9
map与mutimap容器总结 摘要:``` map与mutimap的用法基本一样 map可以根据key的排序准则自动将元素排序 multimap允许重复元素,map不允许有重复 ``` ,因此也称为非线性时间比较类排序。 **非比较类排序:**…… 文章列表 2019年11月19日 0 点赞 0 评论 630 浏览 评分:9.9
stack的常见用法 摘要:``` stack翻译为栈,是STL中实现的一个后进先出的容器 ``` ``` #include using namespace std; ``` ``` stack name;//…… 文章列表 2019年11月19日 0 点赞 0 评论 677 浏览 评分:9.9