.front() c++ code example
Example: .front() c++
// queue::front
#include // std::cout
#include // std::queue
int main ()
{
std::queue myqueue;
myqueue.push(77);
myqueue.push(16);
cout << myqueue.front();
myqueue.front() -= myqueue.back(); // 77-16=61
std::cout << "myqueue.front() is now " << myqueue.front() << '\n';
return 0;
}