摘要:
#在英语里面叫做 pound在C语言的宏定义中,一个#表示字符串化;两个#代表concatenate举例如下:#include<iostream>voidquit_command(){printf("Iamquitcommand\n");}voidhelp_command(){printf("Iamhelpcommand\n");}structcommand{char*name;void(*function)(void);};#defineCOMMAND(NAME){#NAME,NAME##_command}#definePRINT(NAME 阅读全文