bitset
#include <iostream>
#include <bitset>
using namespace std;
int main() {
bitset<sizeof(int)*4> f(232478);
bitset<sizeof(int)*4> g(-232478);
cout << f << endl << f.flip() << endl;
cout << endl;
cout << g << endl << g.flip() << endl;
cout << endl;
return 0;
}INFO