diff --git a/codes/cpp/chapter_stack_and_queue/linkedlist_stack.cpp b/codes/cpp/chapter_stack_and_queue/linkedlist_stack.cpp index 3fbfd0b..15eec80 100644 --- a/codes/cpp/chapter_stack_and_queue/linkedlist_stack.cpp +++ b/codes/cpp/chapter_stack_and_queue/linkedlist_stack.cpp @@ -11,10 +11,6 @@ class LinkedListStack { private: list list; public: - LinkedListStack() { - // 初始化空链表 - list.clear(); - } /* 获取栈的长度 */ int size() { return list.size();