home *** CD-ROM | disk | FTP | other *** search
- /* CINCOUTA.CPP: A simple program that uses cin and cout
-
- CIN and COUT are variables which are used to perform standard
- input and output in a C++ program. They parallel the
- functionality of ANSI C's functions printf() and scanf(). These
- variables are declared in all C++ programs. They can be accessed
- by including the header file "iostream.h" into any C++ source file.
- CIN and COUT are of a predefined C++ Stream Library class type.
- Since they are of a class type, they have data members (variables)
- and member functions associated with them. Therefore, when
- standard input or output is performed in a C++ program, the
- functions of CIN and COUT are called.
- */
-
- #include <iostream.h>
-
- //*******************************************************************
- int main()
- {
- int i;
-
- cin >> i;
- cout << i;
- return 0;
- } // end of main()
-