Guys i have made the neccasary changes, actually the code which i pasted earlier was the code written on very old version of C++(Borland). thats y those things were there but now the code is standardised so not a prob now.
Anyways Thank you all for showing so much enthu for this post.
Thanks once again.