[Linux-programlama] struct sorting

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: yazicivo@ttnet.net.tr
Date: Sat 18 Dec 2004 - 10:46:21 EET


merhaba,
elimde suna benzer bir yapim var:

typedef struct node charRecStruct;
struct node
{
    unsigned char c;
    unsigned int count;
    unsigned short val;
    charRecStruct *next;
};
charRecStruct *charRec;

bu yapiyi count degerine gore bastan siralamak istiyorum.
yardimci olursaniz cok sevinirim.

root/kok eleman charRec olusturdugum yapi zincirinde. soyle ki:

charRec[c|count|val|next]
                     |
+--------------------+
V
p[c|count|val|next]
               |
+--------------+
V
p[c|count|val|next]
               |
+--------------+
V
p[c|count|val|next]
...
_______________________________________________
Linux-programlama mailing list
Linux-programlama@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.