01: #include <iostream>
02: #include <string>
03: using namespace std;
04:
05: int main()
06: { cout << "Please enter your full name (first middle last): ";
07: string first;
08: string middle;
09: string last;
10: cin >> first >> middle >> last;
11: string initials = first.substr(0, 1) + middle.substr(0, 1)
12: + last.substr(0, 1);
13: cout << "Your initials are " << initials << "\n";
14:
15: return 0;
16: }