SHARE
TWEET

Untitled

a guest Dec 12th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Cell& operator[](std::pair<int, int> pos) {
  2.             int x = pos.first, y = pos.second;
  3.             if (x >= 0 && x < n || y >= 0 && y < n) {
  4.                 return Board[pos.first-1][pos.second-1];
  5.             }
  6.             else {
  7.                 cout << "Illegal[]" << std::endl;
  8.             }
  9.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top