Wednesday, November 26, 2014

How to Run Depth First Search in Linux

Dont forget to include these header files while using C in Linux:
//DFS Search:

#include<stdio.h>
#include<curses.h>
#include<stdlib.h>
#include<math.h>
#include <time.h>




To run the code in Linux Command Prompt: 
gcc -o dfs DFS.C -lncurses
./dfs




No comments:

Post a Comment