New idea on conveting byte to bits/bits to byte
Since WaltP said that C programming canT write in bit
So i come out with a new idea after did some search with google.
My new idea(may stupid too:o ):
converts 8 one byte values ('0' or '1') to a single byte
P/S: If i'm able to convert it to byte thats mean i can write it as a char right?
CONVERT BYTE TO BITS
CONVERT BITS TO BYTE
Although it is a totally different thing but i'm think it also work in C.
Now my questions is:
1) How to use the internally stored binary value
can i do something like this in C beside C++
FAQ Level 3: Convert string to binary
2) If the idea above works how to merge those "8 bits in btyes" to a single byte.
CORRECT ME IF I"M WRONG...
THANKS FOR VIEWING ....
To know more read :My old stupid idea
http://cboard.cprogramming.com/showt...threadid=46223