The second day of C language and the second day of io Development
The development environment is Xcode iN OS X.
- The two shortcut keys of Xcode and the correct way to open the Xcode Project
Differences between real-time code detection and manual compilation links (command + B) Real-time code detection: Not code compilation, it is an intelligent function of xcode, sometimes inaccurate manual compilation links: at the underlying layer, the c language program cc-c and cc can certainly detect syntax errors.
- Add multiple targets for the Project
- How to access data in memory
- Assign values to variables
- Use the printf function to output the variable value
- Use the printf function to output the values of multiple variables at a time.
- Notes for using variables
- Use the following placeholder instances:
1 # include <stdio. h> 2 3 int main () 4 {5 int num = 2; // integer 6 float f1 = 1.2f; // single precision Floating Point 7 double d1 = 2.4; // Double Precision Floating Point 8 char character = 'a'; // character 9 10 printf ("num = % d, f1 = % f, d1 = % lf, percent = % c \ n ", num, f1, d1, percent); 11 12 return 0; 13}