Did you really write this yourself?

As Norm says, what is the problem exactly? What happens when you compile the program?
The more information you can give us the better. It will save us...