title: C++ Replacing system("pause") call
body: <p>I've read that <code>system("pause")</code> is slow and not advisable to use.<br>
  Is there any function that I can use instead of that?<br>
  I've tried <code>getchar()</code> but if I have a <code>scanf</code> call before, it simply does not waits for an other input, only if I put an other <code>getchar()</code> under it (but I don't think it's a good solution).</p>
  
  <p>edit: I'm using Microsoft Visual Studio 2010</p>