Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <iostream>
- #include <string>
- using namespace std;
- struct Node
- {
- string x;
- Node *Next;
- };
- //err = 1 - очередь пуста
- class queue
- {
- Node *Head, *Tail;
- private:
- int err = 0;
- void ShowError(int err);
- public:
- int *mss;
- int i = 0;
- queue() :Head(NULL), Tail(NULL) {};
- ~queue();
- void Add(string x);
- void pop();
- void del();
- void copy(queue &que2);
- bool empty();
- string front();
- void front_pop(string & y);
- queue(queue &obj);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement