bitset<N> bitset<N>::operator~() const;
#include <bitset>
#include <bitset> #include <iostream> int main() { using namespace std; // Create a bitset bitset<4> qBits(5); cout << "bitset<4> : "<< qBits << endl; // Get a copy with the bits flipped bitset<4> qNot = ~qBits; cout << "Bitwise Not : " << qNot << endl; // Keep the window open cin.get(); return 0; }
© 20072024 XoaX.net LLC. All rights reserved.