
C++
MR_jie1
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Leetcode常见问题1:reference binding to null pointer of type 'const value_type'
问题1:reference binding to null pointer of type 'const value_type'在LeetCode做题的过程中,遇到"reference binding to null pointer of type ‘value...转载 2019-06-05 19:15:44 · 807 阅读 · 0 评论 -
C++ string类中的erase函数
1. basic_string & erase(size_type pos=0, size_type n=npos);即从给定起始位置pos处开始删除, 要删除字符的长度为n, 返回值修改后的string对象引用#include<iostream>#include<string>using namespace std;int main(){ st...原创 2019-06-07 19:27:27 · 573 阅读 · 0 评论 -
C++中INT_MAX,INT_MIN数值大小
int占4字节32位,根据二进制编码的规则,INT_MAX = 231-1=231^-1=2147483647INT_MIN= -2^31=-2147483648C/C++中,所有超过该限值的数,都会出现溢出,出现warning,但是并不会出现error。如果想表示的整数超过了该限值,可以使用长整型long long 占8字节64位。...原创 2019-06-03 16:25:34 · 12208 阅读 · 0 评论