02-线性结构--浙大数据结构-2019秋 摘要:``` 02-线性结构1 两个有序链表序列的合并 (15 分) ```   ```  的返回值可以分成三种情况: 1) 正整数,表示正确输入参数的个数。 **例**:执行 scanf("%d %d", &a,…… 文章列表 2019年11月17日 0 点赞 0 评论 1344 浏览 评分:9.9
C++中获取数据类型和比较数据类型 摘要:### 一、 获取数据的类型: ###### *首先引入头文件:#include* ```cpp int a,b; char str[256]={0}; const type_info &n…… 文章列表 2019年11月17日 0 点赞 0 评论 1233 浏览 评分:9.9
c++中获取字符串的长度 摘要: ### 一、strlen()函数例: 函数 strlen()是一个常规函数,他接受一个 C-风格字符串作为参数,并返回字符串包含的字符数。 参数必须是字符型指针(char*)。当数组名作为参…… 文章列表 2019年11月17日 0 点赞 0 评论 968 浏览 评分:9.9
C++中int与string的相互转换 摘要:### 一、 int转string 1. c++11标准增加了全局函数std::to_string; ###### *头文件:#include * ```cpp int a=123; str…… 文章列表 2019年11月17日 0 点赞 0 评论 1538 浏览 评分:9.9
STL---string容器 摘要:``` 头文件:#include 还要在加上,using namespace std; ``` ```初始化 ``` ``` string str="abcd"; ``` ```str…… 文章列表 2019年11月19日 0 点赞 0 评论 511 浏览 评分:9.9
map与mutimap容器总结 摘要:``` map与mutimap的用法基本一样 map可以根据key的排序准则自动将元素排序 multimap允许重复元素,map不允许有重复 ``` ![](/image_edito…… 文章列表 2019年11月19日 0 点赞 0 评论 684 浏览 评分:9.9
queue 与 priority_queue的常见用法 摘要:``` queue翻译为队列,实现了一个先进先出容器 ``` ``` #include using namespace std; ``` ``` queue name;// 定义 `…… 文章列表 2019年11月19日 0 点赞 0 评论 560 浏览 评分:9.9