summaryrefslogtreecommitdiff
path: root/reference/CPLUSPLUS/EXAMPLES/io1.cc
blob: 22f22dc48a87d22ae4265c4094fed50beda76a89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/************************************************************************
 *
 * Purpose:
 * Author:  M J Leslie
 * Date:    26-Oct-98
 *
 ************************************************************************/


#include <iostream.h>               // cout, cin

main()
{
  char buf[255];
  
  cout << "Please enter a string ==> ";     // O/P to STDOUT (screen).
  cin  >> buf;                  // I/P from STDIN (keyboard).
  cout << "Entered string is " << buf << endl;  
}