Use of uninitialized value of size 4
<h1>Edit: I was being dumb, I -WASN'T- allocating it. Thanks again for the help!</h1>

<p>This is an error I had thought myself to be over, yet it's back at it, and I do not know why it's happening.</p>

<p>Here is the code from the .C file leading up to the error:</p>

<pre><code>int main(int argc, char* argv[])
{
    if( argc &gt; 3 )
    {
        cout &lt;&lt; "Too many arguments. Program will close.\n";
        return 1;
    }

    else
    {
        int numRooms = 0;
        int start = 0;
        ifstream file;

        if( argc == 3 )//Dump wanted
            file.open( argv[ 2 ] , ifstream::in );

        else 
            file.open( argv[ 1 ] , ifstream::in );


        if( file.is_open() )
        {
            file &gt;&gt; numRooms;
            Graph * maze = new Graph( numRooms );
</code></pre>

<p>The <strong>Graph * maze = new Graph( numRooms );</strong> is where the error is being referenced (a11.C:41):</p>

<pre><code>==17900== Use of uninitialised value of size 4
==17900==    at 0x8048F05: Graph::Graph(int) (Graph.C:25)
==17900==    by 0x8048C1D: main (a11.C:41)
</code></pre>

<p>From here we delve deeper, into the Graph.C file, lines 16 - 30:</p>

<pre><code>Graph::Graph( int num )
{
    numRooms = num;
    _index = 0;
    _start = 0;

    easyDelete = new Room*[ num ];
    escapePath = new string[ num ];

    theWALL -&gt; myNumber = -1;
    theWALL -&gt; visited = true;

    safety -&gt; myNumber = 0;
    safety -&gt; visited = false;
}
</code></pre>

<p>Line 25 is this: <strong>theWALL -> myNumber = -1;</strong></p>

<p>"theWALL" and "safety" are both private *Room objects:</p>

<pre><code>Private:
    Room * theWALL;
    Room * safety;
</code></pre>

<p>The struct "Room" looks like this:</p>

<pre><code>struct Room
    {
        bool visited;
        int myNumber;

        Room *North;
        Room *East;
        Room *South;
        Room *West;
    };
</code></pre>

<hr>

<p>It's initialized up when I call new Graph( numRooms ), and I am filling it it's information... yet I get this error.</p>
