home *** CD-ROM | disk | FTP | other *** search
- /* CINCOUTB.CPP: I/O using cin and cout
-
- 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()
-
-