Why does switch case need initialiser?

Trying to write a function that contains switch ..... case. get compile error : expected initializer before 'switch'.
Here is my code. Please let me know where I went wrong.
void finalCountDown (int secs)

void finalCountDown(int secs)
 switch (secs){
Case 1:
 break;
 }

You are missing the opening { for your function

void finalCountDown(int secs) {
  switch (secs) {
     case 1: … break;
     case 2: … break;
     case 3: … break;
     default: … break;
   }
}

(Also no capital lettrer for Case)

Press ctrl-t in ide.
That will line out your code.
Mistakes like this will be easy to catch.

Many Thanks to all. That fixed it. I also used Case instead of case and found cmd-t (on mac) to be very helpful.