I modified it by visual studio 2005 and it works with it correctly but i has errors by my old compiler(borland C++ 5.02).
errors in the last code was caused by using clrscr(),gotoxy() & ... ,that functions was for just borland and was not standard. you can download source and exe file from link bellow///