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
#define CC_UNUSED_PARAM(unusedparam)
(void)unusedparam这个宏完全没有执行任何命令,这样写的原因主要是历史遗留原因,ojb-c不存在纯虚函数并且传入参数不使用编译器会发出警告,这样用一个宏既可以防止警告也有一定的解释作用。
分类:
其他好文 时间:
2014-05-26 16:18:20
阅读次数:
775
编号需要修改的代码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
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
#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
// 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
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
#define TEST_EVENT QEvent::User + 100class
CVxActuatorMain : public QMainWindow{ protected: void customEvent(QEvent
*event);}CVxActuatorMain::CVxActua...
分类:
其他好文 时间:
2014-05-26 11:49:23
阅读次数:
256
在Qt中,提供了多种IPC方法,作者所用的是QLocalServer和QLocalSocket。看起来好像和Socket搭上点边,实则底层是windows的name
pipe。这应该是支持双工通信的。一 QLocalServer#ifndef VXMAINWINDOW_H#define VXMAIN...
分类:
其他好文 时间:
2014-05-26 11:22:42
阅读次数:
447