title: c++ ifstream undeclared identifier
body: <p>I am in Visual Studio and am getting 'ifstream undeclared identifier' with this code (same for ofstream)</p>
  <pre><code>#include &lt;iostream&gt;
  #include &lt;iomanip&gt;
  #include &lt;fstream&gt;
  void main()
  {
      ifstream infile(&quot;file.txt&quot;);
      ofstream outfile(&quot;out.txt&quot;);
  }
  </code></pre>
  <p>do I need to include something else?</p>