第 1 步:std::stack 里有三个
第 2 步:top():只看栈顶,不拿走
第 3 步:pop():拿走了,但不给你值
第 4 步:想要值:先 top() 再 pop()
std::stack 的 pop() 返回的是【0】。
std::stack
pop()
全部评论