Though the standard template library implements the queue with a container adapter, you can also implement it with a wrapping array. The challenge here is how to maintain the position of the head and the tail of the queue. This video will explain how to accomplish that.
You can learn more about the queue and other data structures in C++ Data Structures by James Helfrich: https://he.kendallhunt.com/product/c-...
0:00 Introduction
0:20 Four Implementation Options
0:41 Stacks vs. Queues
1:34 Wrapping Arrays
2:51 Wrapping Array Indices
4:02 Example 12.2
6:26 Example 12.4
Sur cette page du site, vous pouvez voir la vidéo en ligne C++ Queue's - Wrapping Array Implementation durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur C++ Data Structures 18 novembre 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 302 fois et il a aimé 11 téléspectateurs. Bon visionnage!