write to same line on sceen
| mrbubblesort | |||
| So I wrote this cheesy program back in college and now I can't remember how to do it at all X-( When you do cout it prints in order, so:
displays "everyonehello", right? How do I reset the cursor to the beginning, so to speak, so that instead it displays "hellobody" on that same line? (The first 5 characters on the screen get overwriten.) Thanks! | |||
| jsmith | |||
std::cout << '\xd'will output a carriage return (but not a line feed). | |||
| mrbubblesort | |||
| That works greatăthanks! | |||
Registered users can reply in this forum.
