As Ernest says, we need some more information. What have you tried so far? Does it compile? If not, what are the compiler errors? If it does compile, what happens when you run it? How does this differ from what you expect? You should also include snippets of your code to illustrate what is going on.
When you provide this information, we will be happy to help you.