It's impossible to know what's wrong without seeing your code. Please post reply with your code - preferably all of it so we can compile the program. Be sure to use code tags: that means after you paste the code into your post, highlight the code and click the <> button to the right of the edit window. This will cause the code to display when line numbers and syntax highlighting once it's posted.