char *new_board()
{
for(int i = 0; i < 9; i++) //0 - 8, 9 places
{
board[i] = EMPTY;
}
return board;
}
If I remove the * from before the function name, I am given an error about invalid conversion from char* to char.
Could somebody please explain why I need the * in place?
Edit** Was returning the board 9 times, oops
This post has been edited by E_Geek: 01 July 2011 - 06:19 AM

New Topic/Question
Reply




MultiQuote







|