Advertisement
Korotkodul

крестики_нолики

Nov 24th, 2024 (edited)
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.58 KB | None | 0 0
  1. #include <iostream>
  2. #include <sstream>
  3. #include <stdexcept>
  4. #include <string>
  5.  
  6. #include <Graph_lib/Graph.h>
  7. #include <Graph_lib/Simple_window.h>
  8.  
  9. //using namespace Graph_lib;
  10.  
  11. struct cell {
  12.   int x;
  13.   int y;
  14.   std::string state;
  15.   cell () { this->x = 0; this->y = 0; this->state = "free"; }
  16.   cell (int X, int Y) {this->x = X; this->y = Y; this->state = "free";}
  17. };
  18.  
  19. int main ()
  20. try
  21. {
  22.  
  23. }
  24. catch (std::exception& e)
  25. {
  26.   std::cerr << e.what() << std::endl;
  27.   return 1;
  28. }
  29. catch (...)
  30. {
  31.   std::cerr << "Oops, something went wrong..." << std::endl;
  32.   return 2;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement