How to Write c ++ programs on Mac platforms

Source: Internet
Author: User

1. Install xcode (version 3.2) software:

1. xcode software can be downloaded from the apple website

2. Select the Mac OS X install DVD in the original accessories package, and install xcode. mpkg

2. Start c ++ in xcode:

Startup path:

Macintosh HD → developer → applications → xcode, start xcode:

The following figure is displayed:

3. Select application on the left, and then command line tool on the right. type can be selected based on the actual situation and click choose to create a project:

Press choose... And enter the file name and storage location.Program:

 

 

4. Execute the program

During the initial execution of the Program (build and run), it is generally found that there will be no familiar Black Boxes. In fact, this is related to the default setting of xcode.

How do I change the default value?

Click xcode> preferences… In the toolbar...

 

For example, in the drop-down list box, the default value is "Do nohing", so the console is not displayed. Change it to showconsole & debugger.

 

 

5. If you compile the program again, the console will not flash.

 

 

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.