- 博客(3)
- 资源 (10)
- 问答 (1)
- 收藏
- 关注
原创 十月读书心得
1.sizeof与strlen的区别。 #include using namespace std; void main() { cout << sizeof("hello") << endl; }答案: 6 原因: “hello”={‘h’,'e','l','l','o','\0'};共六个字节。 那么sizeof与strlen有什么区别呢? 总结起来: 1). sizeof
2015-10-13 09:39:04
870
转载 delete与delete[]的区别
一直对C++中的delete和delete[]的区别不甚了解,今天遇到了,上网查了一下,得出了结论。做个备份,以免丢失。 C++告诉我们在回收用 new 分配的单个对象的内存空间的时候用 delete,回收用 new[] 分配的一组对象的内存空间的时候用 delete[]。 关于 new[] 和 delete[],其中又分为两种情况:(1) 为基本数据类型分配和回收空间;(2)
2015-10-08 12:40:23
596
原创 自定义String
#include #include using namespace std; class String{ public: String(); String(const char* str); ~String(); String(const String& rhs); String& operator=(const String& rhs); friend String operat
2015-10-08 12:31:12
649
test_demo.zip
2019-08-06
matlab_caffe_cpu_vs2015_matlab_2016_py35.zip
2019-06-23
doxygen安装工具
2015-11-08
2.46公式推导有误,应该改为
2014-12-29
TA创建的收藏夹 TA关注的收藏夹
TA关注的人