I managed to write this with not much problem. I work in a school Supply store right now and people are always coming in needing to know how many packs of letters to buy to write a specific phrase.
Any other little coding projects you can suggest to kill some time?
Nice program, although it was not clear what line 15 was for at first.
Adding a comment there would be helpful if you want to come back and tweak it again, say in a year...
I tried to think of something useful in a school supply store, but so far I'm still thinking...
I hope you won't mind, I put your output lines together and changed it to only show the ones that are greater than zero. Hope you like the change, if not don't use it.
Seeing things like this others write and find useful is awesome, Thx for sharing.
This is an adaptation of an earlier thread her which might be adaptable to the frequency counter problem:
http://www.cplusplus.com/forum/beginner/204508/#msg970600