Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Maze::Print_maze(std::string file = "no!ne") const{
- if (file != "no!ne")
- std::ofstream outfile(file);
- for (int i = 0; i < Map.size(); i++)
- {
- for (int j = 0; j < Map[i].size(); j++)
- {
- if (file == "no!ne")
- std::cout << Map[i][j];
- else
- outfile << Map[i][j];
- }
- if (file == "no!ne")
- std::cout << std::endl;
- else
- outfile << std::endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment