Re: Beginner C/C++ Question
I'm not trying to be funny or unhelpful here, but we will only help with homework. By "help", I mean that you will have to demonstrate that you have made a start - show where you are up to, and then ask a specific question that is troubling you.
We do this so that you can learn from the work you have been set. If we just gave you the answer, you wouldn't actually learn anything. So, make a start, ask a specific question, just don't expect to be fed the answer.
Re: Beginner C/C++ Question
I can't believe that I'm doing the same thing twice in the same day, well here to go, have a look at How do I get other people to do my homework problem for me?. This is for your own good, someday you'll realize it.
Re: Beginner C/C++ Question
Are you guys trying to reinvent the wheel? memset, memcpy, memmove, etc. See Buffer-Manipulation Routines in MSDN.