title: How can I tell the program to stop using freopen
body: <p>I am beginner in C++ and I have a question that is beyond my limits.
  I compile under GNU GCC. 
  I use</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  </code></pre>
  
  <p>also known as:</p>
  
  <pre><code>#include&lt;cstdio&gt;
  </code></pre>
  
  <p>At some point in my program I tell the program to use the file de_facut.txt as an in file:</p>
  
  <pre><code>freopen("de_facut.txt","r",stdin);
  </code></pre>
  
  <p>How can I tell the program to use the console to put the input (as default) instead of the <strong>in</strong> file?
  First I want to read from that file, but later <strong>in</strong> the program I want the user to enter input in the console.
  I hope you understood my problem, I am not very good at english.</p>