Mac Os,xcode

Source: Internet
Author: User

A lot of Mac students in C language class has been under Windows with VS writing C programs, in fact, with Apple's own Xcode can be written in C + + command-line program, which is enough to meet the university curriculum learning and interview. So I'm going to show you how to write a C program in Xcode 7.3, as well as the main steps for debugging:

?

?

Operation Steps:

1. Open Xcode software, here I use the 7.3 version. The C++11 feature is supported as long as the version of Xcode is more than 7. So we don't have to worry about no STL, this way.

On the Welcome screen, click Create a new project, which is the same as the project we've been using:

2. Select Other application in the dialog box that pops up after, command? line tool Click Next 3, fill in the project name in product? name, the rest of the default is OK this can choose C language or C + +

4 Click the main function, replace the code you need directly, and click Run to compile and run the



?

Mac Os,xcode

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.