"C Language" 02-the first C program

Source: Internet
Author: User
Directory of this document
  • 1. Open Xcode and create a new Xcode project
  • 2. Select the simplest command line item
  • 3. Enter project information
  • 4. Select a folder to hold the C program code
  • 5. Run the project

Description: This C language topic is the prelude to learning iOS development. And for programmers with an object-oriented language development experience, you can quickly get started with C language. If you don't have programming experience, or are not interested in C or iOS development, please ignore

As we end up learning iOS development, we use Xcode under the Mac platform to build the C language development environment instead of using Windows systems

If you are in the Windows environment, you can download this simple C-language learning tool: C + + programming learning and experimentation system or download Microsoft Visual C + +, this is a little professional, heavyweight

Back to top 1. Open Xcode and create a new Xcode project

Back to top 2. Select the simplest command line item

Back to top 3. Enter project information

  • Organization name and company identifier can be casually written, no impact on Project C
  • Use Automatic Reference counting this option only has an impact on OC projects, no impact on Project C

Back to top 4. Select a folder to hold the C program code

Back to top 5. Run the project

, the result is: (View the output of the console)

Like the HelloWorld program in other languages, the word "Hello, world!" is output on the console.

"C Language" 02-the first C program

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.