#include <iostream>
#include <string>
int main()
{
std::cout << "Enter any string at all, even if it includes spaces or is very long: " << std::flush;
std::string text;
if(std::getline(std::cin, text))
{
std::cout << "Thanks! You said \"" << text << "\"." << std::endl;
}
else
{
std::cout << "Something went wrong, I didn't quite catch that." << std::endl;
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgoKaW50IG1haW4oKQp7CiAgICBzdGQ6OmNvdXQgPDwgIkVudGVyIGFueSBzdHJpbmcgYXQgYWxsLCBldmVuIGlmIGl0IGluY2x1ZGVzIHNwYWNlcyBvciBpcyB2ZXJ5IGxvbmc6ICIgPDwgc3RkOjpmbHVzaDsKICAgIHN0ZDo6c3RyaW5nIHRleHQ7CiAgICBpZihzdGQ6OmdldGxpbmUoc3RkOjpjaW4sIHRleHQpKQogICAgewogICAgICAgIHN0ZDo6Y291dCA8PCAiVGhhbmtzISBZb3Ugc2FpZCBcIiIgPDwgdGV4dCA8PCAiXCIuIiA8PCBzdGQ6OmVuZGw7CiAgICB9CiAgICBlbHNlCiAgICB7CiAgICAgICAgc3RkOjpjb3V0IDw8ICJTb21ldGhpbmcgd2VudCB3cm9uZywgSSBkaWRuJ3QgcXVpdGUgY2F0Y2ggdGhhdC4iIDw8IHN0ZDo6ZW5kbDsKICAgIH0KfQo=