This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/cplbexam/iostream/istream/eqistrm.cpp

14 lines
252 B
C++
Raw Permalink Normal View History

#include <iostream.h>
void main( void ) {
char buf[50];
istream input ( 0 );
input = cin;
cout << "Enter a string:" << endl;
input >> buf;
cout << "The string you have just entered:" << endl;
cout << buf << endl;
}