300 lines isn't that much. Make sure you enclose it in a CODE BLOCK (see the posting guidelines), and include the errors in a second code block.

A vast number of errors does not automatically mean there are a vast number of mistakes. Try deliberately missing a semicolon off somewhere - the compiler can't resync with the code and gets errors at everything afterwards. Fix the first error and recompile and often you'll be surprised at how many of those errors disappear.

Most coding books I've seen have the code posted to a website somewhere....haha, 5 seconds of Googling:

So you don't need to post the code after all, just post the URL of the one you're struggling with. And the errors.