c语言编译误
#include <stdio.h>int main(void)
{
int player = 0;
int winner = 0;
int i = 0;
char board[3][3] = {
{'1','2','3'},
{'4','5','6'},
{'7','8','9'}
};
for( int i = 0 ; i < 9 && winner == 0 ; i++)
{
printf("\n\n");
printf(" %c | %c | %c\n", board[0][0] , board[0][1] , board[0][2]);
printf("---+---+---\n");
printf(" %c | %c | %c\n", board[1][0] , board[1][1] , board[1][2]);
printf("---+---+---\n");
printf(" %c | %c | %c\n", board[2][0] , board[2][1] , board[2][2]);
player = i%2 + 1;
}
return 0;
}
编译时会报错,麻烦哪位大哥帮忙指点一点