bitset<4> bs; bs[1] = 1; std::stringstream tempStr; tempStr << bs; string temps = tempStr.str();
debug 结果却是这样, 那个 string 应该是 0100 的,现在却是 0010 了。