Pointer to a class instance?
<p>this is the first time I ask a question. I'm a foreigner, so it's a little bit hard to explain my question. Maybe my title is wrong too... Let's see the code:</p>

<p>Suppose I have defined a class:</p>

<pre><code>class Test
{
    public:
        Test();
};

int main()
{
     Test *pointer = new Test(); //what's the difference between these two ways, 
     Test test;                  //if  the two ways are the same, which one is better under what
     pointer = &amp;test;            //circumstance? 
}
</code></pre>

<p>I hope that you guys can understand what I'm saying and help me.</p>
