August 18, 2006
@ 12:00 AM

Can sıkıntısı! Eskiye,düşünmeye, yazmaya özlem


static void Main(string[] args)
{
 string harf = "i'm the superstar";
 byte[] bytes = System.Text.Encoding.ASCII.GetBytes(harf);


 for (int j = 0; j < bytes.Length; j++)
 {
         for (int i = 7; i >= 0; i- -)
         {
                if(((bytes[j] >> i) & 1) == 1)
                        Console.Write("1");
                else
                        Console.Write("0");
         }
  }   
}


01101001001001110110110100100000011101000110100001100101001000000111001101110101
01110000011001010111001001110011011101000110000101110010