home *** CD-ROM | disk | FTP | other *** search
- /* CINCOUTC.CPP: Using istream's get member function
-
- Accessible member functions of the base classes can be called.
- This program calls the member function 'get' of class istream
- using the variable CIN and the member function 'put' of class
- ostream using the variable COUT.
- */
-
- #include <iostream.h>
-
- //*******************************************************************
- int main()
- {
- char ch;
-
- cin.get( ch );
- cout.put( ch );
- return 0;
- } // end of main()
-