The structure is simple. Pay attention to placement of curly braces and semicolons, specifically, where they are NOT.
// The next line is a function signature to tell the compiler that
// the actual function will follow later. You either need a signature
// or the actual function to appear before it is ever used anywhere.
// note the ...