title: Is there an alternative to the 'system()' command in C++.?
body: <p>I have read a lot of answers saying that the <code>system()</code> command is bad. First off, why is it so bad? Second off, is there an alternative that doesn't produce such a security hole? I mostly want to know if there is a way to clear screen in C++. In python I have a clear function that checks the os name and runs either <code>system('cls')</code> or <code>system('clear')</code>. Is this a security hole as well? If so, is there a python alternative?</p>