Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- queue< int > q;
- q.push( 100 ); // inserting 100
- q.push( 101 ); // inserting 101
- q.push( 102 ); // inserting 102
- while( !q.empty() ) {
- cout << q.front() << endl; // printing the front
- q.pop(); // removing that one
- }
Advertisement
Add Comment
Please, Sign In to add comment