cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Structs
Structs
Oct 11, 2013 at 9:40pm UTC
iliya24
(14)
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
Oct 11, 2013 at 9:58pm UTC
giblit
(3750)
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.