Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- using namespace std;
- #include <fstream>
- struct Node {
- int number;
- Node* Previos = nullptr;
- };
- class Stack {
- private:
- Node* Top;
- public:
- Stack();
- ~Stack();
- void push(int n);
- bool isEmpty();
- int pop();
- };
- class Queue {
- private:
- Stack stack1;
- Stack stack2;
- public:
- void enter(int n);
- int Delete();
- bool isEmpty();
- void Read(std::ifstream& file1);
- void Print(std::ofstream& file2);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement