can any function, for example printf, restart from beginning of the same line? So we will not have multiple lines of output
Another question, any way to retrieve the previous ouput that have been bumped out of the window in case of large amount of output? I am using Windows VC.
Thanks!
lehe
0
Light Poster
Recommended Answers
Jump to PostBy clearing the screen, on most Windows systems
system("cls");
. Not compatible with a lot of other OSes though.
So a loop with newlines might be enough to push the rest out of view.The second question; just record everything to an array of stucts(with output, input, ect.), similar …
Jump to PostThink: a console program does not know what device receives stdout/cout output! Suppose you have prog.exe. See what happens when prog.exe started:
1. >prog -- ok, printf prints in console window
2. >prog >output.txt -- printf writes in file output.txt
3. >prog >nul -- printf "prints" nowhere (nul device - …
All 5 Replies
MosaicFuneral
812
Nearly a Posting Virtuoso
ArkM
1,090
Postaholic
death_oclock
103
Posting Whiz
Murtan
317
Practically a Master Poster
ajay.krish123
-4
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.