title: Suppress console when calling "system" in C++
body: <p>I'm using the <code>system</code> command in C++ to call some external program, and whenever I use it, a console window opens and closes after the command finishes.  </p>
  
  <p>How can I avoid the opening of a console window? I would be happy if the solution could be platform-independent. I would also like for my program to wait until the command is finished.</p>