mercredi 20 décembre 2017

Selecting Specific range bits from a bitset and displaying it

Given a particular bitset<32>, how do I select and display the m LSB bits of the bitset? m is an integer value.

for example I have 10110111011110111101111011000100 and m = 8, the code should display 11000100.

Thanks

Aucun commentaire:

Enregistrer un commentaire