Hunter George Hunter George -4 years ago 59
C++ Question

What's a simple alternative to system("CLS")?

After reading why

system()
is evil, I decided to not use features like
system("CLS")
and
system("PAUSE")
. Are there any easy alternatives that aren't OS dependent?

Answer Source

There is no standard C++11 alternative to the Windows specific system("CLS") since C++11 does not know about screens. However, consider using GNU readline or ncurses (both work on Linux, and have Windows variants gnuwin32). See also POCO or Qt

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download