The second day of C language and the second day of io Development

Source: Internet
Author: User

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.
  • Tips for using Xcode

 

  • Add multiple targets for the Project

 

  • How to access data in memory

 

  • Variable Declaration

 

  • 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}

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.