Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は宿題をしなければなりませんが、Cには、たとえば文字のようにバイナリを実際に変換する関数があるのではないかと思い8 bitます。0101011187W
8 bit
01010111
87
W
大きなセットが与えられます。2進数を1つの配列に格納し、変換した後、すべてを組み合わせてに戻りmain()ます。
main()
はい、このstrtol関数を使用し2て、最後の引数として指定することにより、バイナリ文字列のテキスト表現を解析できます(文字列が基数2の数値を表していることを示します)。
strtol
2