mirror of
https://github.com/krahets/hello-algo.git
synced 2025-07-13 02:38:34 +08:00
Update stack and queue.
This commit is contained in:
@ -35,7 +35,8 @@ int main(){
|
||||
cout << "队列长度 size = " << size << endl;
|
||||
|
||||
/* 判断队列是否为空 */
|
||||
bool isEmpty = queue.empty();
|
||||
bool empty = queue.empty();
|
||||
cout << "队列是否为空 = " << empty << endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user