#defines can also be simulated by using named global values - especially now that we have an unlimited number. I tend to use them for any value that I'm using across multiple frames that I may have to change in the future.
Printable View
#defines can also be simulated by using named global values - especially now that we have an unlimited number. I tend to use them for any value that I'm using across multiple frames that I may have to change in the future.
If I use the 1,2,4,8,16,32,64... method then I could represent a large number of flags with just one ASCII character.
I know what binary is, sheesh, I just didn't know what he meant by (0 or 1)^10, to me that says 'zero or two to the power of 10. Well which is it gonna be???