#import <Foundation/Foundation.h>
int main(int argc, const char * argv[])
{
@autoreleasepool {
// insert code here...
//NSLog(@"Hello, World!");
//NSLog(@"In Objective-C, lowercase letters are significant.\nmain is where program execution begins.\nOpen and closed braces enclose program statements in a routine.\nAll program statements must be terminated by a semicolon.");
int x;
int y;
x = 87;
y = 15;
x = x-y;
NSLog(@"%i", x);
}
return 0;
}
有几点问题
一,长段文本输出时,可以分行书写代码吗?
二,赋值变量不用这样用吗? int x = 87;