Using existing header in own header
<p>I am trying to write header file. I can write simple headers like add(int x, y) return x+y; . But when I tried to get more complicated, visual studio gave error. I guess error is related to <code>&lt;fstream&gt;</code>. It always shows </p>

<blockquote>
  <p>"error C2065: 'fstream' : undeclared identifier ".</p>
</blockquote>

<p>First line of my cpp file is <code>void get_int(fstream&amp; stream, int offset)</code> (except <code>#include&lt;fstream&gt;</code>) and first definiton of .h file is 
</p>

<pre><code>#ifndef GET_H
#define GET_H

int get_int(fstream&amp; stream, int offset);

#endif
</code></pre>

<p>It goes like this. What is wrong with this code?</p>
