Before the university has learned C + +, forget almost, the former saw some of the "[Chinese version of]c language programming: A comprehensive C language introductory course (3rd edition)", think you can directly start to see "Objective-c Basic Tutorial (2nd edition)" PDF version.
Well, #import就是 include, #import <Foundation/foundation.h> contains all of the default header files, which is convenient and unique and does not repeat.
obj-c bool is different from C, is a eight-bit signed character type, in fact, only see the last, is 0 no, 1 is yes (different from true&false).
This is the beginning of the book:
int main (int argc,const char *argv[])
This good think the default is to write, is the main function with the parameters, let's remember first.
Arg is the meaning of the argument, *argv[] is the first address of the string pointer, there are several strings argc is just a few. Argv[0] is the first and so on (like an array?) )。
"Obj-c" Learning Essays