PDEVICE_OBJECTIoGetRelatedDeviceObject( IN
PFILE_OBJECT FileObject )/*++Routine Description: This routine returns a pointer
to the actual dev...
分类:
其他好文 时间:
2014-06-03 11:35:08
阅读次数:
294
1,virConnectGetLibVersionAPI call obtain the
version of libvirt software in use on the hostit takes a connection pointer and
unsigned long pointer as ...
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 ...
分类:
其他好文 时间:
2014-05-30 15:07:49
阅读次数:
260
一、寄存器的英文全称AH&AL=AX(accumulator):累加寄存器
BH&BL=BX(base):基址寄存器 CH&CL=CX(count):计数寄存器 DH&DL=DX(data):数据寄存器
SP(Stack Pointer):堆栈指针寄存器 BP(Base Pointer):基址指针寄...
分类:
其他好文 时间:
2014-05-28 19:09:52
阅读次数:
300
STL的堆操作STL里面的堆操作一般用到的只有4个:make_heap();、pop_heap();、push_heap();、sort_heap();他们的头文件函数是#include
首先是make_heap();他的函数原型是:void make_heap(first_pointer,end_...
分类:
其他好文 时间:
2014-05-28 02:15:50
阅读次数:
291
Implement strStr()Implement strStr().Returns a
pointer to the first occurrence of needle in haystack, ornullif needle is not
part of haystack.标准KMP算法。...
分类:
其他好文 时间:
2014-05-27 23:41:07
阅读次数:
366
起:C++98标准加入auto_ptr,即智能指针,C++11加入shared_ptr和weak_ptr两种智能指针,先从auto_ptr的定义学习一下auto_ptr的用法。template class
auto_ptr { // wrap an object pointer to ensure....
分类:
编程语言 时间:
2014-05-27 16:13:40
阅读次数:
440
1、const char* p: p is a pointer to const char(char
const* p 一样) 意思就是不能通过p指针来修改p指向的内容(但是内容可以修改)。2、char* p : p is a pointer to char
意思就是可通过p指针来修改p指向的内容3...
分类:
其他好文 时间:
2014-05-26 17:30:58
阅读次数:
153
首先,为什么要指针对齐(Pointer Alignment)?
指针对齐有时候非常重要,因为许多硬件相关的东西在对齐上存在限制。在有些系统中,某种数据类型只能存储在偶数边界的地址处。
例如,在经典的 SPARC架构(以及经典的ARM)上,你不能从奇数地址读取一个超过1字节的整型数据。尝试这么做将会立即终止程序,并伴随着总线错误。而在X86架构上,CPU硬件处理了这个问题,只是这么做将会花费更多...
分类:
其他好文 时间:
2014-05-25 18:12:37
阅读次数:
917
The Leak of the Memory in C++
In this chaper I will introduce a new smart pointer which is scoped_ptr;
It likes auto_ptr but better. When peopel use auto_ptr, sometimes they forget
that auto_...
分类:
编程语言 时间:
2014-05-25 07:03:10
阅读次数:
373