To do data structure and implement its various concepts in these upcoming tutorials, you must have a compiler to execute all the concepts as a program. Here, all programs of the data structure will be shown using C++. So for that, you have to install a local compiler on your PC or laptop.

C++ Compiler Setup

If you want to install the C++ compiler on your PC to perform the data structure concepts, then you have many choices. The first choice you can use a text editor such as vi / vim / gedit, or EMACS for Linux Users. For Windows, the text editors will be Notepad or Notepad++. The name and versions of text editors vary based on the operating systems.

The files you create with your text editor will be the source file and will contain the program's source code. Here you will be using C++, so the source file will have the extension as ".cpp".

Another option you can install a compiler for C++. There are various C++ compilers available online, and some of them come with GUI, such as:

For Windows

  • Turbo C++
  • Borland C++
  • Dev C++
  • Intel C++
  • Visual C++

For Linux

  • Open64
  • GNU Compiler Collection
  • Intel C++ Compiler PE

For Mac

  • Apple C++
  • Sun Studio
  • Cygwin (GNU C++)
  • Digital Mars C++

The source code that will be written into the compiler and saved as the source file is in human-readable form, which will be your data structure program. That code then needs to be "compiled" to be converted into machine language so that the CPU can actually execute the program as the code is written.

Out of all, any one of these above C++ language compilers will be required for compiling your source code into the final executable program and creating the ".exe" file. Basic knowledge about a programming language is required before approaching to grab the concepts of the data structure.

The most commonly used and free available compiler is the GNU C/C++ compiler, or you can use different compilers from Intel, Oracle, or Solaris.

Steps to Install Turbo C++ Compiler

Step 1: Turbo C++ Compiler is freely available to use; you need to search on the Internet to download it.

Step 2: Unzip the compiler that you have downloaded, i.e., the "Turbo C++" file.

Step 3: Run the "setup.exe" file.

Step 4: Select the location path to place the compiler on your PC.

Steps to Install Compiler on UNIX/Linux

Step1: Check if it is already installed or not using the command below:

$ gcc -v

Step2: In case you find the GCC is not installed on your Linux system, then you need to install it by yourself using the given instructions that are available at

Found This Useful? Share This Page!