To start learning C++ programming, you only have to install C++ compiler in your System, and nowadays C and C++ both compilers come as a single integrated package, which serves the purpose of C and C++ both program development.
You can also try our Online C/C++ Compiler to write and compile your C++ code online.
What is Compiler in C++?
A compiler is a computer program that transforms human readable (programming language) source code into another computer language (binary) code.
In simple terms Compiler takes the code that you write and turned in to the binary code that computer can understand.
This tutorial is written for Windows, Unix/Linux and MAC users. All code has been tested and it works correctly on all three operating systems.
List of Available C++ Compilers for Different OS
- Borland C++
- Microsoft Visual C++
- Turbo C++
- g++ is a C++ compiler that comes with most *nix distributions.
For Mac OS:
- Apple XCode
- C++ Code::Block
C++ Compiler Installation on Windows
To use C++ compiler in Windows, you can install any one software mentioned below.
- You can download a 90-day trial version of Visual Studio
- You can download Dev-C++ IDE to develop C and C++ application.
- You can install MinGW
C++ Compiler Installation on UNIX/Linux
If you are using UNIX / Linux, then most probably C++ compiler called GCC will already in your system. To check if you have it installed, you can type cc or gcc at command prompt.
$ gcc -v
If for some reason it is not Installed on your system, you can download it from gcc.gnu.org/install.
C++ Compiler Installation on MAC
You can install Xcode development environment from Apple’s website, to use GNU C/C++ compiler.
You can download Xcode from developer.apple.com/technologies/tools.