C++中int与string的相互转换 摘要:### 一、 int转string 1. c++11标准增加了全局函数std::to_string; ###### *头文件:#include * ```cpp int a=123; str…… 文章列表 2019年11月17日 0 点赞 0 评论 1598 浏览 评分:9.9
C++ 二分查找函数 摘要::bowtie: :heart_eyes: :heart_eyes: :heart_eyes: ``` #include//头文件 //标准形式 lower_bound(int* first,…… 文章列表 2019年11月17日 0 点赞 0 评论 1493 浏览 评分:9.7
c++中获取字符串的长度 摘要: ### 一、strlen()函数例: 函数 strlen()是一个常规函数,他接受一个 C-风格字符串作为参数,并返回字符串包含的字符数。 参数必须是字符型指针(char*)。当数组名作为参…… 文章列表 2019年11月17日 0 点赞 0 评论 1009 浏览 评分:9.9
C++中获取数据类型和比较数据类型 摘要:### 一、 获取数据的类型: ###### *首先引入头文件:#include* ```cpp int a,b; char str[256]={0}; const type_info &n…… 文章列表 2019年11月17日 0 点赞 0 评论 1305 浏览 评分:9.9
c/c++中输入输出函数的返回值 摘要:### 一、 C语言中: #### 1. Scanf()的返回值可以分成三种情况: 1) 正整数,表示正确输入参数的个数。 **例**:执行 scanf("%d %d", &a,…… 文章列表 2019年11月17日 0 点赞 0 评论 1404 浏览 评分:9.9
1048-不算太完美的编写 摘要:# 第一次写请互相指出问题:bowtie: :wink: #include struct data{ int y; int m; …… 文章列表 2019年11月12日 0 点赞 0 评论 520 浏览 评分:9.9
分苹果?????? 摘要:```cpp #include #include #include using namespace std; struct node{ int left; int right; …… 文章列表 2019年11月11日 0 点赞 0 评论 496 浏览 评分:0.0
03-树--浙大数据结构-2019秋 摘要:``` 03-树1 树的同构 (25 分) ```   ```  ![](/imag…… 文章列表 2019年11月09日 0 点赞 0 评论 716 浏览 评分:9.9