[C] #define 전처리문 예제
#include #define ABS(a) (((a) > 0) ?(a) : (-a)) #define MAX(a,b) (((a) > (b)) ? (a) : (b)) #define MIN(a,b) (((a) >(b)) ? (a) : (b)) #define I2M(i) ((i)*25.4) #define M2I(m) ((m)/25.4) #define DUBAE(i) ((i)+(i)) #define READANDNEXT(p) (*p++) #define PRINTMSG(x,y,str)\ {\ gotoxy(x,y); \ puts(str);\ } void main() { int k,j; PRINTMSG(20,10,"바보야"); printf("%d\n", DUBAE(20)); printf("%d\n", ABS((-7))..
더보기