twodot ":" in Struct for what

Aug 2, 2013 at 2:16am
Write your question here.

1
2
3
struct{
 unsigned int shakeToEdit : 1;
        unsigned int isClassic : 1;}

I dont knnow ":" for what? Some one please answer^^
Aug 2, 2013 at 2:20am
The colon indicates a bit field. The number to the right of the colon is the number of bit positions the field occupies.
Aug 2, 2013 at 2:24am
Thanks so much ^^!
Topic archived. No new replies allowed.