Click here to Skip to main content
15,904,155 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
This is that old saw first encountered using QBASIC and that marvelous extension library include schema. Except for the fact that I've written the app in C++ and hope to do the same "LOCATE" freeze I used in QBASIC.

There's simply a couple of lines of code to manipulate the WriteLine(), yes?

How it worked in QBASIC was that the line where the output was to be made could be identified. Instead of scrolling to the next line, when this location was omitted, and the printing done. So all prints went into the same identified location.

Is there a "WriteLine" WHERE?
Posted
Updated 20-Jan-12 10:55am
v3
Comments
Sergey Alexandrovich Kryukov 20-Jan-12 22:26pm    
Is it C++ or C++/CLI? It looks like C++/CLI, so change your tag.
--SA

Use Console::Write instead of Console::WriteLine

http://msdn.microsoft.com/en-us/library/system.console.write.aspx[^]
 
Share this answer
 
One additional line of code is necessary the blank the screen and "locate" the text as it scrolls during output.

Console::Clear();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900