Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- #include <queue>
- using namespace std;
- int main()
- {
- ios_base::sync_with_stdio(false);
- queue<int> q;
- q.push(10);
- q.push(20);
- q.push(20);
- q.push(30);
- q.push(40);
- q.push(50);
- while(!q.empty()) {
- cout << q.front() << endl;
- q.pop();
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement