Update the chapter of stack and queue.

This commit is contained in:
krahets
2023-03-12 04:14:36 +08:00
parent 050b922f8a
commit 82bbdd444d
5 changed files with 27 additions and 35 deletions

View File

@ -26,7 +26,7 @@ int main() {
cout << "栈顶元素 top = " << top << endl;
/* 元素出栈 */
stack.pop();
stack.pop(); // 无返回值
cout << "出栈元素 pop = " << top << ",出栈后 stack = ";
PrintUtil::printStack(stack);