码迷,mamicode.com
首页 >  
搜索关键字:not define    ( 25272个结果
C语言宏#和##
C语言宏#和##一、基本用途#用于将宏定义中的参数转换为字符串。例:存在宏#define TO_STRING(x) #x则TO_STRING(hello)展开为"hello"##用于拼接Token。例:存在宏#define DECLARE_HANDLER(x) x##_handler则DECLARE...
分类:编程语言   时间:2014-05-27 00:19:05    阅读次数:357
(转)日志类
#ifndef CLASSES_LOGGING_H__#define CLASSES_LOGGING_H__#include #include #include #include #define DISALLOW_EVIL_CONSTRUCTORS(TypeName) \ TypeNam...
分类:其他好文   时间:2014-05-26 21:07:12    阅读次数:382
CC_UNUSED_PARAM 宏含义的解释
#define CC_UNUSED_PARAM(unusedparam) (void)unusedparam这个宏完全没有执行任何命令,这样写的原因主要是历史遗留原因,ojb-c不存在纯虚函数并且传入参数不使用编译器会发出警告,这样用一个宏既可以防止警告也有一定的解释作用。
分类:其他好文   时间:2014-05-26 16:18:20    阅读次数:775
【三分钟教程】轻松使用XMPP实现iOS单聊教程(附源码)
编号需要修改的代码1//// Prefix header//// The contents of this file are implicitly included at the beginning of every source file.//#import//服务器IP#define kXMPP...
分类:移动开发   时间:2014-05-26 14:51:52    阅读次数:782
HAOI2006(BZOJ1050) 旅行comf
Description给你一个无向图,N(N#include#includeconst int N = 510;const int M = 5010;const int Maxint = 2147483647;using namespace std;#define For(i,n) for(int ...
分类:其他好文   时间:2014-05-26 13:09:03    阅读次数:206
pang
#include #include #include #include #include "math.h"#include #define MAXN 300using namespace std;int input[MAXN*2];stack m_stack;int main(){ int N...
分类:其他好文   时间:2014-05-26 12:39:49    阅读次数:188
FindSmallestPolygon
// smallest_enclosing_polygon.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#define PI 3.1415926535#include using namespace std;bool IsZero(double value).....
分类:其他好文   时间:2014-05-26 12:36:52    阅读次数:297
UDP发送和接收
MainRecv.cpp#include #include #include #pragma comment(lib,"ws2_32.lib")#define RECV_IP "127.0.0.1"#define RECV_PORT 8899#define LEN_RECV_BUF 2048int ...
分类:其他好文   时间:2014-05-26 12:07:41    阅读次数:276
QT 自定义消息
#define TEST_EVENT QEvent::User + 100class CVxActuatorMain : public QMainWindow{ protected: void customEvent(QEvent *event);}CVxActuatorMain::CVxActua...
分类:其他好文   时间:2014-05-26 11:49:23    阅读次数:256
QLocalServer与QLocalSocket进程通讯
在Qt中,提供了多种IPC方法,作者所用的是QLocalServer和QLocalSocket。看起来好像和Socket搭上点边,实则底层是windows的name pipe。这应该是支持双工通信的。一 QLocalServer#ifndef VXMAINWINDOW_H#define VXMAIN...
分类:其他好文   时间:2014-05-26 11:22:42    阅读次数:447
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!