#import <Foundation/Foundation.h>
/*去掉NSLog的时间戳*/
#ifdef DEBUG
#define NSLog(FORMAT, ...) fprintf(stderr,"%s",[[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);
#else
#define NSLog(...)
#endif
/**
* 问题来源:http://www.xianlaiwan.cn/wenda/detail/324373
*
*/
int main(int argc, const char * argv[]) {
//if(argc>0?main(-1, argv):1){//方法二:利用递归
if(printf("%s","A")<0){ //请在if圆括号内填写代码,使得最终输出结果为“AB”
NSLog(@"A");
}else{
NSLog(@"B");
}
return 0;
}
點擊查看更多內容
1人點贊
評論
評論
共同學習,寫下你的評論
評論加載中...
作者其他優質文章
正在加載中
感謝您的支持,我會繼續努力的~
掃碼打賞,你說多少就多少
贊賞金額會直接到老師賬戶
支付方式
打開微信掃一掃,即可進行掃碼打賞哦