}
for (i = 0;i < 4;i++)
for (j = 0;j < 4;j++)
{
ColNext.a[i][j] = 0;
ColNow.a [i][j] = 0;
}本文来自优.文~论^文·网原文请找腾讯324-9114
int nTemp = rand()%256%7;//rand a type for the first time
switch(nTemp)
{
case 0:
ColNext.a[0][0] = 1;ColNext.a[0][1] = 1;ColNext.a[1][0] = 1;ColNext.a[1][1] = 1;break;/*
1 1
1 1
*/
case 1:
ColNext.a[0][0] = 1;ColNext.a[1][0] = 1;ColNext.a[2][0] = 1;ColNext.a[3][0] = 1;break;/*
1 1 1 1
*/
case 2:
ColNext.a[0][0] = 1;ColNext.a[0][1] = 1;ColNext.a[1][0] = 1;ColNext.a[2][0] = 1;break;/*
1 1
1
1
*/
case 3:
ColNext.a[0][0] = 1;ColNext.a[0][1] = 1;ColNext.a[1][1] = 1;ColNext.a[2][1] = 1;break;/*
1 1
1
1
*/
case 4:
ColNext.a[0][0] = 1;ColNext.a[1][0] = 1;ColNext.a[1][1] = 1;ColNext.a[2][1] = 1;break;/*
1
1 1
1
*/
case 5:
土木工程学概论论文 ColNext.a[0][1] = 1;ColNext.a[1][0] = 1;ColNext.a[1][1] = 1;ColNext.a[2][0] = 1;break;/*
1
1 1
1
*/
case 6:
ColNext.a[0][0] = 1;ColNext.a[0][1] = 1;ColNext.a[0][2] = 1;ColNext.a[1][1] = 1;break;/*
上一页 [1] [2] [3] [4]
vc++俄罗斯方块源程序 第4页下载如图片无法显示或论文不完整,请联系qq752018766