generator/sudokuGen.cpp
// START: Get grid as string in row major order
Get grid as string in row major order
Get grid as string in row major order
string Sudoku::getGrid()
{
  string s = "";
  for(int row_num=0; row_num<9; ++row_num)
  {
    for(int col_num=0; col_num<9; ++col_num)
    {
      s = s + to_string(grid[row_num][col_num]);
    }
  }
  return s;
}
string Sudoku :: getGrid ( ) { string s = " " ; for ( int row_num = 0 ; row_num < 9 ; ++ row_num ) { for ( int col_num = 0 ; col_num < 9 ; ++ col_num ) { s = s + to_string ( grid [ row_num ] [ col_num ] ) ; } } return s ; }
START: Get grid as string in row major order
START : Get grid as string in row major order