Advertisement
Guest User

main.cpp

a guest
Nov 5th, 2012
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include "List.h"
  2.  
  3. int main()
  4. {
  5. Stack<int> n;
  6. Queue<char> q;
  7.  
  8. n.push_front(1);
  9. n.push_front(4);
  10. std::cout << n.pop_front() << std::endl;
  11. q.push_back('a');
  12. q.push_back('b');
  13. std::cout << q.pop_back() << std::endl;
  14.  
  15.  
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement