Buckle up. Time to combine.
Did you read that last example in the Map section? The one about words that differ by one letter. That was a map of vectors of map vector lists. Or something, I got lost. This is like that, but less.
Program:
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.
Scoring: (50/40 possible)
5 Basic data structure made. This requires at least two connected containers. More is okay if it makes sense to you, but no way this works with just one. Be sure to comment how it works so I understand it.
10 Program planned out in English in comments in main where they apply. Two kinds of comments. Each section of code needs a comment explaining what it does. This is your original planning outline. Then a comment on any if, for, or while that is not immediately obvious. And then finally all your variable names must make sense for what they do. Putting comments on every line will not get these points
10 Parsing sentence down to words works
10 Putting in your data structure works
10 Removing punctuation and capitalizing words
5 Correct and readable final output
-30 Making each word lowercase instead of uppercase, as if you theoretically downloaded an old answer
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