title: Taking input from stdin after freopen()
body: <p>Hi I want to how can we take input from <code>stdin</code> again after I invoke:</p>
  
  <pre><code>freopen("Smefile.txt","r",stdin);
  </code></pre>
  
  <p>Precisely I want my first in first of my program should take input from a designated file the next part would take from the stdin.</p>
  
  <p>Like:</p>
  
  <pre><code> int a,b;
   freopen("Smefile.txt","r",stdin);
   scanf("%d",&amp;a);
  
   {
     //some block here such that the next cin/scanf takes b from standard input
   }
   cin&gt;&gt; b;
   cout &lt;&lt;a&lt;&lt;" "&lt;&lt;b;
  </code></pre>
  
  <p>Any ideas?</p>