看完了,给大家出个题娱乐一下哈。
/*填空题*/
#import <Foundation/Foundation.h>
/*去掉NSLog的时间戳*/
#ifdef DEBUG
#define NSLog(FORMAT, ...) fprintf(stderr,"%s",[[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);
#else
#define NSLog(...)
#endif
/**
* 答案可参考我的“手记”
*/
int main(int argc, const char * argv[]) {
if( ){ //请在if圆括号内填写代码,使得最终输出结果为“AB”
NSLog(@"A");
}else{
NSLog(@"B");
}
return 0;
}