template <size_t N> bitset<N>::bitset();
#include <bitset>
bitset(unsigned long long ullValue); explicit bitset(const char* kcpString); template<class XCharType, class XTraits, class XAllocator> explicit bitset(const basic_string<XCharType, XTraits, XAllocator >& kqrStr, basic_string<XCharType, XTraits, XAllocator >::size_type qPos = 0); template<class XCharType, class XTraits, class XAllocator> explicit bitset(const basic_string<XCharType, XTraits, XAllocator >& kqrStr, basic_string<XCharType, XTraits, XAllocator >::size_type qPos, basic_string<XCharType, XTraits, XAllocator >::size_type qCount, XCharType xZero = XCharType('0'), XCharType xOne = XCharType('1'));
#include <bitset> #include <iostream> int main( ) { using namespace std; // Create a bitset with the default constructor bitset<4> qDefaultBits; cout << "bitset<4>: "<< qDefaultBits << endl; // Create a bitset with the integer value constructor bitset<4> qValueBits(11); cout << "bitset<4>: "<< qValueBits << endl; // Keep the window open cin.get(); return 0; }
© 20072024 XoaX.net LLC. All rights reserved.