Guest User

Untitled

a guest
Oct 21st, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. using namespace std;
  4. int main(){
  5. string x; int j=0;
  6. ofstream output; ifstream input,input2;
  7. string something,word;
  8. string longest = "";
  9. input.open("something");
  10. input2.open("word");
  11. while(getline(input, something)) {
  12.  
  13. x=x+something;
  14.  
  15.  
  16. }
  17. input.close();
  18. while(getline(input2, word)){
  19.  
  20.  
  21.  
  22.  
  23. }
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30. return 0;
  31. }
Add Comment
Please, Sign In to add comment