HI ,
i have some errors about linked list,when i made print it only shows
characeters like 'ô¼'... plz help; :lol: // lets assume wordCount is 10 and
vayArray is {"lower",upper}; :cool:
Thank you very much
Here is code:
struct for_char_5
{
char vh5[80]; for_char_5 *next;
};
for_char_5 *p,
*start,
*end;
void create_linked_list ()
{
p=new for_char_5;
start=p;
for (int i=0;i<wordCount;i++)
{
if (strlen(vayArray[i])==5)
strcpy((*p).vh5,vayArray[i]);
end=p;
p=new for_char_5;
}
(*end).next=NULL;
}