If you don't mind not having anything fancy like, say, being able to go back up a line, then it can be done with streams. Otherwise, you'll have to use one of the curses libraries or system calls to manipulate the console.
And I think such a large array has a good chance of overflowing the stack.
Haha thinks helios, I just put the random number in there for the sack of completion. But what is curses libraries? And yes, I would like to recall it back say if I misspelled a word