Advertisement

Binary help please

Started by May 11, 2001 08:58 PM
0 comments, last by caffeineaddict 23 years, 9 months ago
I was wanting to make a little conversion program that converts words and the like to binary code. I know of one way I could do it, just define a letter to the correct binary code, then just replace that when they type the message, but i don''t want to do all that, is there any way you can get the binary that''s created? I know that there is binary created for it to run on the computer but is there anyway to "intercept" it? Any other ideas are appreciated to.
Excuse any typos, I''m writing this without testing or anything. You can probably adapt it:
  void CharToBin(char c, char bin[9]) {  for(int at=7; at>=0; at--) {    bin[7-at] = (0x01 << at) & c;  }  bin[8] = ''\0'';}  


Resist Windows XP''s Invasive Production Activation Technology!
http://druidgames.cjb.net/

This topic is closed to new replies.

Advertisement