On 8/4/07, suraj swaminathan <[EMAIL PROTECTED]> wrote:
> pl help me wit tis.....
>   wat is t actuall function of cin.pushback(ch)....

Please use standard English spelling, please. This is email, not AOL chat.

>   in some cases,though pushback(ch) is used the input stream is taken without 
> considering ch.....

Do you mean cin.putback()? There is no pushback() method for cin, as
far as I can recall (and a quick through my C++ installation's
includes yielded no pushback method for the istream class).

putback() puts a character back into the input stream and decrements
the pointer. Retrieving the next character from the stream will get
the same character that was just put back.

A search through Google should get you more information and examples.
I daresay you will find very little for cin.pushback()

-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
    If I were to divulge it, it would overturn the world."
               -- Jelaleddin Rumi

Reply via email to