haxx
public cpp v1 · immutable#include <iostream>void IntToBin(int x) { for(int i = 0; i < 32; i++) { printf("%i", ((x & 0x80000000) != 0 ? 1 : 0)); x = x << 1; }printf("\n");}int main() { IntToBin(123456789);system("pause");} #include <iostream>void IntToBin(int x) { for(int i = 0; i < 32; i++) { printf("%i", ((x & 0x80000000) != 0 ? 1 : 0)); x = x << 1; }printf("\n");}int main() { IntToBin(123456789);system("pause");}