- 博客(4)
- 资源 (1)
- 收藏
- 关注
转载 vld使用
http://vld.codeplex.com/documentation最近发现用vs2013,vld的版本是2.3,发现 检测不了Visual Leak Detector Version 2.3 installed.No memory leaks detected.Visual Leak Detector is now exiting.网上也已经证实了这个bug
2017-01-22 14:42:17 805
转载 二维指针的new和delete
二维指针的new和deleteNew:A** ga = new A*[m];for(int i = 0; i { ga[i] = new A[n];}Delete:for(int i = 0; i { delete []ga[i];}delete []ga;应此C/C++ code?
2017-01-14 17:29:17 5872 1
转载 内存分配失败错误处理
一、C语言中的malloc/calloc/realloc/valloc/alloca/memalign函数:这样的内存分配函数在内存分配失败时都返回空指针,因此,在调用返回时,检查返回值的方法比较简单,只需要与空指针比较即可;如:char* p = (char*)malloc(1204);if(p == NULL){ //error handle;};char*
2017-01-13 13:56:57 4904
转载 QT下256彩色BMP&JPG图像生成
QTextCodec* cod=QTextCodec::codecForLocale(); QImage* image=new QImage(300,200,QImage::Format_RGB32);//("images/20110114091415349_0.jpg"); QPainter painter; painter.b
2017-01-06 17:58:24 2742
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人