热门

最新

红包

立Flag

投票

同城

我的

发布
qq_62423835
费列罗大帝
3 年前
trueqq_62423835

忙着肝stm32还有期中考,现在做梦都想敲python

大学生的日常
CSDN App 扫码分享
分享
2
2
打赏
  • 复制链接
  • 举报
下一条:
int GetHead(Queue Q, DataType *e) { int i; if(Q.stack_out->top==-1) { if(Q.stack_in->top==-1) return 0; else while(Q.stack_in->top!=-1) {Pop(Q.stack_in,&i); Push(Q.stack_out,i);} GetTop(*(Q.stack_out),e); return 1; } else GetTop(*(Q.stack_out),e); return 1; } int GetTop(Stack S, DataType *e) { if(S.top==-1) { return 0; } else { *e=S.data[S.top]; return 1; } }
立即登录