Write a c++ program in which you use STL queueand input as
many characters into it as the user wants.Then call
a function which recursively calls dequeue on
the queue till it is empty.After returninh from your
recursive function confirm that your queue is
empty.Note
that the STL queue uses the function push() and pop()
for
enqueuand dequeue.Your recursive function should be set
up
as follows so it is working on the same queue in
subsequent
calls: bool rec(queue<char>&input)
Write a c++ program in which you use STL queueand input as many characters into it as the user wants.Then call a functio
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am