SHARE
TWEET

Untitled

a guest May 22nd, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Board::Board(std::vector<std::vector<int>> board1, std::vector<int> freeElements1, int visina1, int sirina1)
  2. {
  3.     visina = visina1;
  4.     sirina = sirina1;
  5.     for (int i = 0; i < visina; i++) {
  6.         std::vector<int> br = std::vector<int>(sirina);
  7.         std::vector<int> tmp = board1[i];
  8.         for (int j = 0; j < sirina; j++) {
  9.             br[j] = tmp[j];
  10.         }
  11.         board.push_back(br);
  12.     }
  13.     freeElements = std::vector<int>(sirina);
  14.     for (int i = 0; i < sirina; i++) {
  15.         freeElements[i] = freeElements1[i];
  16.     }
  17.  
  18. }
  19. Board::Board(){}
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