Using a node class
<pre><code>node *temp; 
temp-&gt;dataItem = newPassenger;
if(size == 0)
{
    Head = temp;
    Tail = temp;
}
else
{
    Tail-&gt;nextNode = temp;
    Tail = temp;
}
size++;
</code></pre>

<p>I need help as VS keeps saying that <code>temp</code> is not initialized, I have little experience with C++. My node class is as follows</p>

<pre><code>#include "passenger.h"
#pragma once
class node
{
public:
    node();
    passenger dataItem;
    node * nextNode;
};
</code></pre>
