其中的if(S.top-S.base >S.stacksize)是什么意思啊?int Push(SqStack &S,SElemType e) //Push() subfunction { //Push element to SqStack if(S.top-S.base >S.stacksize) //Stack == full?{ S.base=(SElemType *)realloc(S.base,(S.stacksize+STACKINCREMENT*
来源:学生作业帮助网 编辑:作业帮 时间:2024/06/25 20:42:09
![其中的if(S.top-S.base >S.stacksize)是什么意思啊?int Push(SqStack &S,SElemType e) //Push() subfunction { //Push element to SqStack if(S.top-S.base >S.stacksize) //Stack == full?{ S.base=(SElemType *)realloc(S.base,(S.stacksize+STACKINCREMENT*](/uploads/image/z/12114662-14-2.jpg?t=%E5%85%B6%E4%B8%AD%E7%9A%84if%28S.top-S.base+%3ES.stacksize%29%E6%98%AF%E4%BB%80%E4%B9%88%E6%84%8F%E6%80%9D%E5%95%8A%3Fint+Push%28SqStack+%26S%2CSElemType+e%29+%2F%2FPush%28%29+subfunction+%7B+%2F%2FPush+element+to+SqStack+if%28S.top-S.base+%3ES.stacksize%29+%2F%2FStack+%3D%3D+full%3F%7B+S.base%3D%28SElemType+%2A%29realloc%28S.base%2C%28S.stacksize%2BSTACKINCREMENT%2A)
其中的if(S.top-S.base >S.stacksize)是什么意思啊?int Push(SqStack &S,SElemType e) //Push() subfunction { //Push element to SqStack if(S.top-S.base >S.stacksize) //Stack == full?{ S.base=(SElemType *)realloc(S.base,(S.stacksize+STACKINCREMENT*
其中的if(S.top-S.base >S.stacksize)是什么意思啊?
int Push(SqStack &S,SElemType e) //Push() subfunction { //Push element to SqStack if(S.top-S.base >S.stacksize) //Stack == full?{ S.base=(SElemType *)realloc(S.base,(S.stacksize+STACKINCREMENT*sizeof(SElemType))); if(!S.base) { cout
其中的if(S.top-S.base >S.stacksize)是什么意思啊?int Push(SqStack &S,SElemType e) //Push() subfunction { //Push element to SqStack if(S.top-S.base >S.stacksize) //Stack == full?{ S.base=(SElemType *)realloc(S.base,(S.stacksize+STACKINCREMENT*
你给的代码不全,SqStack 的内容这里根本看不到,所以也不好说什么!