Objective-C 笔记
Chapter #2
#import <'Foundation/Foundation.h'> //导入Foundation框架 ''去掉
int main (int argc, const char * argv[]) //声明一个标准的C语言函数,程序的起始点
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; //Cocoa内存管理工具
// insert code here...
NSLog(@"Hello, World!"); //类似printf,@“.....”结构是编译器指令,表示使用引号之间的字符串来创建一个NSString对象
[pool drain]; //Cocoa内存管理工具
return 0;
}
Excellent wordpress weblog right here.. It is difficult to discover top quality creating like yours nowadays. I actually recognize men and women like you! get treatment