Raised This Month: $ Target: $400
 0% 

variables


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
FiFiX
Senior Member
Join Date: May 2008
Location: Poland
Old 08-15-2013 , 08:49   Re: variables
Reply With Quote #3

It means if I'll use bitwise OR to add variable:
64 |= 32 will return 96
then while checking 96 & (16 || 8 || 4 || 2 || 1) will return 0, yes?
and 96 & (64 || 32) will not return 0.

If I'll use bitwise AND to add:
64 &= 32 it will return 32.

It also means that I can add one more variable
Code:
#define VOTE_NEW        128
And it won't affect any other, ye?
FiFiX is offline
Send a message via Skype™ to FiFiX
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode