Objective C的学习之HelloWorld

来源:互联网 发布:改键位软件 编辑:程序博客网 时间:2024/05/21 02:37

其实是好奇优才网的那个练练手:

code:

#import <Foundation/Foundation.h>  
int main (int argc, const char *argv[]) {  
    NSAutoreleasePool *pool=[[NSAutoreleasePool alloc] init];  
    NSLog(@"Hello World!");  
    [pool drain];  
    return 0;  
}