谁能帮我看看这段代码是什么意思?BYTE *CreateCircle( int r ){// create a circular element of radius rint nSize = (2*r+1)*(2*r+1);BYTE *pc,*pCircle = new BYTE[ nSize ];ZeroMemory( pCircle,nSize );int x = 0,y = r;int d = 3 - 2*r;while( x
来源:学生作业帮助网 编辑:六六作业网 时间:2025/01/31 08:49:07
谁能帮我看看这段代码是什么意思?BYTE *CreateCircle( int r ){// create a circular element of radius rint nSize = (2*r+1)*(2*r+1);BYTE *pc,*pCircle = new BYTE[ nSize ];ZeroMemory( pCircle,nSize );int x = 0,y = r;int d = 3 - 2*r;while( x
谁能帮我看看这段代码是什么意思?
BYTE *CreateCircle( int r )
{
// create a circular element of radius r
int nSize = (2*r+1)*(2*r+1);
BYTE *pc,*pCircle = new BYTE[ nSize ];
ZeroMemory( pCircle,nSize );
int x = 0,y = r;
int d = 3 - 2*r;
while( x
谁能帮我看看这段代码是什么意思?BYTE *CreateCircle( int r ){// create a circular element of radius rint nSize = (2*r+1)*(2*r+1);BYTE *pc,*pCircle = new BYTE[ nSize ];ZeroMemory( pCircle,nSize );int x = 0,y = r;int d = 3 - 2*r;while( x
申请一个(2*r+1)*(2*r+1)大小的空间来保存一个2*r+1大小的方阵的数据,在这个全是0的2*r+1方阵里用1标记出一个半径为r的圆形点阵.