I need to write a program that will take in a sentence and then outputs the # of words in the sentence, as well as the each letter with it's occurrence in alphabetical order.
Example:
Hello World.
Would output:
2 words
1 d
1 e
1 h
3 l
2 o
1 w
This should be done using strings and vectors. I'm a bit miffed on how to accomplish this. Any help / point in the right direction would be great.