Write your question here.
Why is it that I can only input four letters in a case. it only allows case 'feb':
example: case 'February': is a error
any help would be great.
thanks
try to get this!
As far as I know, cases only take characters or integers, not strings. Have you tried 'feb' and gotten it to compile?
Yes, but I need to input the whole month. I have tried to do a if statements but that just turns out wrong as well.
You cant input the whole month. You need to use if statements instead of switch case.
Gmoney, try using primitive association:
"January" = 0;
"February" = 1;
...
"December" = 11;
This helps!
THANKS FOLKS!..