摘要:
#include <stdio.h>#define PR(format,value) printf(#value"= %"#format"\t",(value))#define NL putchar('\n')#define PRINT1(f,x1) PR(f,x1), NL#define PRINT2(f,x1,x2) PR(f,x1), PRINT1(f,x2)#define PRINT3(f,x1,x2,x3) PR(f,x1), PRINT2(f,x2,x3)#define PRINT4(f,x1,x2,x3,x4) 阅读全文
posted @ 2012-08-09 13:01
abacuspix
阅读(312)
评论(0)
推荐(0)
摘要:
#include <stdio.h>#define PRINT(format,x) printf("x = %"#format"\n",(x))//how to add the # ????int integer = 5;char character = '5';char *string = "5";int main(void){ PRINT(d,string); PRINT(d,character); PRINT(d,integer); PRINT(d,string); PRINT(c,character 阅读全文
posted @ 2012-08-09 12:54
abacuspix
阅读(213)
评论(0)
推荐(0)