home *** CD-ROM | disk | FTP | other *** search
- /* ------------------------------------------------------ */
- /* CINCOUTA.CPP */
- /* I/O using cin and cout */
- /* (c) 1990 Borland International */
- /* All rights reserved. */
- /* ------------------------------------------------------ */
- /* veröffentlicht in: DOS toolbox 2'92 */
- /* ------------------------------------------------------ */
-
- /*
- This program inputs an integer from the keyboard and puts
- it into the variable 'i' using the overloaded member
- operator >>. The next statement outputs the variable to
- stdout using the overloaded member operator <<.
- Since the overloaded insertion and extraction operators
- used above are members of CIN or COUT, they can
- alternatively be called using the dot member access
- operator.
- */
-
- #include <iostream.h>
-
- // ------------------------------------------------------ *
- int main()
- {
- int i;
-
- cin.operator >> (i);
- cout.operator << (i);
-
- return 0;
- } // end of main()
- /* ------------------------------------------------------ */
- /* Ende von CINCOUT.CPP */
-
-