data structures - What does C++ struct syntax "a : b" mean -


If I have C ++ strat, then defining the 64 bit data word like ..

< Pre> Struct SMyDataWord {int name: 40; Int Color: 24; }; What is the meaning of syntax? What does it mean that the first 40 bits reserved for the name and the remaining 24 bits of color? has gone?

It seems like how it is being used, but I have not seen it before.

Beetfolds, c. name is 40 beats wide, color is 24 bit wide. Your straight is at least 64 bits in my system 64 bit 8 bytes will be in my system.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -