Error C2227,C2065, Class within a Class
<p>I'm trying to structure my code like this main &lt;- game &lt;- player.</p>

<p>IF I write in main:</p>

<pre><code>player* P;
P = new player;

P-&gt;move();
</code></pre>

<p>Everything works but when trying to move this code in to the game component I run in to problems.</p>

<p>Here is the parts of game.cpp I need help with.</p>

<pre><code>#include "game.h"

#include &lt;string&gt;
using namespace std;

game::game(){
    player* P;
    P = new player;
};


void game::playerStuff(){
P-&gt;move(); //c2227+C2065
};
</code></pre>

<p>Here is a part of game.h</p>

<pre><code>#include "player.h"

class game {

public:

    game();
    void playerStuff();
</code></pre>
