The user is going to cin a whole bunch of regular text. You store each word based on its first letter. Print out all the words they used by letter. Strip all punctuation and capitalize everything.
Don't forget - you can use any resource short of other people and copying code of the internet. If you can't remember how to use cin to pull words off a sentence, look it up. In the first page of search results I see three different ways to do it. No I'm not saying what they are.
Sample Output:
Input:
I asked my doctor how long I had to live. She said five. I said "Five what?" She said four...
Output:
A
Asked
B
C
D
Doctor
E
F
Five Five Four
G
H
How Had
I
I I I
J
K
L
Long Live
M
My
N
O
P
Q
R
S
She Said Said She Said
T
To
U
V
W
What
X
Y
Z