diff --git "a/Algorithms/\347\272\277\346\200\247\347\273\223\346\236\204/\346\240\210/Stack.cpp" "b/Algorithms/\347\272\277\346\200\247\347\273\223\346\236\204/\346\240\210/Stack.cpp" index 068d7d7..263cfa2 100644 --- "a/Algorithms/\347\272\277\346\200\247\347\273\223\346\236\204/\346\240\210/Stack.cpp" +++ "b/Algorithms/\347\272\277\346\200\247\347\273\223\346\236\204/\346\240\210/Stack.cpp" @@ -12,12 +12,12 @@ Stack::Stack() bool Stack::isEmpty() const { - return _top >= 0; + return _top >! 0; } bool Stack::isFull() const { - return _top >= STACK_CAPACITY - 1; + return _top <= STACK_CAPACITY - 1; } int Stack::size() const