码迷,mamicode.com
首页 >  
搜索关键字:ifdef    ( 750个结果
C/C++预处理指令#define,#ifdef,#ifndef,#endif… (转)
本文转自博文C/C++预处理指令#define,#ifdef,#ifndef,#endif…。这篇博文写得特别好,特转载。 本文主要记录了C/C++预处理指令,常见的预处理指令如下:#空指令,无任何效果#include包含一个源代码文件#define定义宏#undef取消已定义的宏#if如果给...
分类:编程语言   时间:2015-06-23 11:45:41    阅读次数:262
顺序表(静态)
**seqlit.h** #pragma once #define _SEQ_LIST_ #ifdef _SEQ_LIST_ #include #include #include#define MAX_LEN 100 typedef int DataType;typedef struct SeqList { DataType a...
分类:其他好文   时间:2015-06-23 10:19:57    阅读次数:152
iOS(使用pch文件导入头文件方法)
1.选择工程下的Supporting Files文件夹, 选择pch file新建一个pch文件。 2. 这里演示下 导入AFNetworking头文件(当然前提你工程里面已经导入AFN的文件夹了) #ifdef __OBJC__ // 只被object-c文件所引用 #import #import "AFNetworking.h" ...
分类:移动开发   时间:2015-06-23 10:15:30    阅读次数:290
测试与调试
主代码#include"stdafx.h"#include"FiveChess.h"#include"ServerSocket.h"#include"FiveChessView.h"#ifdef_DEBUG#definenewDEBUG_NEW#undefTHIS_FILEstaticcharTHI...
分类:其他好文   时间:2015-06-21 21:08:32    阅读次数:130
Cygwin中使用ncurses库
首先安装Cygwin的完整包,这个包有7GB大小左右 之后使用这个小例子测试是否成功 #include #include #include //#define DEBUG #ifdef DEBUG #include #include #endif int main(void) { int x,y; std::vector msg; msg.push_back(...
分类:Windows程序   时间:2015-06-21 02:02:50    阅读次数:388
C++
1 // The following ifdef block is the standard way of creating macros which make exporting 2 // from a DLL simpler. All files within this DLL are co.....
分类:编程语言   时间:2015-06-20 23:30:22    阅读次数:306
C和C++混合编译
关于extern_C通常,在C语言的头文件中经常可以看到类似下面这种形式的代码:[plain]view plaincopyprint?#ifdef__cplusplusextern"C"{#endif/****somedeclarationorso*****/#ifdef__cplusplus}#e...
分类:其他好文   时间:2015-06-18 09:28:56    阅读次数:129
gcc 的编译过程
通常我们都是使用下面的命令来直接生成可执行文件gcc demo.c -o demo对于我们来说十分简单,但是对编译器来说却完成了一系列复杂的工作,概括起来有如下几步:1. 预处理gcc -E demo.c -o demo.i这一阶段主要处理源文件中的#ifdef、#include和#define等预...
分类:其他好文   时间:2015-06-17 21:25:23    阅读次数:111
mini-httpd源码分析-port.h
针对不同系统的宏定义,对于Linux而言/* port.h - portability defines */#elif defined(linux)# define OS_Linux# define ARCH "Linux"#ifdef OS_Linux# define HAVE_DAEMON# d...
分类:Web程序   时间:2015-06-17 14:45:49    阅读次数:143
windows下 qt5&vs2010 在qtCreator下中文乱码
环境:windows2012下 qt5.3.1 & vs2010 在qtCreator3.1.2下中文乱码解决方法:在相关文件中加入代码#ifdef Q_OS_WIN32#if _MSC_VER >= 1600#pragma execution_character_set("utf-8")#endi...
分类:Windows程序   时间:2015-06-15 11:06:41    阅读次数:144
750条   上一页 1 ... 42 43 44 45 46 ... 75 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!