#include <string>
string name = "Alice";
string greeting = "Hello, " + name + "!";
cout << greeting; // Hello, Alice!
cout << name.length(); // 5
string s = "Hello, World!";
s.length() // 13
s.substr(7, 5) // "World" (start index, length)
s.find("World") // 7
s.find("xyz") // string::npos (not found)
s[0] // 'H'
s.empty() // false
string s = to_string(42); // "42"
int n = stoi("123"); // 123
Write initials(string first, string last) that returns uppercase initials.
Example: initials("alice", "smith") → "A.S."
Click "Run" to execute your code.