You can run it on your compiler and see. IFAIK, there is no bug.Quote:
Originally Posted by moshe2
About that. And you shouldn't use chartype[16] as single array too, since it contains different things and you don't need to remember things like 'index 11 is reposible for this, and index 14 for that'. If you still use it this way, don't use numberic indices, instead define symbolic constants:Quote:
Originally Posted by moshe2
Code:const int LCOMMENT_ID = 11;
...
chartype[LCOMMENT_ID]++;
Yes, just for that purpose. Switch makes it a bit faster though.Quote:
Originally Posted by moshe2
No value in that. Bottleneck in programming is not typing, but thinking. If you type a bit more and save some time later on thinking about what that code means, you save total time and make it more meaningful.Quote:
Originally Posted by moshe2
