What does the error message say?
1>c:\documents and settings\fear\my documents\visual studio 2008\projects\homework 2 trying\homework 2 trying\homework 2 trying.cpp(55) : error C2447: '{' : missing function header (old-style formal list?)
You have a stray ';' after your function name/parameters.
if i take out the ';' after my function name i get like 12 error messages that say
1>c:\documents and settings\fear\my documents\visual studio 2008\projects\homework 2 trying\homework 2 trying\homework 2 trying.cpp(59) : error C2143: syntax error : missing ';' before '.'
The switch looks fine...it is probably some other code that is causing the issue. Post the code before this function.