Is this a school project, or is it paid work ? Either way, while you could find examples of this sort of code with a basic google search, no-one here is going to do your work for you. If you took paid work when you don't even know C++ ( or that C++ and C are different ), then you deserve what you get. If it's a school assignment, then the purpose of the assignment is for you to learn, not to see if you can find people to do the work for you. Ask specific questions and we will help. Giving us your assignment to do, or even to provide the core for, is not acceptable.