作业帮 > 综合 > 作业

其中的if(S.top-S.base >S.stacksize)是什么意思啊?

来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/09/20 17:33:21
其中的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)是什么意思啊?
你给的代码不全,SqStack 的内容这里根本看不到,所以也不好说什么!