Use Xcode to write a C + + Hello world!

Source: Internet
Author: User

Operation Steps:

  1. Open Xcode and click Create a new Xcode project in the Welcome screen.

  2. In the left-hand column, select the Mac OS x category of application, and on the right, select command line Tool (shell) and click Next.

  3. In the product name to fill in the project names, such as Hellomac, the rest of the default (the type can also choose c or C + +), click Next and select the path and click Create to complete the project creation.

  4. Click on the main.m on the left side of the Xcode main screen to replace the code with the Code of C/C + +, click the Run button in the upper left corner to compile and run, and the console will display the results below the interface.

My website: http://wpdome.sinaapp.com/?p=208

Use Xcode to write a C + + Hello world!

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.