![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++
saomanchum
这个作者很懒,什么都没留下…
展开
-
c++: stl deque
https://www.cnblogs.com/ayaoyao/p/9552920.html原创 2020-02-25 16:16:46 · 86 阅读 · 0 评论 -
c++ 指针和引用
https://blog.csdn.net/smartgps2008/article/details/90648015原创 2020-02-22 16:45:44 · 99 阅读 · 0 评论 -
c++容器类
容器类中文容器类英文原创 2020-02-22 16:35:15 · 204 阅读 · 0 评论 -
c++中随机数得生成
要取得[a,b)的随机整数,使用(rand() % (b-a))+ a;要取得[a,b]的随机整数,使用(rand() % (b-a+1))+ a;要取得(a,b]的随机整数,使用(rand() % (b-a))+ a + 1;通用公式:a + rand() % n;其中的a是起始值,n是整数的范围。要取得a到b之间的随机整数,另一种表示:a + (int)b * rand() / (RA...原创 2020-02-22 10:56:12 · 105 阅读 · 0 评论 -
c++中delete指针并将其赋值为NULL
delete指针之后,只是释放了指针指向的内存空间,但是指针还在,并指向之前的地址原创 2020-02-16 16:16:13 · 460 阅读 · 0 评论 -
substr
#include<string>#include<iostream>using namespace std;main(){string s("12345asdf");string a=s.substr(0,5); //获得字符串s中&nbs...转载 2019-07-27 09:55:40 · 57 阅读 · 0 评论