I am so confused. I am working on a project for my class, and I can't
remember how to do Nodes and linked lists.
I have the following bit of code but don't know how to proceed from
here. If someone could help direct me to the right answer, not just
give me the code, I would appreciate it:
class Node {
public:
Node( );
Node( int t );
Node( int t, Node *n );
friend class List;
friend ostream& operator<<(ostream&, const Node&);
friend ostream& operator<<(ostream&, const List&);
private:
int time;
int count;
Node *next;
};
/*
class List {
public:
List( );
bool insert(int);
friend ostream& operator<<(ostream& os, const List&);
private:
Node *head;
};