]> git.scottworley.com Git - slidingtile/blobdiff - sliding_tile_lib.cc
Promote Board to a class so it can have methods.
[slidingtile] / sliding_tile_lib.cc
index a4d522e6745a99507612540f9664ed3ab6f9a8ee..24642f1480cdc78c671afa16f3436c350e9b6164 100644 (file)
@@ -33,7 +33,7 @@ std::istream& operator>>(std::istream& is, Board& board) {
     }
     int numeric;
     is >> numeric;
-    board[i] = numeric;
+    board.board[i] = numeric;
   }
   return is;
 }