C++ STL container bitset
-
Bitset 의 예C++ 2014. 2. 22. 07:38
void main() { bitset myBitset; // 10 bits의 객체 생성 myBitset.set(3); // set 3th bit myBitset[4]=true; // set 4th bit myBitset[9]=myBitset[3]; // copy from 3th bit bitset secondBitset(myBitset); // copy constructor // bitset thirthBitset= myBitset; // copy constructor bitset thirthBitset= ('0','1','0','1','0','1','0','1','0','1','0','1'); // copy constructor constructor auto str1 = "010101010101"; b..