Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. void save_in_file(const vector<Marsh>& marsh_list) {
  2. ofstream file("lab2.txt");
  3. for (Marsh unit : marsh_list) {
  4. file << unit.get_marsh_text() << endl;
  5. }
  6. file.close();
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement