title: Changing the "Press any key to Continue..." in C++ using Visual Basics
body: <p>For every program we've wrote so far in class it ends with the default "Press any key to continue..." How do I change this? I've tried using </p>
  
  <p>cout&lt;&lt; "Press any key to end the program";
  system("pause>"nul)</p>
  
  <p>But it still displays "press any key to continue" one I enter a key. Any ideas?</p>
  
  <p>Here's what I have thus far (feel free to point out how I can improve in other areas as well!)
          `</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  #include &lt;string&gt;
  using namespace std;
  int main()
  {
      //Declaring my varibles
      double persons = 0;
      double tier1 = 125;
      double tier2 = 100;
      double tier3 = 75;
      double cost = 0;
      string hyphens = "";
      system("cls");
      cout &lt;&lt; "-------------------------------------------------- " &lt;&lt; endl;
      cout &lt;&lt; "Computer Programming Seminar" &lt;&lt; endl;
      cout &lt;&lt; "-------------------------------------------------- " &lt;&lt; endl&lt;&lt;endl;
      cout &lt;&lt; "Please enter the number of registrants: ";
      cin &gt;&gt; persons;
      cout &lt;&lt; hyphens &lt;&lt; endl;
      if (0 &lt; persons &amp;&amp; persons &lt; 6)
          cost = persons * tier1;
  
      else if (5 &lt; persons &amp;&amp; persons &lt; 21)
          cost = persons *tier2;
  
      else if (persons &gt;= 21)
          cost = persons*tier3;
      else
      {
          cost = 0;
          cout &lt;&lt; "Invalid Entry" &lt;&lt;endl &lt;&lt; endl;
      }
  
      cout &lt;&lt; "Total Amount Owed for the Seminar: $" &lt;&lt; cost &lt;&lt; endl;
      cout &lt;&lt; "-------------------------------------------------- " &lt;&lt; endl;
      cout &lt;&lt; endl &lt;&lt; endl &lt;&lt; "Press any key to end the Seminar Program";
      system("pause&gt;nul");
      return 0;
  </code></pre>