OOP, Linked list using classes
<p>I have a class of events.
Now All I have to do is to create events and store them in a linked list. but I don't know how to fix the head position. I mean if i define head to be NULL in a constructor then for every new event it would re-defined to be NULL. Thus I will have only one event in my linked list.
My code is something like this:</p>

<pre><code>// event.h
class event{
private:
Event *head;
Event *nxt;
int date;
string name;
Public:
event();
event(int d, string n);
Add_item();
}
//event.cpp
event::event(){}
event::event(int date, string name): date(date), name(name){
head=NULL;
}
</code></pre>

<p>// Now each time I call a constructor, head would be re-defined as NULL.
What should I do???</p>
