home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turbo Toolbox
/
Turbo_Toolbox.iso
/
dtx9202
/
borhot
/
cincouta.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1992-01-06
|
1KB
|
39 lines
/* ------------------------------------------------------ */
/* CINCOUTA.CPP */
/* A simple program that uses cin and cout */
/* (c) 1990 Borland International */
/* All rights reserved. */
/* ------------------------------------------------------ */
/* veröffentlicht in: DOS toolbox 2'92 */
/* ------------------------------------------------------ */
/*
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()
/* ------------------------------------------------------ */
/* CINCOUTA.CPP */