Install the C/C ++ integrated development environment on Ubuntu

Source: Internet
Author: User

First, ensure that the system has installed gcc/g ++

1> anjuta

Open the terminal:
Command: sudo apt-Get install anjuta

(The installation source must be added if the installation fails.

Add Source: click "system", "system management", and "software source" on the main menu. after entering the password, click "third-party software" in the displayed dialog box ",

"Deb http://anjuta.org.sixxs.org/apt ./"

Paste the following line, and then press "add source", "" Close ", and" re-load ".)

Select recommended installation as prompted

After installation, "Application --> programming --> anjuta ide" can be used.

Usage:

Write a hello World C ++ Program
1. Open anjuta: click "application", "programming", and "anjuta ide" on the main menu ".
2. Create a project: click "file", "new", and "4. Project" in anjuta ". When the "Application Wizard" appears, click "Forward". Select "generic c0000000000000000(anjuta-1.png) in" C ++ "for the project type, and click" Forward "and" forward "; in project options, select "no" and click "Forward" to apply.

3. View Source Code: click the "project" button on the left to switch to the "project" tab. Click "foobar-CPP" in the project name, double-click "Main. cc" to open it, and select "scintilla Editor" in the editor ".

4. Compile and run: You can see that the main () function has been written in advance. We press SHIFT + F11 to compile and press F3 to run it!

2> eclipse

Eclipse is not only the most widely used Java integrated development environment, but also a good C ++ Development Environment

Go to the eclipse official website http://www.eclipse.org, download eclipse for C ++ (Eclipse IDE for C/C ++ developers (79 MB), after decompression package, can be used directly. Methods are no longer repeated.

You can also try code: Block, netbean, etc ......

 

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.