Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <fstream>
- #include <string>
- using namespace std;
- struct Reserv {
- string word;
- int idx = 0;
- Reserv* next = nullptr;
- int count = 0;
- };
- class ListF {
- private:
- Reserv* Start;
- Reserv* End;
- public:
- ListF();
- ~ListF();
- void ReadF(fstream& FD);
- void ReadTextF(string);
- void AddWord(string);
- int LastIdx();
- Reserv* getStart();
- void PrintListF(fstream& FD);
- };
- string ReadText(std::ifstream& input);
- struct BD {
- string str;
- int idx = 0;
- BD* next = nullptr;
- };
- class ListB {
- private:
- BD* Start;
- BD* End;
- public:
- ListB();
- ~ListB();
- void ReadB(fstream&);
- void ReadTextB(string,ListF A);
- void AddWord(string);
- int LastIdx();
- void PrintListB(fstream&);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement