码迷,mamicode.com
首页 >  
搜索关键字:ifdef    ( 750个结果
Android驱动开发之earlysuspend睡眠模式--实现代码【转】
本文转载自:http://blog.csdn.net/MyArrow/article/details/8136018 (1)添加头文件: #include <linux/earlysuspend.h> (2)在特定驱动结构体中添加early_suspend结构: #ifdef CONFIG_HAS_ ...
分类:移动开发   时间:2018-01-05 20:54:45    阅读次数:211
CEF4Delphi 常用设置
function CefLibPath: string; begin {$IFDEF CPUX64} Result := 'CEF_3.3239.1709\Core64'; {$ELSE} Result := 'CEF_3.3239.1709\Core'; {$ENDIF} end; functio... ...
分类:Windows程序   时间:2017-12-25 11:42:05    阅读次数:1505
Makefile 中:= ?= += =的区别
在Makefile中我们经常看到 = := ?= +=这几个赋值运算符,那么他们有什么区别呢?我们来做个简单的实验 新建一个Makefile,内容为:ifdef DEFINE_VRE VRE = “Hello World!”elseendif ifeq ($(OPT),define) VRE ?= ...
分类:其他好文   时间:2017-12-23 14:12:25    阅读次数:112
线程安全的队列
线程安全的队列 unit MyQueue; interface {$DEFINE MULTI_THREAD_QUEUE} //线程安全版本,如果不需要线程安全,请注释掉此行代码 {$IFDEF MULTI_THREAD_QUEUE}uses SyncObjs; // Windows;{$ENDIF} ...
分类:编程语言   时间:2017-12-23 12:12:08    阅读次数:260
2048
#if _MSC_VER>=1900 #include "stdio.h" _ACRTIMP_ALT FILE* __cdecl __acrt_iob_func(unsigned); #ifdef __cplusplus extern "C" #endif FILE* __cdecl __iob_f... ...
分类:其他好文   时间:2017-12-10 14:46:52    阅读次数:1565
头文件和宏
头文件: Person.h Son.h 源文件: Person.cpp Son.cpp 主函数: 宏: def.h main.cpp 结果如图: #ifndef和#ifdef ...
分类:其他好文   时间:2017-12-01 23:38:35    阅读次数:290
#ifdef __cplusplus
引自:https://www.cnblogs.com/stonecrazyking/archive/2006/09/23/512552.html 看到一篇总结很到位的文章,记录一下。 时常在cpp的代码之中看到这样的代码: #ifdef __cplusplus extern "C" { #endif ...
分类:其他好文   时间:2017-11-28 11:43:56    阅读次数:125
USACO Section 2.1 Sorting a Three-Valued Sequence 解题报告
题目 题目描述 给N个整数,每个整数只能是1,2,或3。现在需要对这个整数序列进行从小到大排序,问最少需要进行几次交换。`N(1 include using namespace std; int N; int num[1010]; int main() { ifdef MARK freopen("s ...
分类:其他好文   时间:2017-11-26 16:46:20    阅读次数:132
【Codeforces Round #447 (Div. 2) A】QAQ
【链接】 "我是链接,点我呀:)" 【题意】 在这里输入题意 【题解】 C语言程序练习题 【代码】 cpp include using namespace std; string s; int main(){ ifdef LOCAL_DEFINE freopen("F:\\c++source\\ru ...
分类:其他好文   时间:2017-11-20 17:46:45    阅读次数:92
条件编译
条件编译 #define A 0 //把A定义为0#if(条件满足)执行代码1#else执行代码2#endif #define SEGGER #ifdef SEGGER ...code...#endif#ifndef SEGGER ...code...#endif注意:一个#ifdef配一个#end ...
分类:其他好文   时间:2017-11-10 10:55:00    阅读次数:117
750条   上一页 1 ... 15 16 17 18 19 ... 75 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!