Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <queue>
- using namespace std;
- int main() {
- queue<int> q;
- q.push(1);
- q.push(2);
- q.push(3);
- cout << "Size: " << q.size() << endl;
- cout << q.front() << endl;
- q.pop();
- cout << "Size: " << q.size() << endl;
- cout << q.front() << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement