Data Structures-Environmental Setup

Data Structures Environment Setup

To implement various concepts of Data Structures, we need a compiler to perform all the functions. We can implement the concepts in the language of your choice. The commonly used programming language to implement data structures for learning is C/C++.  It is best to have a local compiler installed in your machine.

Though there are many compilers for Windows, the best user friendly compiler is Code Blocks IDE. It can be downloaded from http://www.codeblocks.org/downloads/26

 Download and run the executable file in the windows. Follow the instructions and install.


How to create a file in Code blocks

 We can create a file (without creating project) in code blocks:

  • File -> New -> Empty File
  • Copy and paste the below hello program:
#include<stdio.h>
main()
{
    printf("Hello World");
}
  • Save the above file as hello.c in the project directory.
  • Build the file (Compile and Link): Build -> Build
  • Run the file (Gives the output): Build -> Run

The project can be created, and it can contain only one main file with the multiple files. For better practicing for code, we create a file without project.