Shishir Sharma wrote:
> how we can clear std outstreams

C++ (if you use std::cout):
std::cout << flush;
std::cout.flush();
std::cout << endl;

C (for printf() and kin):
fflush(stdout);

Both of the above simply flush the output buffer.
If you mean "How do I clear the console once stuff has been written to 
it?" then that is platform-specific...you'll need to tell us what OS and 
compiler you are using.

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* VerifyMyPC 2.5
Change tracking and management tool.
Reduce tech. support times from 2 hours to 5 minutes.

http://www.CubicleSoft.com/VerifyMyPC/

Reply via email to