摘要: 1. 数组作为函数的参数,会退化为函数指针 数组作为函数的参数将变成指针类型,将指针传入时,即是求指针的sizeof。32位系统的指针是一个int,4个字节。 2. 内置类型与自定义类型被new时的动作 对于内置类型而言,new仅仅是分配内存,除非后面显示加(),相当于调用它的构造函数。 对于自定义 阅读全文
posted @ 2017-04-18 01:23 深度C++ 阅读(208) 评论(0) 推荐(0)
摘要: 把应用程序设置成winodws服务的命令如下sc create FileMonitorService type= own start= auto binpath= E:\learn_project\WindowsService1\FileMonitorService\bin\Debug\FileMo... 阅读全文
posted @ 2015-09-20 11:25 深度C++ 阅读(142) 评论(0) 推荐(0)
摘要: memcached源码版本:memcached-1.4.241. 与 hash 相关的文件hash.h / hash.c就一个函数 hash_init(enum hashfunc_type type) ,main函数调用,用来选择使用的 hash 函数。hash.h 1 typedef uint32... 阅读全文
posted @ 2015-09-02 15:37 深度C++ 阅读(265) 评论(0) 推荐(0)