Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <sstream>
- #include <stdexcept>
- #include <string>
- #include <Graph_lib/Graph.h>
- #include <Graph_lib/Simple_window.h>
- //using namespace Graph_lib;
- struct cell {
- int x;
- int y;
- std::string state;
- cell () { this->x = 0; this->y = 0; this->state = "free"; }
- cell (int X, int Y) {this->x = X; this->y = Y; this->state = "free";}
- };
- int main ()
- try
- {
- }
- catch (std::exception& e)
- {
- std::cerr << e.what() << std::endl;
- return 1;
- }
- catch (...)
- {
- std::cerr << "Oops, something went wrong..." << std::endl;
- return 2;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement