title: C++, cin.get(); not working
body: <p>I don't understand when I run this in Visual Studio 2013 why the run window goes away. So to compensate for that I put in a cin.get(); but it's still not working. Can someone explain me what I'm doing wrong and how to fix it? Mind it, I'm very new to C++.</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main()
  {
      int a = 0;
  
      cout &lt;&lt; "How old are you? \n";
      cin &gt;&gt; a;
      cout &lt;&lt; a;
      cin.get();
      return 0;
  
  } 
  </code></pre>