Products
and Services Support
and Docs Training Partner Programs About Red
Hat
  download storecart
red hat logo
redhat.comredhat network

Red Hat Documentation

Reading one character Contents|Index|Previous|Next
Reading one character

Use the following methods to read a single character from the input stream.
    int istream::get () 
    Method
      Read a single character (or EOF) from the input stream, returning it (coerced to an unsigned char) as the result.
    istream& istream::get (char &c) 
    Method
      Read a single character from the input stream, into &c.

    int istream::peek () 
    Method

      Return the next available input character, but without changing the current input position.

Top|Contents|Index|Previous|Next

 

 


 
© 2001 Red Hat, Inc. All rights reserved.
About Red Hat  :  Legal statement  :  Privacy statement  :  Y2K statement  :  Contact Red Hat