Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void save_in_file(const vector<Marsh>& marsh_list) {
- ofstream file("lab2.txt");
- for (Marsh unit : marsh_list) {
- file << unit.get_marsh_text() << endl;
- }
- file.close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement