Closed Thread Icon

Topic awaiting preservation: Matching.. (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=12867" title="Pages that link to Topic awaiting preservation: Matching.. (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Matching.. <span class="small">(Page 1 of 1)</span>\

 
supreme_commander
Nervous Wreck (II) Inmate

From: QLD
Insane since: Mar 2003

posted posted 08-21-2003 04:57

Hey
If anyone knows anything about Queues please respond. I have a file and need to insert item from that into a structure within a Queue. Now that i fine! The problem is that i then need to sort the files within the Queue accroding to a field within the structures. The structs and Queues are private. So i cannont access the fields within them specifically. Does anyone have any idea how i cant sort them

struct client {
char *name;
char * address;
};

need to sort by name!

Please help anybody that has an idea.

Thanks

Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 08-21-2003 07:09

um... yeah... this is not Javascript, this seems to be C... moving this to Server-Side Scripting...

btw... I need a couple good hours of sleep and then I might be able to think about this...

hyperbole
Paranoid (IV) Inmate

From: Madison, Indiana, USA
Insane since: Aug 2000

posted posted 08-21-2003 17:43

Try looking at qsort().

-- not necessarily stoned... just beautiful.

silence
Maniac (V) Inmate

From: soon to be "the land down under"
Insane since: Jan 2001

posted posted 08-28-2003 08:01

If the struct fields are private, how are you assigning values to them in the first place? Do you have any member functions at all?

« BackwardsOnwards »

Show Forum Drop Down Menu