Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>istream::getline</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
istream::getline

Usage

   #include <iostream.hpp>
   istream &istream::getline(char *dest, int length, char delim);

Description

   Acts in the same way as get(char*, int, char), except that the delimiting
   character is extracted if there is room for it in the array. The number
   of characters transferred can be determined by an immediately following
   call to gcount().

Example 

   // Input stream contains
   // "The quick brown fox! - jumped or not?"

   char buffer[80];

   cin.get(buffer,80, '!');
   // gets "The quick brown fox!" into buffer

Return Value

   The get functions return a reference to the ostream object for which they
   are called.





Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson