//on a 32-bit machine,bits 0 to 31 initialized from 0xffff
bitset<128> bitvec3(0xffff);//bits 32 through 127 initialized to zero
以上是c++ primer page.102上作者说的啊
问题:
1、操作系统是64位windows,0xffff还是16位的,文中的32-bit是神马机器?
2、注释上说32到127会被初始为0,这可能吗?我输出的是000....001111...11;//一堆0加16个1,最后必然是1呀?
3、文号还有一句话晦涩难懂啊
When we initialize a bitset from a string,the string represents the bit pattern directly.the bits are read from the string from right to left.
//string strval("1100");
//bitset<32> bitvec4(strval);
以上内容输出的是000。。。1100;
这个明显是非倒序右位赋值,为啥说the bits are read from the string from right to left.听起来跟string要反转一样(flip)。