show(line);
//a = 0;
break;
default:
break;
}
}
}
}
int show(int line[][3])
{
for (x = 0; x < 3; x++)
{
for (y = 0; y < 3; y++)
{
printf("%d\n", line[x][y]);
}
}
return 0;
}
严重性 代码 说明 项目 文件 行 禁止显示状态
错误 C2660 “show”: 函数不接受 1 个参数 Tic-Tac-Toe e:\msh\c\tic-tac-toe\tic-tac-toe\gamesource.cpp 97
int x, y;
int show(int line[][3])
{
int x, y;
for (x = 0; x < 3; x++)
{
for (y = 0; y < 3; y++)
{
printf("%d\n", line[x][y]);
}
}
return 0;
}