#include #include #include using namespace std; int main() { string hello{"Hello World 123 *! the end."}; string first, second; size_t pos; int i; cout << "The string is \"" << hello << '"' << endl; cout << "That string is " << hello.size() << " characters long" << endl; pos = hello.find(" "); cout << "The space is at position " << pos << endl; first = hello.substr(0, pos); second = hello.substr(pos+1, string::npos); cout << "The first string is \"" << first << '"' << endl; cout << "The second string is \"" << second << '"' << endl; cout << endl << endl; i = 0; while(i = 0) { cout << hello.at(i); i--; } cout << endl; return 0; }