Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Please Help Linked list problems!

Thread Tools

Please Help Linked list problems!

Posts: n/a
Please Help!

I am using this structure :

typedef struct Sname
char *pSzfirst;
char *pSzLast;
struct name *Snext;

person* FindMin (person *pSHead)
person *pSMin;
person *pSCurr;


while (pScurr!= NULL)
if (strcmp(pScurr->pszfirst,pSMin->pszfirst)<0)



return psMin;
} //Error:Expected a declaration! What can I do to make this work?

Could somebody please write a piece of code that will walk the list?
Thank you, John
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Airplane Program with Linked Lists. The linked list portion is veryconfusing to me. jawdoc C++ 9 03-10-2008 03:38 AM
Linked list within a linked list joshd C++ 12 10-02-2006 08:57 AM
Linked list, New try (was:Linked list, no out put,help) fool C Programming 14 07-03-2006 12:29 AM
Generating a char* from a linked list of linked lists Chris Ritchey C++ 7 07-10-2003 10:12 PM
Generating a char* from a linked list of linked lists Chris Ritchey C Programming 7 07-10-2003 10:12 PM