Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main()
- {
- string from, to;
- std::cin>>from>>to;
- ifstream is (from.c_str());
- istream_iterator<string> ii(is);
- istream_iterator<string> eos;
- std::vector <string> my_vector(ii,eos);
- sort(my_vector.begin(),my_vector.end());
- ofstream os (to.c_str());
- ostream_iterator<string> oo(os);
- copy(victor.begin(),my_vector.end(),oo);
- return !is.eof()||! os;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement