Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. string typedString, actualString, document1 = "A.txt", document2 = "Dictionary.txt";
  2. ifstream observeDoc, actualDoc;
  3.  
  4. observeDoc.open(document1);
  5. actualDoc.open(document2);
  6.  
  7. while (observeDoc.is_open())
  8. {
  9. while (true)
  10. {
  11. observeDoc >> typedString;
  12. if (observeDoc.eof()) break;
  13. cout << typedString << endl;
  14.  
  15. while (true)
  16. {
  17. actualDoc >> actualString;
  18. if (actualDoc.eof())
  19. {
  20. actualDoc.open(document1);
  21. break;
  22. }
  23. cout << 't' << actualString << endl;
  24. }
  25. }
  26. if (observeDoc.eof()) break;
  27. }
  28.  
  29. observeDoc.close();
  30. actualDoc.close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement