title: What code should be used instead of getche in c++
body: <p>I am new to c++ ,</p>
  
  <p>What code should i write to make the screen stand still. I use </p>
  
  <pre><code>getche();
  </code></pre>
  
  <p>in c language. but instead of <code>getche()</code> what should i use in c++;
  I tried </p>
  
  <pre><code>std::cin.get();
  </code></pre>
  
  <p>but the console windows displays and then goes off quickly.</p>