Monkeyget2 wrote:
A semicolon might eventually appears between the if and the count++ but that's not a problem since the language i usually use (c#) raise an error in that case : "Possible mistaken null statement". Now that I think about it, in c/c++ it might compile without any error reported.
Well, in fact all newer C++ - compilers warn, and if you program in a way so as not to get overwhelmed by thousands of warnings, you could notice. I think there is also a way to bring the compiler to make an error out of aspecific warning. (With all warnings its easy, but a bit pointless).
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation." -- Caius Petronius, Roman Consul, 66 A.D.