How to create vector of queues, and how do I add elements?
I want to be able to do the following:
  -insert a new queue into the vector
  -insert a new element into a queue
   that's inside the vector.
:D
vector<queue<int>> vec; // vector of queues
vec.push_back(queue<int>()); // add a queue
vec[0].push(1); // push 1 into queue number 0.
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With