You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
3.4 KiB

#ifndef SudokuMatrix_h
#define SudokuMatrix_h
#include <stdlib.h>
#include <stdbool.h>
/**
* @brief
* C with Class!
* CreateMatrix
* C
* C
* DeleteMatrix
* 便
*/
typedef struct SudokuMatrix{
int matrix[9][9];
} SudokuMatrix;
/**
* @brief Create a Matrix object
*
* @return SudokuMatrix*
*/
SudokuMatrix* CreateMatrix();
/**
* @brief Create a Matrix From Array object
*
* @param matrix
* @return SudokuMatrix*
*/
SudokuMatrix* CreateMatrixFromArray(int matrix[9][9]);
/**
* @brief
* SudokuMatrix
*
* @param matrix
*/
void DeleteMatrix(SudokuMatrix *matrix);
/**
* @brief
*
* PrintMatrix.c
*
* @param matrix
*/
void PrintMatrix(SudokuMatrix *matrix);
/**
* @brief 0-9
* x1<=x<=9
* xx[1,9] 0
* 1-3 1-9 9 4-6 7-9
* RandomMatrix.c
*
*
* @param matrix
*/
void RandomMatrix(SudokuMatrix *matrix);
/**
* @brief
* 1-9 01
* 1-9 01
* 1-9 3x3 01;
* /
* 使
*
* @param matrix
* @return true
* @return false
*/
bool JudgeMatrix(SudokuMatrix *matrix);
/**
* @brief
*
* result result
*
* @param matrix
* @param result
* @return true
* @return false
*/
bool SolveMatrix(SudokuMatrix *matrix, SudokuMatrix *result);
#endif // SudokuMatrix_h