// WIDTH and HEIGHT are #defines
int world[WIDTH*HEIGHT];
// some random hit location
double hitx = 3.5; // which is less than WIDTH
double hity = 2.2; // which is ledd than HEIGHT
// we can''t have decimals so we have to round the hit
int index_x = round( hitx );
int index_y = round( hity );
// and we only have single index on the world array
int index = index_x + index_y * WIDTH;
// and then you put your bomb down
world[ index ] = BOMB;
If you don''t understand that, go back to elementary school, do not pass GO
---------------------------
I may be getting older, but I refuse to grow up