Your program is missing a lot of ; statement terminators, such as the one on line 23 of the code you originally posted (there are several lines like that).
My compiler vc++ 2008 Express also coughs up warnings about assigning doubles to floats because you didn't add 'F' after a magic number, such as the 0.15 on line 23, instead of 0.15F. One easy fix for that is to declare variables as double instead of float.