1. Create a new C language program
* Open Xcode
* New File
* Choose c language Program
* Enter program name
* Select the storage path
* After creation is complete
2. You can also use the terminal to create
To create a. c File through Directives
3. Writing code
4. Compiling the Code
* Translate C language code into 0 and 1
* Instruction: Cc-c file name. C
* Note space: cc space-C space file name. C
* The successful compilation will generate a. o target file
5. Connect
* In fact, it is to bring us. O's target file is merged with the system's own library to generate an executable file
* Instruction: CC file name. O
6. Running
./a.out
7. Other Directives
Modify executable file name: CC xxx.o-o filename
Compile together, Link: cc xxx.c
8. The entire program operation process
9. Little Common Sense
On the keyboard when using the PC keyboardwin keyis equal to the Apple keyboard Command Key
Command + space to switch between Chinese and English input methods
The name of the program can be added to a number such as 01, so that when the command can be easier to tap, such as: CC 01 can press the TAB key to display the file name
"Learning Notes" "C language" the first C program