home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turbo Toolbox
/
Turbo_Toolbox.iso
/
dtx9202
/
borhot
/
cincoutc.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1992-01-06
|
1KB
|
31 lines
/* ------------------------------------------------------ */
/* 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 */