From 30a115082b134c5301f179fa053bc5602dfa9b53 Mon Sep 17 00:00:00 2001 From: Yudong Jin Date: Mon, 28 Nov 2022 21:10:29 +0800 Subject: [PATCH] Update linkedlist_stack.cpp Remove constructor --- codes/cpp/chapter_stack_and_queue/linkedlist_stack.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/codes/cpp/chapter_stack_and_queue/linkedlist_stack.cpp b/codes/cpp/chapter_stack_and_queue/linkedlist_stack.cpp index 3fbfd0bd4..15eec8071 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();