作者:LAMP小白 点击:2663 发布日期:2014-04-15 23:42:49 返回列表
// // main.m // say_hellow // // Created by 刘立博 on 14-4-15. // Copyright (c) 2014年 刘立博. All rights reserved. // #import <Foundation/Foundation.h> BOOL test_one (int thing1, int thing2) { if( thing1 == thing2){ return (YES); } else { return (NO); } } NSString *testtwo ( BOOL yesNo) { if(yesNo == NO){ return (@"NO"); } else { return (@"YES"); } } int main(int argc, const char * argv[]) { // insert code here... //NSLog(@"Hello, World!"); BOOL result; result = test_one(4,4); NSLog(@"are %d = %d ? %@",4,4, testtwo(result)); result = test_one(14,4); NSLog(@"are %d = %d ? %@",14,4, testtwo(result)); return 0; }
上一篇:redis有序集合 下一篇:快递查询API