home *** CD-ROM | disk | FTP | other *** search
- /* ------------------------------------------------------ */
- /* CINCOUTC.CPP */
- /* Using istream's get member function */
- /* (c) 1990 Borland International */
- /* All rights reserved. */
- /* ------------------------------------------------------ */
- /* veröffentlicht in: DOS toolbox 2'92 */
- /* ------------------------------------------------------ */
-
- /*
- 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()
- /* ------------------------------------------------------ */
- /* Ende von CINCOUTC.CPP */
-
-