c++ global object
<p>I wanna create a global object in cpp program, how do I do that?
Is this right?
in "global_obj.h"</p>

<pre><code>#include "class.h"
Class obj;
</code></pre>

<p>in "main.cpp"</p>

<pre><code>extern Class obj;
</code></pre>
