HEY!! I understood what you said and tried to make an algorithm which will work on this..... for Example
i created an ASCII like for 0(47) my 5bit ascii is 00000 for 1(48)00001 ..... for A(65) my ascii is 01011 for B(66) my ascii is 01100 and so on..
now i have charachter in
Code:
array arr[36]={0,1..........,A,B.........Z}
and compressed[(36*5)/8]= {(00000000),(01011000),.......,(..01011011),(00......)...........}
If i type SAQ
then with 111010101111011.
(11101010) 1st byte
first 5 contains alternate for S and 3 for A
i can extract it using Shift operator
(1111011.) 2nd byte
contains 2 bits for A
my question is that how can i extract last 2 bit from 1st byte and add it at the starting of 2nd byte ?????? so that 2nd byte can become (01011....)
help me plz!!!