did you try to compile ? It should works , but try to avoid magic numbers .
@Ericool
i did but turbo doesn't support many of the functions used in this. :(
@Ericool
i need to run this program in turbo c++ which doesn't support windows.h and many new features.
@Ericool
really appreciate you help.
but that part was understood by me . The main problem was the text getting highlighted when the arrow key is pressed .
i couldn't find a solution to that.