Re: bitwise operators
Ok i think I got it!
I have something like:
int music, state=1;
void toggle(char option[10])
{
if (option=="playing")
{
music^=state;
}
else if(option=="repeat")
{
music^=state<<1;
}
}
out of curiosity, is there any difference between those 2 statements in terms of efficiency and other stuff?
music^=state<<1;
music^=state*2;
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector