Bitset类count函数运用

count

语法:

 

count()函数bitset中被设置成1的位的个数。

代码:

运行结果:

10000010 bs中1的个数:2
10000111 bs1中1的个数:4
请按任意键继续. . .

《Bitset类count函数运用》上有1条评论

评论已关闭。