摘要: https://blog.csdn.net/jirryzhang/article/details/79518408 https://www.cnblogs.com/learning-zjx/p/10645659.html getMemory()在下面链接有详细讲解 https://www.cnblo 阅读全文
posted @ 2019-10-28 21:22 代号870 阅读(161) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/jasontec/p/9699242.html B站学习视频 https://www.bilibili.com/video/av76058951?from=search&seid=9207673023702955078 阅读全文
posted @ 2019-10-27 16:45 代号870 阅读(80) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/csdn_whb/article/details/81251713 阅读全文
posted @ 2019-10-27 16:33 代号870 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 1.空指针 1> 没有存储任何内存地址的指针就称为空指针(NULL指针) 2> 空指针就是被赋值为0的指针,在没有被具体初始化之前,其值为0。 下面两个都是空指针: 1 Student *s1 = NULL; 2 3 Student *s2 = nil; 2.野指针 "野指针"不是NULL指针,是指 阅读全文
posted @ 2019-10-26 17:29 代号870 阅读(604) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/NietzscheI/article/details/100188879 阅读全文
posted @ 2019-10-26 09:33 代号870 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 百度就行 https://blog.csdn.net/gochenguowei/article/details/79669038 https://blog.csdn.net/u012426959/article/details/78935347 阅读全文
posted @ 2019-10-25 09:35 代号870 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 通常来说有名字的变量就是左值(如上面例子中的 a, b),而由运算操作(加减乘除,函数调用返回值等)所产生的中间结果(没有名字)就是右值 左值就是在程序中能够寻值的东西,右值就是没法取到它的地址的东西(不完全准确) 在C++之中的变量只有左值与右值两种: 凡是可以取地址的变量就是左值, 而没有名字的 阅读全文
posted @ 2019-10-25 09:33 代号870 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 转自如下: https://blog.csdn.net/zzwdkxx/article/details/53409803 1. 深拷贝和浅拷贝(拷贝构造函数的使用) 有时候需要自己定义拷贝构造函数,以避免浅拷贝问题。 在什么情况下需要用户自己定义拷贝构造函数: 一般情况下,当类中成员有指针变量、类中 阅读全文
posted @ 2019-10-25 09:08 代号870 阅读(408) 评论(0) 推荐(0) 编辑
摘要: 双端队列deque https://www.cnblogs.com/silence-cho/p/10041026.html 阅读全文
posted @ 2019-10-24 21:13 代号870 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 他的博客 阅读全文
posted @ 2019-10-24 20:15 代号870 阅读(48) 评论(0) 推荐(0) 编辑