Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "library.h"
- using namespace std;
- int main()
- {
- ifstream file1("input.txt");
- ifstream file3("text.txt");
- ofstream file2("output.txt");
- List ArrayReserv;
- string Text;
- Text = ReadText(file3);
- //cout << Text;
- int wordCount = CountWord(Text);
- //cout << wordCount << endl;
- string* DivisionText = new string[wordCount];
- DivisionText = TextDivision(Text, wordCount);
- /*
- for (int i = 0; i < wordCount; i++) {
- cout << DivisionText[i] << endl;
- }
- */
- ArrayReserv.Read(file1);
- ArrayReserv.Count(DivisionText, wordCount);
- //ArrayReserv.BubleSort();
- //ArrayReserv.Print(file2);
- List SortedReserv = ArrayReserv.InsertSort();
- SortedReserv.Print(file2);
- cout << "COMPLETE!";
- }
Add Comment
Please, Sign In to add comment