/* This program reads a string from standard input, and then reports its size using the size() method. */ #include using namespace std; int main() { string s; if (cin >> s) cout << "The string's size is " << s.size() << "." << endl; return 0; }