C programming Day 255

PDFPrintE-mail
07Dec2011
| Written by CodeAsm
Very handy, and so small, dint make it, but still.

int i;for(i=7;i>=0;i--)putchar('0'+((v>>i)&1));

int v is input, it prints the binairy version of it.
I just used it at skool for C lessons, and its handy. Also I am going to start doing some psx and xbox programming, maybe ill post some demo's (with hopefully also work in Cxbx.) Actualy, the image and this last thing isnt realy related to my post, but maybe You dint knew about the resent Cxbx development.

Cxbx is awesome btw, so check Shoguns newest version, it runs the dashboard now.

http://shogun3d-cxbx.blogspot.com/