Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string typedString, actualString, document1 = "A.txt", document2 = "Dictionary.txt";
- ifstream observeDoc, actualDoc;
- observeDoc.open(document1);
- actualDoc.open(document2);
- while (observeDoc.is_open())
- {
- while (true)
- {
- observeDoc >> typedString;
- if (observeDoc.eof()) break;
- cout << typedString << endl;
- while (true)
- {
- actualDoc >> actualString;
- if (actualDoc.eof())
- {
- actualDoc.open(document1);
- break;
- }
- cout << 't' << actualString << endl;
- }
- }
- if (observeDoc.eof()) break;
- }
- observeDoc.close();
- actualDoc.close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement