struct list_of_strings
{
char data[80];
list_of_strings * next;
};
arent you supposed to put something infrom of list_of_strings?
Printable View
struct list_of_strings
{
char data[80];
list_of_strings * next;
};
arent you supposed to put something infrom of list_of_strings?
that is valid c++.
in straight c you would have to do this...
struct list_of_strings
{
char data[80];
struct list_of_strings * next;
};
but what is
struct list_of_strings * next;
for?
>>struct list_of_strings * next;
it is a self referential pointer. ie next is a pointer to the structure list_of_strings.
used basically in linked list programming.