栈与队列理论基础:优化排版

This commit is contained in:
bqlin
2021-12-20 19:54:34 +08:00
parent 57af6f6a4b
commit 71ada4737a

View File

@ -67,7 +67,7 @@ deque是一个双向队列只要封住一段只开通另一端就可以实
我们也可以指定vector为栈的底层实现初始化语句如下
```
```cpp
std::stack<int, std::vector<int> > third; // 使用vector为底层容器的栈
```
@ -77,7 +77,7 @@ std::stack<int, std::vector<int> > third; // 使用vector为底层容器的栈
也可以指定list 为起底层实现初始化queue的语句如下
```
```cpp
std::queue<int, std::list<int>> third; // 定义以list为底层容器的队列
```