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/get.cpp

13 lines
188 B
C++

#include <iostream.h>
void main( void ) {
char ch;
cout << "Enter a string:" << endl;
while( ( ch = cin.get() ) != '\n' ) {
cout << ch;
}
cout << endl;
}