Someone who appears to be new to programming and/or C++ posted this question asking about how the purpose of 4 different logical operators in a small snippet of code.
The comments immediately start pointing out errors in the question
- OP does not understand the difference between declaration and definition
- OP didn't include information about the
float2
(although has no relevance to the question being asked) - OP used more brackets than necessary
These are all helpful things to point out to a beginner, but instead we have
- High rep users with years of C++ experiencing pretending they cannot understand what the question is asking because the question uses the word declaration instead of definition
- A suggestion to read the first 10 pages of any C++ book
- Multiple people talking about the OP as if he or she is not present
None of these things are constructive
And finally the question was closed as Too Broad with the advice:
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer.
The question already had an adequate answer posted prior to being put on hold. It is obvious what the OP is asking no amount of editing will suddenly make the question significantly more clear.
The only reasoning I can come up with for this question being marked as Too Broad is the fact that the question asks about 4 different operators and so it could be considered 4 different questions. However, given the scope of what OP is asking could easily fit into a single answer I don't think this question should be classified as Too Broad. This Meta answer and the Help Center both seem to back up this reasoning. There is most certainly one single correct answer to this question and it fits concisely in a single answer.
I'm not sure what the correct action for this question is, but the way it was handled definitely seems less than ideal.
Should the question have been marked as a duplicate? Is it unique enough on its own? If it is too broad, what could be changed to improve the question?