home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / diverses / tctnt / cincoutc.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-27  |  489 b   |  20 lines

  1. /* CINCOUTC.CPP: Using istream's get member function
  2.  
  3.         Accessible member functions of the base classes can be called.
  4.         This program calls the member function 'get' of class istream
  5.         using the variable CIN and the member function 'put' of class
  6.         ostream using the variable COUT.
  7. */
  8.  
  9. #include <iostream.h>
  10.  
  11. //*******************************************************************
  12. int main()
  13. {
  14.      char ch;
  15.  
  16.      cin.get( ch );
  17.      cout.put( ch );
  18.      return 0;
  19. } // end of main()
  20.