From a quick glance, I'd guess it might be related to the missing breaks for each case. Would you mind describing the error?
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
Uh, yeah. You have 9 opening braces { and 4 closing braces }. They need to be equal in number. Now is a good time to learn to match them up using proper indentation.
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314