#include using namespace std; main() { char s[11]; while (!cin.fail()) { cout << "Enter some text: "; cin.getline(s, 11); cout << "You entered '"<< s << "'" << endl; } }