cell.cpp
来自「使用MFC写的一个解数独的程序」· C++ 代码 · 共 41 行
CPP
41 行
// Cell.cpp: implementation of the CCell class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Sudu.h"
#include "Cell.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CCell::CCell()
{
value=0;
testvalue=0;
// num=new int [10];
memset(num,1,sizeof(int)*10);
num[0]=1;
}
CCell::~CCell()
{
// delete [] num;
}
void CCell::initCell()
{
for(int i=1;i<10;i++)
{
num[i]=i;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?