I don't know if anyone has made on but this is kind of a brute force method... check it out.
Like it?Code:// Phillip Hermans // Feburary 18, 2003 #include <iostream.h> int main() { int i,ent,x = 128,wot,q; do{ cout << "Enter a number greater than 0 and less that 256: "; cin >> ent; } while(ent > 256 || ent < 0); wot = ent; for(i = 1; i < 9; i++) { if(x > wot) cout << "0"; else { cout << "1"; wot = wot % x; } x /= 2; } return 0; }