在我的代码中,我有:
char DRAW_EX[DRAW_HEIGHT][DRAW_WIDTH] = {
"* *",
" * * ",
" * ",
" * * ",
"* *"
};
char DRAW_CIRCLE[DRAW_HEIGHT][DRAW_WIDTH] = {
" *** ",
" * * ",
"* *",
" * * ",
" *** "
};
char DRAW_EMPTY[DRAW_HEIGHT][DRAW_WIDTH] = {
" ",
" ",
" ",
" ",
" "
};
给我警告的行是:
char** leftDraw;
leftDraw = board[i][0]==EMPTY?DRAW_EMPTY:(board[i][0]==SHAPE_O?DRAW_CIRCLE:DRAW_EX);
警告是:
warning: assignment from incompatible pointer type [enabled by default]
我究竟做错了什么?