Dev-C++ is a reasonably good, simple, free C++ development environment for C++. It provides a GUI interface to gcc (GNU Compiler Collection). I use it rather than the Microsoft's Visual Studio or Borland's C++ Builder because of its simplicity. For small programs it's a good choice. For larger and more complex programs, the commercial products offer more.
www.bloodshed.net has links for
downloading. By default it installs itself in C:\Dev-Cpp.
You should uninstall the previous version before installing the new version.
If they aren't already set, you consider setting these options [applies to Dev-C++ 4.9.8.0 - 4.9.1.0].
Highlight matching braces/parentheses option.
When this is turned on, selecting a brace will show the matching brace,
saving a lot of time when trying understand exactly what's wrong
with your braces.
In the editor options Display tab, select the
Line Numbers option so that numbers will show
on your source code.
C:\Dev-Cpp\include\c++ C:\Dev-Cpp\include\c++\mingw32 C:\Dev-Cpp\include\c++\backward C:\Dev-Cpp\include\ C:\Dev-Cpp\include\c++\3.3.1If one is missing, the button to the right of the textfield can be used to browse for new directories.
A project (contained in a .dev file) is how Dev-C++ (and other IDEs) keep track of multiple source files. If you have only one source file, there is no need to create a project.
File > New... > Project menu item
and select Console as the type of project from the Basic tab
and C++ as the type of source code.
Don't use a project name that conflicts with a source file name.
File > New... > Source File menu item to create new
source files in the project (.cpp, .h, etc).This isn't really a bug; it's probably what should happen normally, but it would be nice to have an option to keep it open as some IDEs do. Here are some ways of handing this.
system("PAUSE").
Put the following statement before the return 0 in main.
system("PAUSE");
This will cause the window to remain open until you hit any key.