One presumes that the assignment's purpose is to help you learn C++, and not to inspire you to use someone else's material for a good grade.
If you re-read my previous post, you will glean a nugget of information. You can parlay that into more simply by continuing along those lines. Write some code. Post back with things that are giving you problems.
Incidentally, this seems more like a C++ question than an asm question, since you state that you know asm and are trying to write a C++ program.