i get this warning
|227|warning: passing arg 1 of `unCover' makes pointer from integer without a cast|
on this line
what is the problem??Code:kent=unCover(board[N][N],size,x_rem,y_rem);
i get this warning
|227|warning: passing arg 1 of `unCover' makes pointer from integer without a cast|
on this line
what is the problem??Code:kent=unCover(board[N][N],size,x_rem,y_rem);
unCover expects a pointer as 1st Argument, you are passing an int.
Kurt
Remove one or both of the [N] bits, depending on the definition of unCover. You just want to pass the array, not reference an out of bounds item and pretend the value written in that memory location is a pointer (assuming it doesn't crash immediately).
My homepage
Advice: Take only as directed - If symptoms persist, please see your debugger
Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"
Post the definition of unCover() as that will help in resolving the issue.