Mikhail-Podbolotov

Untitled

May 1st, 2024
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.61 KB | None | 0 0
  1. #pragma once
  2. #include <fstream>
  3. #include <string>
  4. using namespace std;
  5. struct Reserv {
  6.     string word;
  7.     Reserv* next = nullptr;
  8.     int count = 0;
  9. };
  10. class List {
  11. private:
  12.     Reserv* Start;
  13.     Reserv* End;
  14. public:
  15.     List();
  16.     ~List();
  17.     void Print(std::ofstream& file2);
  18.     void Add(std::string cur);
  19.     void Read(std::ifstream& file1);
  20.     Reserv* find(std::string cur);
  21.     void Count(string* Array, int CountWord);
  22.     void BubleSort();
  23.     List InsertSort();
  24. };
  25. string* TextDivision(string input, int wordCount);
  26. string ReadText(std::ifstream& file3);
  27. int CountWord(string input);
Add Comment
Please, Sign In to add comment