If i am using arrow keys and edit the input, then the output gives error. Any idea, if wrong input is typed, we must use only del button??..
what? please explain in detail your problem
That is not, actually, a C++ problem -- it is a problem with your terminal.
What OS are you using?