define c/c++

来源:互联网 发布:软件 项目经理 面试 编辑:程序博客网 时间:2024/05/21 09:02
#define hellosun "hello"#define B(x) #@x//char#define D(x) x##sun//union#define E(x) #x//string#define $ON 22//$ can be usedint _tmain(int argc, char* argv[]){//fun(1);int $5 = 5;printf("%d, %d, %c, %s\n", $ON, $5, B(h), E(hello));printf("%s", D(hello));return 0;}