Advertisement
Guest User

Sudoku

a guest
Oct 16th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.70 KB | None | 0 0
  1. #pragma once
  2. #include <iostream>
  3. #include <stdio.h>
  4. #include <fstream>
  5. #include <string>
  6. #include "node.h"
  7. #include "Sudoku.h"
  8.  
  9. using namespace std;
  10.  
  11. class node
  12. {
  13. public:
  14.     node();
  15.     ~node();
  16.  
  17. private:
  18.     int x;
  19.     int y;
  20.     node* prev;
  21.     char* val;
  22.     char arrint[9];
  23.     node* next;
  24.  
  25.     friend class Sudoku;
  26.  
  27. };
  28.  
  29.  
  30. class Sudoku
  31. {
  32. public:
  33.     Sudoku();
  34.     ~Sudoku();
  35.     node* head; node* tail;
  36.     void read_File(char TowD[9][9]);
  37.     void search(int x, int y, char TowD[9][9], char arr[9]);
  38.     void Store(int i, int j, char TowD[9][9], char chance[9]);
  39.     void solve(char towd[9][9]);
  40.     void addNode(char towd[9][9], int i, int j, char chance[9]);
  41.     void backTrack(char towd[9][9], int i, int j);
  42.  
  43. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement