Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#include
#include
using namespace std; int main() { // Create a queue of strings queue
cars; // Add elements to the queue cars.push("Volvo"); cars.push("BMW"); cars.push("Ford"); cars.push("Mazda"); // Get the size of the queue cout << cars.size(); return 0; }
4