Well do you post your source code that you have made, with errors that need correcting? Otherwise start doing so. No one will help you if you do not want to help your self. Also, if you are stuck try Googling...
@cire I would but now I feel a bit uneasy about this because I don't want my professor to find the problem and I might get in trouble for it... And I just need help
Why would it matter if your professor sees it posted here? Let me ask you this if you go up to another student in the same class as you, and ask for help on a problem you are stuck on will the professor care about that? I doubt it, because learning IS about asking other people more knowledgeable then you questions and getting advice from them. So asking a question on a forum is no different really then asking your professor or a classmate for help with your problem.
The only reason I can see why you would get into trouble would be if you just want someone to do the program for you and then you take full credit for it.
So like everyone said post your question here and what you have done and we will help guide you in the right direction to solve it.