第一空填father==child;
第二空填flag=='f'.
int EmptySharaStack(ShareStack shstack)
{
if (shstack.top0 == -1 && shstack.top1 == MaxSize) //两个栈都空时,返回1
{
return 2;
}
else if (shstack.top0 == -1) //0号栈为空,1号栈非空时,返回0
{
return 0;
}
else if (shstack.top1 == MaxSize) //1号栈为空,0号栈非空时,返回1
{
return 1;
}
return -1; //两个栈都非空时,返回-1
}