You assign the count to the wrong index, plus casting the count may not be suitable here. Try:

Code:

board[y-1][x-1]='0'+count;

Instead.

Next thing are your if statements that check whether or not a surrounding index is out of boundaries. Remember that array index begins at 0.
For example, one of your if statements is as follows:

Code:

if (((y)<size) && ((x-1) > 0) && (board[y][x-1]=='*')){

Try changing all of the inequalities with zeros to something like:

Code:

if (((y)<size) && ((x-1) >= 0) && (board[y][x-1]=='*')){

01-01-2009

transgalactic2

i did your changes
its not working .
if the user prints to uncover 1,1 then because its counting from 1 to size
the the actual coordinate is 0,0.
also the column number is X and the row number is y the input goes like x,y
so "y" in the rows and "x" in cols.
it need to print '1' on the 0,0 cell and show the astrix in board[1][0].