Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #3035

Re: data structure that preserving insertion order

From Owner <Owner@Owner-PC.com>
Newsgroups comp.lang.c
Subject Re: data structure that preserving insertion order
Date 2011-04-29 08:42 -0400
Organization Aioe.org NNTP Server
Message-ID <pan.2011.04.29.12.42.37.649000@Owner-PC.com> (permalink)
References <pan.2011.04.29.02.10.31.192000@Owner-PC.com> <c6a02a1d-fe65-4fe7-bc19-99bd026aeacd@j26g2000yqa.googlegroups.com>

Show all headers | View raw


On Fri, 29 Apr 2011 05:18:29 -0700, Paul N wrote:

> On Apr 29, 3:10am, Owner <Ow...@Owner-PC.com> wrote:
>> Is there any data structure that preserving insertion order
>> in C?
>>
>> I need to process unicode mapping and unlike ascii which has
>>
>> 128 codes, unicode has more than roughly 10,000 letters.
>>
>> I'm looking for..
>>
>> Data structure that handles large data and preserving inser-
>>
>> tion order.
> 
> I'm afraid you still haven't said enough for us to be able to help
> you. When you say "preserving insertion order", what are you planning
> on doing to the data that might mess up the order?
> 
> For instance, if I do the following:
> 
> char buff[10];
> char *p = buff;
> *(p++) = 'H';
> *(p++) = 'e';
> *(p++) = 'l';
> *(p++) = 'l';
> *(p++) = 'o';
> *p = 0;
> 
> printf(buff);
> 
> then this should print all the characters in the order they were
> inserted. Presumably you mean something more than this.

Yes exactly, preserving order like that but with large data

like unicode mapping.  data structure preserving the inorder

of character( character has its own value according 

character set but when inserted the character in some 

sort of data structure, it preserves inorder ) with able 

to search the character efficiently.

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

data structure that preserving insertion order Owner <Owner@Owner-PC.com> - 2011-04-28 22:10 -0400
  Re: data structure that preserving insertion order Peter Nilsson <airia@acay.com.au> - 2011-04-28 23:02 -0700
    Re: data structure that preserving insertion order Owner <Owner@Owner-PC.com> - 2011-04-29 08:06 -0400
  Re: data structure that preserving insertion order Paul N <gw7rib@aol.com> - 2011-04-29 05:18 -0700
    Re: data structure that preserving insertion order Owner <Owner@Owner-PC.com> - 2011-04-29 08:42 -0400
      Re: data structure that preserving insertion order Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-04-29 16:23 +0100
        Re: data structure that preserving insertion order Owner <Owner@Owner-PC.com> - 2011-04-29 12:16 -0400
          Re: data structure that preserving insertion order Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-04-29 18:15 +0100
            Re: data structure that preserving insertion order Owner <Owner@Owner-PC.com> - 2011-04-29 13:35 -0400
              Re: data structure that preserving insertion order Kai-Uwe Bux <jkherciueh@gmx.net> - 2011-04-29 20:00 +0200
                Re: data structure that preserving insertion order Owner <Owner@Owner-PC.com> - 2011-04-29 14:15 -0400
              Re: data structure that preserving insertion order James Kuyper <jameskuyper@verizon.net> - 2011-04-29 19:17 -0400
          Re: data structure that preserving insertion order "Scott Fluhrer" <sfluhrer@ix.netcom.com> - 2011-04-29 13:08 -0400
          Re: data structure that preserving insertion order William Ahern <william@wilbur.25thandClement.com> - 2011-04-29 10:53 -0700
            Re: data structure that preserving insertion order Owner <Owner@Owner-PC.com> - 2011-04-29 14:17 -0400
              Re: data structure that preserving insertion order James Kuyper <jameskuyper@verizon.net> - 2011-04-29 19:24 -0400
              Re: data structure that preserving insertion order Gene <gene.ressler@gmail.com> - 2011-04-29 16:25 -0700

csiph-web