14 lines
227 B
C++
14 lines
227 B
C++
#include <iostream.h>
|
|
|
|
void main( void ) {
|
|
|
|
char ch;
|
|
|
|
cout << "Write a sentence:" << endl;
|
|
cin.unsetf( ios::skipws );
|
|
while( (cin >> ch).good() && ch != '\n' ) {
|
|
cout << ch;
|
|
}
|
|
cout << endl;
|
|
}
|