I am frustrated that this Stack Overflow question, that is about c++ is migrated to Code Golf. This isn't Code Golf. Just because the question is phrased in the form of a challenge, doesn't mean anything.
What is meta?
- Any Stack Exchange user can ask a question
- The community provides support, votes on ideas, and reports bugs
- Your voice helps shape the way Stack Exchange operates
Quoting the bottom of your question:
edit: based on Jerry Coffin's excellent proposed edit, I reinstated it on SO. lesson to be learned: don't add bogus "challenges" to your questions to "spice them up". Just ask your question in a simple, straightforward manner.
Jerry Coffin gave the best reason for keeping your question on SO, however, it would require you to edit your question significantly:
I certainly would not have voted to close that question.
But that means a whole lot here: how a question is presented determines how it is answered. If you have a practical problem you need help with, ask about that in your question: don't present it as a code challenge and hope people read between the lines.