使用编译器来使用宏变量
刚学了一招,可以使用编译器的-D选项来定义程序中使用的宏。
【】$ g++ -DMY_MAC=5 ./dtest.c -o dtest【】$ ./dtest Hello -D. 5【】$