[解决办法] bitset<N>& set ( size_t pos, bool val = true );Set bits The version with no parameters sets (to 1) all the bits in the bitset. The parameterized version, stores val as the new value for bit at position pos.
[解决办法] bitset::set bitset<N>& set(); bitset<N>& set(size_t pos, bool val = true); The first member function resets all bits in the bit sequence, then returns *this. The second member function throws out_of_range if size() <= pos. Otherwise, it stores val in the bit at position pos, then returns *this.