Problem when including a file with an included file
<p>I have been trying to include a file in a included file e.g</p>

<p><strong>main.cpp file</strong></p>

<pre><code>#include &lt;includedfile.cpp&gt;
int main(){
     cout&lt;&lt;name&lt;&lt;endl;
}
</code></pre>

<p><strong>includedfile.cpp</strong></p>

<pre><code>#include &lt;iostream&gt;
using namespace std;
string name;
name = "jim";
</code></pre>

<p>this code does not work, the debuger says that name is not defined.</p>
