It seems a little boring Yes ~~~~~ (>_<) ~ ~ ~
1#include <stdio.h>2 3 Static CharGchardottab[] = {0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4};4 Static Chargdotnum[ the] = {5 0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4, 6 1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5, 7 1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5, 8 2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6, 9 1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5, Ten 2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6, One 2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6, A 3,4,4,5,4,5,5,6,4,5,5,6,5,6,6,7, - 1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5, - 2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6, the 2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6, - 3,4,4,5,4,5,5,6,4,5,5,6,5,6,6,7, - 2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6, - 3,4,4,5,4,5,5,6,4,5,5,6,5,6,6,7, + 3,4,4,5,4,5,5,6,4,5,5,6,5,6,6,7, - 4,5,5,6,5,6,6,7,5,6,6,7,6,7,7,8, + }; A at Static voidPrtinitchardots (void) - { - inti; - - for(i=0; i<=0xFF; i++) - { inGdotnum[i] = gchardottab[i&0x0f] + gchardottab[(i>>4) &0x0f]; - } to } + - intMainvoid) the { * inti; $ Panax Notoginseng prtinitchardots (); - the for(i =0; I <sizeof(Gdotnum)/sizeof(gdotnum[0]); i++) + { A ifI -==0 ) theprintf"\ r \ n"); +printf"%d,", (unsignedChar) gdotnum[i]); - $ } $ - return 0; -}
0x00 to 0xFF binary number 1