However, your reply is the most inefficient way of helping.
If by "inefficient" you mean that your problem is solved more slowly due to being forced to actually learn something, then I agree. But my goals are different from yours; I'm interested in the bigger picture of teaching programming while you're just interested in solving the immediate problem.
A suggested solution without an explanation or any comments isn't very useful in my case.
Unless your case is acute mental retardation, a C++ reference site and about five minutes of thought are all that's needed to understand the code without any explanation or comments. And the reference site is optional.