Advertisement
Guest User

Untitled

a guest
Mar 6th, 2017
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. fstream input("text1.txt");
  2.     string line;                                          
  3.     vector<string> lines;                            
  4.     while (getline(input, line))                        
  5.     {
  6.         lines.push_back(line);                        
  7.     }
  8.     vector<int>vec;
  9.     vector<char>::iterator v = lines.begin();
  10.  
  11.     while (*v = ' ')
  12.     {  
  13.         lines.pop_back(*v);
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement