Exercism c++ problem

Thanks all.

I think im going for the solution of post #6 because the rest is too complex for a beginner like me.

But nice to see how more xp c++ developers would solve this ?

For me this topic can be closed