摘要:
#include <stdio.h>#define FUDGE(k) k+3.14159#define PR(a) printf("a= %d\t",(int)(a))#define PRINT(a) PR(a); putchar('\n')#define PRINT2(a,b) PR(a); PRINT(b)#define PRINT3(a,b,c) PR(a); PRINT2(b,c)#define MAX(a,b) (a<b?b:a)int main(void){ { int x=2; PRINT(x*FUDGE(2)); } { . 阅读全文
posted @ 2012-08-10 13:49
abacuspix
阅读(220)
评论(0)
推荐(0)
摘要:
#include <stdio.h>#define FUDGE(k) k+3.14159#define PR(a) printf("a= %d\t",(int)(a))#define PRINT(a) PR(a); putchar('\n')#define PRINT2(a,b) PR(a); PRINT(b)#define PRINT3(a,b,c) PR(a); PRINT2(b,c)#define MAX(a,b) (a<b?b:a)int main(void){ { int x=2; PRINT(x*FUDGE(2)); } { . 阅读全文
posted @ 2012-08-10 13:46
abacuspix
阅读(231)
评论(0)
推荐(0)
摘要:
#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-10 13:43
abacuspix
阅读(421)
评论(0)
推荐(0)
摘要:
#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-10 13:35
abacuspix
阅读(235)
评论(0)
推荐(0)
浙公网安备 33010602011771号