Just look at this great example of how nice and helpful Stack Overflow is getting these days!
This is obviously a neophyte learning C++ that lacks knowledge in a particular C++ concept. How do we reward him? Here's a sample of the feedback we've provided so far:
- a bunch of seemingly correct answers, one as a comment, one accepted;
- a comment showing where to find better learning material;
- a comment warning against bad practices and suggesting a safer alternative;
- a comment suggesting an even simpler and safer alternative.
Hopefully no one flagged them. This question was not closed and the user resorted to thanking other users in comments.
Thank you for the advice. I'm using VC11, but this code is very old.
Does anyone seriously think the OP is going to post here again?
Why do we accept this as OK?