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 ......