字符串连接:
Visual C/C++
#define MARCO_STRCAT(X, Y) X##Y
#define MARCO_TOSTR(N) #N
const char* s1 = MARCO_TOSTR(argv);
const char* s2 = MARCO_STRCAT("A", "B");
GUN C/C++ (GCC; G++)
#define MARCO_STRCAT(X, Y) X Y
#define MARCO_TOSTR(N) #N
const char* s1 = MARCO_TOSTR(argv);
const char* s2 = MARCO_STRCAT("A", "B");
MARCO_TOSTR,把参数N转换为字符串
MARCO_STRCAT,把参数X,Y字符串连接在一起。