Oct 25, 2008 at 11:14pm Oct 25, 2008 at 11:14pm UTC
Nvm, I found that switch case statements only handle int and char values.
Last edited on Oct 25, 2008 at 11:35pm Oct 25, 2008 at 11:35pm UTC
Oct 26, 2008 at 5:40pm Oct 26, 2008 at 5:40pm UTC
map<string, int > numbers();
I guess you want to make a map called 'numbers'. What you do instead is declaring a function returning a map which is named 'numbers' and takes no arguments.
Oct 26, 2008 at 6:39pm Oct 26, 2008 at 6:39pm UTC
@ exception you are completely right.
After removing the parenteses my program worked.
Since I'm implicitly calling a constructor, I expected parameters should be passed. I will reread the chapter about classes sometime.
Oct 27, 2008 at 1:27pm Oct 27, 2008 at 1:27pm UTC
Mmmm, google "C++ most vexing parse" to understand why you had to remove the parens.