Structs

Hello
This is very simple question i am trying to create a generic list
and i have seen some examples but,there is one issue that troubles me pls clear it for me

1
2
3
4
5
6
  private:
	struct node
	{
		T data;
		node * next;
	} NODE;

CAN U PLS EXPLAIN ME WHAT THE NODE is.i mean the lower case node is the name of this struct right?if so what the Upercase NODE is?
Thx
That one is creating an object called NODE

It is the same thing as not putting it there then on your main function you put this
1
2
3
4
int main()
{
    node NODE;
}

Topic archived. No new replies allowed.