摘要: 0. 1. 宏可以像函数一样被定义,例如: #define min(x,y) (x<y?x:y) //事实上这个宏存在BUG 但是在实际使用时,只有当写上min(),必须加括号,min才会被作为宏展开,否则不做任何处理。 2. 如果宏需要参数,你可以不传,编译器会给你警告(宏参数不够),但是这会导致 阅读全文
posted @ 2018-04-12 20:02 jiu~ 阅读(218) 评论(0) 推荐(0)
摘要: 函数定义: int vprintf ( const char * format, va_list arg ); printf() and friends are for normal use. vprintf() and friends are for when you want to write 阅读全文
posted @ 2018-04-12 19:59 jiu~ 阅读(729) 评论(0) 推荐(0)