码迷,mamicode.com
首页 >  
搜索关键字:dangling pointer    ( 2210个结果
c++内存泄露检测与定义
对于一个c/c++程序员来说,内存泄漏是一个常见的也是令人头疼的问题。已经有许多技术被研究出来以应对这个问题,比如 Smart Pointer,Garbage Collection等。Smart Pointer技术比较成熟,STL中已经包含支持Smart Pointer的class,但是它的使用似乎...
分类:编程语言   时间:2014-05-17 04:10:43    阅读次数:418
C++ Primer 学习笔记_71_面向对象编程 --句柄类与继承
面向对象编程--句柄类与继承引言: C++中面向对象编程的一个颇具讽刺意味的地方是:不能使用对象支持面向对象编程,相反,必须使用指针或引用。void get_prices(Item_base object, Item_base *pointer, Item_base &reference) { //需要根据指针或引用实际所绑定...
分类:编程语言   时间:2014-05-15 08:19:33    阅读次数:359
CSS cursor 属性
值 描述 url 需使用的自定义光标的 URL。 注释:请在此列表的末端始终定义一种普通的光标,以防没有由 URL 定义的可用光标。 default 默认光标(通常是一个箭头) auto 默认。浏览器设置的光标。 crosshair 光标呈现为十字线。 pointer 光标呈现为指示链接的指针(一只手) move ...
分类:Web程序   时间:2014-05-15 05:32:35    阅读次数:1537
Leetcode | Implement strStr()
Implement strStr().Returns a pointer to the first occurrence of needle in haystack, or null if needle is not part of haystack.此题我觉得并不是真要你写出kmp算法。 指针暴力...
分类:其他好文   时间:2014-05-15 01:49:42    阅读次数:330
operator->
在学习Stl的过程中,经常看到->符号的重载,但一直不太明白。 今天做了一个小测试,来看看如果调用它。 以list的迭代器为例,在 pointer operator->() const { return &(operator*());}中加入 cout str_list; str_list.push...
分类:其他好文   时间:2014-05-14 10:32:52    阅读次数:221
Delphi的函数指针
不求全面,先留个爪: TNotifyEvent = procedure(Sender: TObject) of object; TMethod = record Code, Data: Pointer; end;判断两个按钮的事件是否相等:procedure TForm1.Button5...
分类:其他好文   时间:2014-05-12 20:58:45    阅读次数:432
<Effective Django>读书笔记
In Django parlance, a project is the final product, and it assembles one or more applications together.Manage.py is a pointer back to Django-admin.py ...
分类:其他好文   时间:2014-05-10 07:56:19    阅读次数:480
备份3个判断指针是否有效的函数,以备不时之需
BOOLEAN MmIsAddressValid( _In_PVOID VirtualAddress);ParametersVirtualAddress[in]A pointer to the nonpaged virtual address to check. The caller must e....
分类:其他好文   时间:2014-05-09 11:51:40    阅读次数:535
leetcode题目:Copy List with Random Pointer
题目: A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. Return a deep copy of the list. 思路: 主要是深层复制的问题: 本题比较简...
分类:其他好文   时间:2014-05-07 02:44:38    阅读次数:344
leetcode -day8 Copy List with Random Pointer & Single Number I II
五一中间断了几天,开始继续。。。 1、 ?? Copy List with Random Pointer A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. Return a...
分类:其他好文   时间:2014-05-06 18:54:59    阅读次数:386
2210条   上一页 1 ... 218 219 220 221 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!