Using the class queue in the Standard Template Library, write a C++ program that uses the queue class to store and manipulate fl oating point numbers. The class queue has the following methods that you can use:
queue(); // Default constructor
bool empty() const ; // Tests whether the queue is empty
void push(const Item Type& new Entry); // Adds new Entry to the back of the queue
void pop(); // Removes the front of the queue
Item Type& front(); // Returns a reference to the front of the queue
To access queue class , use the following include statement:
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here