We don't do people's homework for them. You must at least know how to create a main() function. And I doubt the instructor would have you using dynamic memory allocation without going over it first....