mirror of
https://gitee.com/yanmu_ym/cpp.git
synced 2026-02-07 19:43:15 +08:00
22 lines
355 B
C++
22 lines
355 B
C++
#ifndef _SUDOKU_BLOCK_H_
|
|
#define _SUDOKU_BLOCK_H_
|
|
|
|
////
|
|
// 数独行政区域类
|
|
class CBlock
|
|
{
|
|
static const int MAX_COUNT = 9;
|
|
|
|
public:
|
|
CBlock();
|
|
bool isValid() const;
|
|
bool isFull() const;
|
|
void print() const;
|
|
void push_back(point_value_t *point);
|
|
|
|
private:
|
|
int _count;
|
|
point_value_t *_numbers[MAX_COUNT];
|
|
};
|
|
|
|
#endif |