Advertisement
Guest User

queue.h

a guest
Jun 26th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. #pragma once
  2.  
  3. #include <iostream>
  4. #include <string>
  5.  
  6. using namespace std;
  7.  
  8. struct Node
  9. {
  10.     string x;
  11.     Node *Next;
  12. };
  13.  
  14. //err = 1 - очередь пуста
  15. class queue
  16. {
  17.     Node *Head, *Tail;
  18. private:
  19.         int err = 0;
  20.         void ShowError(int err);
  21. public:
  22.         int *mss;
  23.         int i = 0;
  24.         queue() :Head(NULL), Tail(NULL) {};
  25.         ~queue();
  26.         void Add(string x);
  27.         void pop();
  28.         void del();
  29.         void copy(queue &que2);
  30.         bool empty();
  31.         string front();
  32.         void front_pop(string & y);
  33.         queue(queue &obj);
  34.  
  35. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement