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);
This is a discussion on what this worning mean? within the C Programming forums, part of the General Programming Boards category; i get this warning |227|warning: passing arg 1 of `unCover' makes pointer from integer without a cast| on this line ...
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
Plus, this is really an error, so don't you go and ignore it.
For information on how to enable C++11 on your compiler, look here.
よく聞くがいい!私は天才だからね! ^_^
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.