At 03:54 2007-03-29, maccxs wrote:
>Hi!
>
>Thanks for the advice. I did it like that in a slightly modified version
>
>istream& getline ( istream& is, string& str );
>
>but both work just fine.

for what you asked, there's a form of ignore that will work even better
istream& ignore(streamsize count, int delim);

to get rid of the rest of a line....
cin.ignore(numeric_limits<int>::max(), '\n');

or any input stream you like doesn't have to be cin.


>Margrit
>
>--- In [email protected], Mickey Mathieson <[EMAIL PROTECTED]> wrote:
>
> >
> > Maybe
> >
> > istream& getline (char* s, streamsize n, char delim )
> >
> > will work.
> >
> > Mickey
> >
> >
> >
> >
> >
> >
> >
>____________________________________________________________________________________
> > No need to miss a message. Get email on-the-go
> > with Yahoo! Mail for Mobile. Get started.
> > http://mobile.yahoo.com/mail
> >
>
>
>
>
>To unsubscribe, send a blank message to 
><mailto:[EMAIL PROTECTED]>.
>Yahoo! Groups Links
>
>
>

Victor A. Wagner Jr.      http://rudbek.com
The five most dangerous words in the English language:
               "There oughta be a law" 

Reply via email to