Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

Check whether the jth object is in the subset

S = A & (1 << j)
If S = 0, then the j-th item of the set is off.
If S != 0 (to be precise, T = (1 << j)), then the j-th item of the set is on.
 
PREVIOUS NEXT
Tagged: #Check #jth #object #subset
ADD COMMENT
Topic
Name
1+7 =