こんにちは、一度に 2 文字の文字列をバイナリに変換したいですか? 単純な算術演算を適用してそれを行うにはどうすればよいですか (つまり、独自の関数を作成することでしょうか?)
例: 文字列は =hello world
です:
望ましい出力 (一度に 2 文字):
he // need binaryform of 0's and 1's (16 bits for 2 characters 'h' and 'e'
ll // similarly
o(space) // single space also counts as a character with 8 zero bit in binary.
wo
rl
d(space) // space equals a character again with 8 zero bits
それをどのように扱うか。私は間にASCIIを入れたくありません。文字からバイナリに直接...それは可能ですか?