标准库bitset类型
位集的处理
#include <bitset>
using std::bitset;
定义和初始化:
bitset<n> b; //b有n位,每位都为0
bitset<n> b(u);
bitset<n> b(s);
bitset<n> b(s, pos, n);
位集的处理
#include <bitset>
using std::bitset;
定义和初始化:
bitset<n> b; //b有n位,每位都为0
bitset<n> b(u);
bitset<n> b(s);
bitset<n> b(s, pos, n);