For doing data structure and implementing its various concepts in these upcoming chapters, you need to have a compiler to perform all the concepts in the form of programs. Here, all the programs of the data structure will be shown using C++. So for that, you need to have a local compiler installed in your PCs or laptop.
Local Compiler Setup
If you want to install the C++ compiler in your PC to perform the data structure concepts, then you have many choices. The first choice, you can use the text editor such as vi / vim / gedit, 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".
Second Choice, you can install a compiler of C++. There are various C++ compilers available in the market such as:
- Turbo C++
- Borland C++
- Dev C++
- Intel C++
- Visual C++
- GNU Compiler Collection
- Intel C++ Compiler PE
- Apple C++
- Sun Studio
- Cygwin (GNU C++)
- Digital Mars C++
The source code that will be written in the compiler and saved as a source file is in the human-readable form which will be your data structure program. That code then needs to be "compiled," for turning into machine language so that the CPU can truly execute the program as per 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 create the ".exe" file. The basic knowledge about a programming language is required before approaching to grab the concepts of the data structure.
Most frequently used and the free available compiler is GNU C/C++ compiler, or you can use different compilers either from Intel, Oracle or Solaris if you have own choice and systems.
Steps to install Turbo C++ Compiler
Step 1: Download the Turbo C++ compiler from the link given below: https://www. turboc.codeplex.com/downloads/get/1489512
Step 2: If you have any already existing "Turbo C++" version install in your computer, then, first of all, uninstall that existing compiler.
Step 3: Extract the compiler you have downloaded now, i.e., "Turbo C++ 3.2.zip" file.
Step 4: Run the "setup.exe" file.
Step 5: Select the Location where to keep the compiler
Steps to Install Compiler on UNIX/Linux
Step1: Check for the GCC, that whether it is already installed or not by using the command given below:
$ gcc -v
Step2: In case, if 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 http://www.gcc.gnu.org/install/