码迷,mamicode.com
首页 >  
搜索关键字:endif    ( 913个结果
Linux设备驱动中的ioctl
memdev.h #ifndef _MEMDEV_H #define _MEMDEV_H #define MEM_MAGIC 'm' #define MEM_RESTART _IO(MEM_MAGIC, 0)//使用内核提供的宏产生命令, #define MEM_SET _IOW(MEM_MAGIC, 1, int)//改命令向内核传递一个整形的参数 #endif 驱动程序memd...
分类:系统相关   时间:2014-08-24 14:13:42    阅读次数:332
FSharp 调用 Oracle.ManagedDataAccess.dll
Oracle.ManagedDataAccess.dll #if INTERACTIVE #r@"C:\oracle\odp.net\managed\common\Oracle.ManagedDataAccess.dll" #endif   openOracle.ManagedDataAccess.Client openOracle.ManagedDataAccess.Type...
分类:数据库   时间:2014-08-22 00:25:35    阅读次数:243
#ifdef _DEBUG用法小结
1#ifdef_DEBUGvirtualvoidAssertValid()const;//assert(断言)valid(有效的,正确的)virtualvoidDump(CDumpContext&dc)const;//存储上下文#endif这两个函数是调试用的,第一个函数检查可用性,即是否有效第二个...
分类:其他好文   时间:2014-08-20 19:28:24    阅读次数:254
对于不同的平台,进行跨平台编程
使用if defined endif根据平台的不同 来加载使用不同的方法#if defined(WIN32) std::cout<<"win32"<<std::endl;#elif defined(POSIX) std::cout<<"posix"<<std::endl;#endif
分类:其他好文   时间:2014-08-18 15:53:52    阅读次数:150
宏的几个特殊的使用
功能一:简单的替换、预处理等功能二:#ifndef/#define/#endif 防止头文件重复引用功能三:连接#define CONNECTION(_x,_y) _x##_yINT a = CONNECTION(10,24); // a = 1024STRING s = CONN...
分类:其他好文   时间:2014-08-18 12:57:42    阅读次数:170
vc++ release模式下不存_DEBUG宏定义的解决方案
#ifndef#define _DEBUG 0#endif #ifdef _DEBUG#define trace(x) printf(x);#else#define trace(x) ;#endif
分类:编程语言   时间:2014-08-16 17:04:20    阅读次数:193
DES解码
DES加解密算法是一个挺老的算法了,现在给出它的C语言版。des.h 1 #ifdef __cplusplus 2 extern "C" { 3 #endif 4 5 void setKey(const char key[8]); 6 char* des(const char datas[]);.....
分类:其他好文   时间:2014-08-15 19:23:39    阅读次数:324
base64解码
网络传输经常用base64编码的数据,因此我们需要将其解码成正常字符集合。 base64.h 1 #ifdef __cplusplus 2 extern "C" { 3 #endif 4 5 char * base64_encode( const unsigned char * binda...
分类:其他好文   时间:2014-08-15 19:14:09    阅读次数:167
用libevent实现的发送图片
#include #include #include #include #include #include #include #ifndef _WIN32 #include #include #include #include else #include #include #include #endif #include #incl...
分类:其他好文   时间:2014-08-15 17:53:19    阅读次数:565
避免同一个文件被include多次的方法
C/C++中有两种方式避免同一个文件被include多次,一种是#ifndef方式,一种是#pragma once方式。     方式一:     #ifndef __SOMEFILE_H__     #define __SOMEFILE_H__     ... ... // 声明、定义语句     #endif     方式二:     #pragma once...
分类:其他好文   时间:2014-08-12 13:42:44    阅读次数:162
913条   上一页 1 ... 82 83 84 85 86 ... 92 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!