Do you get errors from the program? Please copy and paste them here.

What is the output of the program supposed to look like?

Also please use code tags to save the code formatting. You posted...