请大家找一下这个不容易发现的错误
小弟运行以下程序段后出现这个错误,--------------------Configuration: wuziqi - Win32 Debug--------------------
Compiling...
wuziqi.cpp
C:\Documents and Settings\Administrator\wuziqi.cpp(132) : error C2143: syntax error : missing ';' before 'return'
C:\Documents and Settings\Administrator\wuziqi.cpp(133) : error C2143: syntax error : missing ';' before '}'
C:\Documents and Settings\Administrator\wuziqi.cpp(133) : error C2143: syntax error : missing ';' before '}'
C:\Documents and Settings\Administrator\wuziqi.cpp(133) : error C2143: syntax error : missing ';' before '}'
Error executing cl.exe.
wuziqi.obj - 4 error(s), 0 warning(s)
系统提示错误的意思是缺少‘;’,但是我怎么找也找不到错误的所在,还望高手指点
int Draw_f(int nX, int nY)
{
int nDraw;
int nCountX,nCountY;
if(anArrayPlace[nX-1][nY-1])
printf("This Place is not blank,Please try again.\n");
else
{
if(nPlayer)
{
chMark='X';
nPlayer=0;
}
else
{
chMark='O';
nPlayer=1;
}
achArray[nX-1][nY-1]=chMark;
printf("-------\n");
for(nCountX=0;nCountX<=2;nCountX++)
{
printf("|");
for(nCountY=0;nCountY<=2;nCountY++)
printf("%c|",achArray[nCountX][nCountY]);
printf("\n------\n");
}
anArrayPlace[nX-1][nY-1]=1;
if((achArray[0][0]==achArray[0][1]&&achArray[0][1]==achArray[0][2]&&achArray[0][2]!=0)
||(achArray[1][0]==achArray[1][1]&&achArray[1][1]==achArray[1][2]&&achArray[1][2]!=0)
||(achArray[2][0]==achArray[2][1]&&achArray[2][1]==achArray[2][2]&&achArray[2][2]!=0)
||(achArray[0][0]==achArray[1][0]&&achArray[1][0]==achArray[2][0]&&achArray[2][0]!=0)
||(achArray[0][1]==achArray[1][1]&&achArray[1][1]==achArray[2][1]&&achArray[2][1]!=0)
||(achArray[0][2]==achArray[1][2]&&achArray[1][2]==achArray[2][2]&&achArray[2][2]!=0)
||(achArray[0][0]==achArray[1][1]&&achArray[1][1]==achArray[2][2]&&achArray[2][2]!=0)
||(achArray[0][2]==achArray[1][1]&&achArray[1][1]==achArray[2][0]&&achArray[2][0]!=0))
printf("\n\n End of this game!!\n");
return 3310;
}
nDraw=1;
for(nCountX=0;nCountX<=2;nCountX++)
{
for(nCountY=0;nCountY<=2;nCountY++)
{
if(anArrayPlace[nCountX][nCountY]==0)
nDraw=0;
}
}
if(nDraw==1) return 8210;
}
return 0;
}