home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / diverses / tctnt / cincouta.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-27  |  882 b   |  26 lines

  1. /* CINCOUTA.CPP: A simple program that uses cin and cout
  2.  
  3.         CIN and COUT are variables which are used to perform standard
  4.         input and output in a C++ program.  They parallel the
  5.         functionality of ANSI C's functions printf() and scanf().  These
  6.         variables are declared in all C++ programs. They can be accessed
  7.         by including the header file "iostream.h" into any C++ source file.
  8.         CIN and COUT are of a predefined C++ Stream Library class type.
  9.         Since they are of a class type, they have data members (variables)
  10.         and member functions associated with them.  Therefore, when
  11.         standard input or output is performed in a C++ program, the
  12.         functions of CIN and COUT are called.
  13. */
  14.  
  15. #include <iostream.h>
  16.  
  17. //*******************************************************************
  18. int main()
  19. {
  20.      int i;
  21.  
  22.      cin >> i;
  23.      cout << i;
  24.      return 0;
  25. } // end of main()
  26.