home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c++.moderated      Moderated discussion of C++ superhackery      33,346 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 32,903 of 33,346   
   alexo to All   
   Re: insert [sorted] a node in a linked l   
   09 Mar 13 23:48:20   
   
   From: alelvb@inwind.it   
      
   Il 09/03/2013 15:52, Öö Tiib ha scritto:   
   >   
   > On Friday, 8 March 2013 17:20:30 UTC+2, alexo  wrote:   
   >> I'd like to insert a node in a linked list in a sorted manner.  from   
   >> smaller to bigger   
   >   
   > Can you tell us the reason why you use linked list for sorted   
   > container? I would likely review such usage as a design defect.   
      
   It's for testing my programming skills.   
   I read in the book "teach yourself C++ in 21 days" that the author did so   
   in one of his lessons [on appendix E, for the precision].   
   So I thought I could handle a similar thing with my code. That's it.   
      
   What I can't figure out is how to do as better as I did,   
   so I asked you an help.   
   What's wrong with my code?.   
      
   Moreover since my first post on linked list, the list was implemented in a   
   more object oriented fashion.   
      
      
   --   
         [ See http://www.gotw.ca/resources/clcm.htm for info about ]   
         [ comp.lang.c++.moderated.    First time posters: Do this! ]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca