Mikhail-Podbolotov

Untitled

May 1st, 2024
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.80 KB | None | 0 0
  1.  
  2. #include <iostream>
  3. #include "library.h"
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     ifstream file1("input.txt");
  9.     ifstream file3("text.txt");
  10.     ofstream file2("output.txt");
  11.     List ArrayReserv;
  12.     string Text;
  13.     Text = ReadText(file3);
  14.     //cout << Text;
  15.     int wordCount = CountWord(Text);
  16.     //cout << wordCount << endl;
  17.     string* DivisionText = new string[wordCount];
  18.     DivisionText = TextDivision(Text, wordCount);
  19.    
  20.     /*
  21.     for (int i = 0; i < wordCount; i++) {
  22.         cout << DivisionText[i] << endl;
  23.     }
  24.     */
  25.     ArrayReserv.Read(file1);
  26.     ArrayReserv.Count(DivisionText, wordCount);
  27.     //ArrayReserv.BubleSort();
  28.     //ArrayReserv.Print(file2);
  29.     List SortedReserv = ArrayReserv.InsertSort();
  30.     SortedReserv.Print(file2);
  31.     cout << "COMPLETE!";
  32. }
Add Comment
Please, Sign In to add comment