Have a go yourself and then we can help with any c++ problems you have.
Everything you need is in that article, print it out, read it, and write notes on the printout.
Once you understand the problem and what needs to be done to achieve the result, everything will become clear and you will ask more meaningful questions.