So, I was answering some questions in SO earlier, and I came across this post:
And I was the third to answer, and my answer was the only one which had working code (at the time I posted) to explain to the OP what the problem was.
The issue was, that one person who came along, glglgl, came along, and down voted my post, as he didn't like the
extern keyword. Thus, another user the up votes, while I got none, whilst I had actually put some effort into explaining a solution to the OP.
What am I expected to do in this situation? My answer was correct, and was in line with the solution in C, as the question was tagged, as well as I added a more C++-esque answer.
Where did I go wrong here? What can I do in the future for preventing this from happening to me again?