If you have no idea at all where to start (which is to define a main() function) then this task is way beyond you and it would be advisable for you to go on a programming course.