cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Refreshing the console
Refreshing the console
Mar 5, 2015 at 1:06pm UTC
ryanjoshiii
(56)
What is use to refresh the console? I use
system(
"cls"
)
but I think, it doesn't refresh the console. Thanks.
Mar 5, 2015 at 1:11pm UTC
TarikNeaj
(2580)
http://stackoverflow.com/questions/6486289/how-can-i-clear-console
Mar 5, 2015 at 2:18pm UTC
Subscriber360
(22)
For Windows its
system(
"cls"
);
Are you using it in Linux ?
Mar 5, 2015 at 6:12pm UTC
Computergeek01
(5613)
You can't actually "refresh" the console because it doesn't have a video buffer. On Windows you could also clear the console more appropriately using this function compliments of
Duoas
:
http://www.cplusplus.com/articles/4z18T05o/#Windows
Topic archived. No new replies allowed.