Code:if(tag == TAG_START | tag == TAG_VOTE | tag == TAG_VOTE_NO ........ etc etc)
Code:if(tag == TAG_START | tag == TAG_VOTE | tag == TAG_VOTE_NO ........ etc etc)
A switch might be appropriate.
By the way, using || with short circuit evaluation may be better than using | here.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)