String Concatetation

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Dec 2007
Posts: 610
Reputation: OmniX is an unknown quantity at this point 
Solved Threads: 8
OmniX's Avatar
OmniX OmniX is offline Offline
Practically a Master Poster

Re: String Concatetation

 
0
  #11
Aug 21st, 2008
I just read the whole 'thread' abit over whelming but I gathered:

  1.  
  2. cin.get(); // when no output after
  3.  
  4. //when output is after
  5. #include <istream>
  6.  
  7. void ignore_line ( std::istream& in )
  8. {
  9. char ch;
  10.  
  11. while ( in.get ( ch ) && ch != '\n' )
  12. ;
  13. }

Thanks for the help and info once again niek_e!
"You never stop learning." - OmniX
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC