adding stack implementation

This commit is contained in:
Jidong Xiao
2025-02-24 23:03:13 -05:00
committed by JamesFlare
parent b26d858b72
commit b724fb5a78
3 changed files with 73 additions and 0 deletions

View File

@@ -203,6 +203,10 @@ int main() {
You can compile and run this above [program](stack.cpp).
### 14.1.3 Stack Implementation
We have the stack implementation and test code here: [stack.h](stack.h), [stack_test.cpp](stack_test.cpp).
## 14.2 Additional STL Container Classes: Queues
- A queue is a linear data structure that follows the First-In-First-Out (FIFO) principle.