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 31,364 of 33,346   
   red floyd to Miles Bader   
   Re: very basic question: read lines from   
   07 Jun 11 03:06:07   
   
   From: no.spam.here@its.invalid   
      
   On 6/6/2011 11:45 AM, Miles Bader wrote:   
   > red floyd  writes:   
   >> You didn't read my entire post.  You have to read it line by line, using   
   >> getline() without a delimiter, create an istringstream from the line,   
   >> and read from that istringstream using a delimiter:   
   >   
   > How efficient do you think this is ...?  It seems a rather nice method.   
   >   
      
   Who cares?  Get it working right first, and then worry about   
   "efficiency".   
      
   Hoare's (or Knuth's) Law:  Premature optimization is the root   
   of all evil.   
      
      
   --   
         [ 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