struct list_of_strings
{
char data[80];
list_of_strings * next;
};
arent you supposed to put something infrom of list_of_strings?
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;
};
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi
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.
-