Thread View: csu.cs.200
2 messages
2 total messages
Started by matthew kempf
Sat, 19 Sep 1998 00:00
SelSort<->Sort.h Need help.
Author: matthew kempf
Date: Sat, 19 Sep 1998 00:00
Date: Sat, 19 Sep 1998 00:00
9 lines
974 bytes
974 bytes
I'm OK with printing but I cannot get my lists sorted. I'm sure my sort function would work if I could get it to communicate with my main program. I've got #include "Sort.h" and then void SelSort(SLLnode *hptr,int N) below. Later I call SelSort(hptr,n); When I compile I put Sort.h to an object file, then CC myfile.c and get errors for the include statements found in Sort.h. They are in the same directory but not communicating, but the text I have doesn't have an example that makes sense for this application. Any help is greatly appreciated. Matt.
Re: SelSort<->Sort.h Need help.
Author: Michael Szczepaniak
Date: Sat, 19 Sep 1998 00:00
Date: Sat, 19 Sep 1998 00:00
20 lines
1435 bytes
1435 bytes
If you have the line: void SelSort(SLLnode *hptr,int N) in your myfile.c, then get rid of it because it doesn't belong there because it's already defined in your Sort.h Hope this helps. Michael matthew kempf wrote: > I'm OK with printing but I cannot get my lists sorted. I'm sure my sort > function would work if I could get it to communicate with my main program. > I've got #include "Sort.h" and then void SelSort(SLLnode *hptr,int N) below. > Later I call SelSort(hptr,n); When I compile I put Sort.h to an object file, > then CC myfile.c and get errors for the include statements found in Sort.h. > They are in the same directory but not communicating, but the text I have > doesn't have an example that makes sense for this application. Any help is > greatly appreciated. > Matt.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads