Thats because probably you dont have the BGI graphics at the correct location. If you see the source code it has
Code: C
initgraph(&driver,&mode,"c:\\tc\\bgi");     //initialize graphics mode
 
and that I edited to point to my location of bgi graphics which was
Code: C
initgraph(&driver,&mode,"c:\\turboc3\\bgi");    //initialize graphics mode
 
and thats probably why it does not run on your system

Thanks
Shabbir