Advertisement
Guest User

Untitled

a guest
Apr 4th, 2020
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <iostream>
  2. #include "Queue.h"
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     linked_q q2;
  8.     q2.add_q(20);
  9.     q2.add_q(30);
  10.     q2.add_q(40);
  11.     q2.add_q(50);
  12.     cout << "the count before removing is: " << q2.getcount() << endl;
  13.     q2.remoove_q();
  14.     cout << "the count after removing is: " << q2.getcount() << endl;
  15.    
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement