right, dats y i said in my previous message that i tried getch( ) in main( ) , sorry for not mentioning it in the code.

I wish if u cud rewrite the code for me so that i cud figure out the problem whether it is in the code or with the compiler.