bitset<N>& bitset<N>::reset();
#include <bitset>
bitset<N>& bitset<N>::reset(size_t qIndex);
#include <bitset> #include <iostream> int main() { using namespace std; // Create a bitset bitset<4> qBits(5); cout << "bitset<4> : "<< qBits << endl; // Reset all fo the bits to zero qBits.reset(); cout << "bitset<4> : "<< qBits << endl; // Keep the window open cin.get(); return 0; }
© 20072024 XoaX.net LLC. All rights reserved.