i have tried it doesnt work
array[ b ]=1;
Of course that doesn't work because it isn't Java. Please read before
you start banging that keyboard. A hexadecimal literal value takes the
notation 0x10. As far as I can see the array 'array' isn't declared
and defined anywhere. Please use [code] ... [/code] tags around
you source code because what you posted is hardly readable.