在调试代码时,若对语句有选择性编译时,可以使用下述语句。 这样就可以不用一行行的注释掉,或整段整段的注释掉。 #if 1 xxxxx; yyyyy; #endif #if 0 wwwww; nnnnnn; #endif