码迷,mamicode.com
首页 >  
搜索关键字:ifdef    ( 750个结果
linux 内存管理
linux 引入了 Node的概念7 bootmem_data_t bootmem_node_data[MAX_NUMNODES] __initdata其中MAX_NUMNODES0005 #ifdef CONFIG_NODES_SHIFT0006 #define NODES_SHIFT C...
分类:系统相关   时间:2014-05-19 11:32:43    阅读次数:298
VC下调试内存泄漏的办法
VC的控制台程序不会跟踪内存泄漏,如果需要调试控制台程序的内存情况,需要_CrtSetDbgFlag详细原理我也不太懂,我也是从网上摘过来的,直接帖代码// 内存泄漏跟踪#ifdef WIN32 #include #ifdef _DEBUG #define _CRTDBG_MAP_ALLOC ...
分类:其他好文   时间:2014-05-18 19:56:49    阅读次数:260
双向循环链表
dllist.h 1 #ifndef _DLLIST_H 2 #define _DLLIST_H 3 4 #ifdef __cplusplus 5 extern "C" { 6 #endif 7 8 struct DLLNode_T{ 9 void *pData; ...
分类:其他好文   时间:2014-05-18 19:51:42    阅读次数:335
gcc使用c++库
在c语言程序中调用c++库。需要做以下两步工作: 1、定义头文件时,要加上 #ifdef __cplusplus extern "C" { #endif 头文件内容 #ifdef __cplusplus } #endif 这个是表示在c++编译器编译时,生成的函数名使用c语言格式修饰符。 2、在用gcc进行链接时,要加上 -lstdc+...
分类:其他好文   时间:2014-05-18 06:24:28    阅读次数:378
编译过程
以下摘自源文件经过以下几步生成可执行文件:1、预处理(preprocessor):对#include、#define、#ifdef/#endif、#ifndef/#endif等进行处理2、编译(compiler):将源码编译为汇编代码3、汇编(assembler):将汇编代码汇编为目标代码4、链接(...
分类:其他好文   时间:2014-05-16 09:42:22    阅读次数:360
九度 1339
#include #include #include #include using namespace std; #ifdef ONLINE_JUDGE #define FINPUT(file) 0 #define FOUTPUT(file) 0 #else ...
分类:其他好文   时间:2014-05-15 06:27:05    阅读次数:230
九度 1214
#include #include #include using namespace std; #ifdef ONLINE_JUDGE #define FINPUT(file) 0 #define FOUTPUT(file) 0 #else ...
分类:其他好文   时间:2014-05-14 00:18:31    阅读次数:367
九度 1207
#include #include using namespace std; #ifdef ONLINE_JUDGE #define FINPUT(file) 0 #define FOUTPUT(file) 0 #else ...
分类:其他好文   时间:2014-05-13 23:42:33    阅读次数:316
自定义Log
自定义Log#ifdef DEBUG#define ZRLog(...) NSLog(__VA_ARGS__)#else#define ZRLog(...)#endif
分类:其他好文   时间:2014-05-13 11:05:03    阅读次数:218
九度 1203
#include #include using namespace std; #ifdef ONLINE_JUDGE #define FINPUT(file) 0 #define FOUTPUT(file) 0 #else ...
分类:其他好文   时间:2014-05-11 18:33:34    阅读次数:246
750条   上一页 1 ... 71 72 73 74 75 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!