Program regarding Queue in C++
Follow is a program which uses built in function regarding queue in C++. This built in function make our work easy toward use queues in C++.
#include
using namespace std;
int main()
{
queue var;
var.push(1);
cout << var.front(); // print first value
cout << var.back(); // print last value
var.push(2);
var.pop(); // 1st value delete
int len = var.size();
}
there are a lot regarding other functions regarding Built-in Queue in C++.
-->