title: system() function not working C++
body: <p>I'm currently following a tutorial created by thenewboston on youtube. I'm not following it word for word but close enough.</p>
  
  <p>My simple program:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string.h&gt; /* memset */
  #include &lt;unistd.h&gt; /* close */
  #include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;cstdlib&gt;
  
  int main(){
      using namespace std;
      cout &lt;&lt; "Those who wander too far off the path of reality. Will be plunged into total Madness." &lt;&lt; endl;
      cout &lt;&lt; "                                                                                          - BinKill-Ethical" &lt;&lt; endl;
      system("cls");
      return 0;
  
  }
  </code></pre>
  
  <p>This is my first program in C++ that I've created. I know next to nothing but I'm not able to get the system() function to work. </p>
  
  <p>Output: <img src="https://i.stack.imgur.com/Vb0Sb.png" alt="enter image description here"></p>
  
  <p>All except for <code>#include &lt;iostream&gt;</code> are suggestions from other stackoverflow posts to try and get this working. None have worked. I'm using G++ to compile, if that matters.</p>