Ti> I was reading in a C++ book that inside of structures, you
Ti> can define data types of that structure... Like so:
Ti> struct list
Ti> {
Ti> char monkey;
Ti> list *list;
Ti> list *invertebrate;
Ti> int beligerant;
Ti> }
Ti> ... if anyone could tell me the point of this...
This is most helpful in creating linked lists.
Would you like an example of their utility? :)
There is an excellent example in SNIPPETS, and I have
a somewhat less complex example of my own. Takes 4 msgs.
This is not a C++ concept, and is widely used in C.
In C++, you would likely use a List template instead.
> ] I'm heavily sedated and seriously thinking about blinking...
---
---------------
* Origin: *YOPS ]I[* 8.4 GIG * RA/FD/FE * Milwaukee, WI (1:154/750)
|