Using switch case with letters instead of integers?

so I needed to write a program that kept date on entry(part of a diary) and instead of writing if statements I thought I'd try a switch case. Apparently that doesn't work says my compiler and the internet and all I could understand from searching the web was that switch case only uses integers and char. While someone said something about using a hash for each one I didn't understand. Help or another way to use a switch case with a string would be helpful thanks!

closed account (z05DSL3A)
While someone said something about using a hash...

http://www.cplusplus.com/forum/beginner/138012/#msg731831
Topic archived. No new replies allowed.