I want to ask something else. If I have a program which displays only lines (which are inputs from the keyboard), I mean for example smthng like this:
1>blah blah
2>blah blah blah
3>blah
4>...
5>:q
When the user types ":q" the program exits.
how can I delete all the previous lines from the line 4? I mean, I want to leave only line 4 and I must use the "d#n" command, with n = the number of lines before the one I want to leave. could you help me?
well, the n= thing is easy: run a counter. the "deleting" is also easy: (To everyone who sees this please don't hate me, this is a simple Command Prompt program and NOT anything worth putting massive effort in (no offense)) system ("cls"); this will clear the screen so do it when the user enters whatever clears the sreen