#include "stdafx.h"
#include "iostream"
#include "time.h"
#include
#include
#include
using namespace std;
#define wide 49
#define gao 24
#define high 6
int yanhua[gao][wide],hang,lie,i,j,temp,pc,flag;
char ch;
////////////////////////////
void SS()
{
void printchar();
int midw1,midw,midw2;
srand((int)time(NULL));
for(hang=gao;hang>=high;hang--)//
{
midw=wide/2+pc*2;
midw1=wide-pc*6;
midw2=wide/2-pc*6;
yanhua[gao][midw]=10;
yanhua[gao][midw1]=10;
yanhua[gao][midw2]=10;
system("cls");//
printchar();
if(hanghang;temp--)
{
if(temp<=hang+5)
{
yanhua[temp][midw]=20;//
yanhua[temp][midw1]=20;
yanhua[temp][midw2]=20;
}
else
{
yanhua[temp][midw]=0;//
yanhua[temp][midw1]=0;
yanhua[temp][midw2]=0;
}
}
yanhua[hang+1][midw]=10;//
yanhua[hang+1][midw1]=10;
yanhua[hang+1][midw2]=10;
}
if(hang==5)
{
int temp;
for(temp=gao;temp>hang;temp--)yanhua[temp][midw]=0;
yanhua[hang+1][midw]=10;
}
Sleep(10);
}
}
///////////////////////////////
void BZ()
{
void printchar();
void randnum();
for(temp=1;temp<=3;temp++)
{
randnum();
system("cls");
printchar();
Sleep(40);
}
for(i=0;i=1;temp--)
{
switch(temp)
{
case 1:
for(i=2;i<=15;i++)
{
for(j=wide/2;j<=wide/2+1;j++)yanhua[i][j]=1;
}break;
case 2:
for(i=2;i<=15;i++)
{
switch(i)
{
case 2:case 3:case 8:case 9:case 14:case 15:
for(j=wide/2-7;j<=wide/2+8;j++)yanhua[i][j]=1;break;
case 4:case 5:case 6:case 7:
for(j=wide/2+7;j<=wide/2+8;j++)yanhua[i][j]=1;break;
default:
for(j=wide/2-7;j<=wide/2-6;j++)yanhua[i][j]=1;break;
}
}break;
case 3:
for(i=2;i<=15;i++)
{
switch(i)
{
case 2:case 3:case 8:case 9:case 14:case 15:
for(j=wide/2-7;j<=wide/2+8;j++)yanhua[i][j]=1;break;
default:
for(j=wide/2+7;j<=wide/2+8;j++)yanhua[i][j]=1;break;
}
}break;
}
printchar();
Sleep(1000);
for(i=0;i=0;j--)
{
switch(yanhua[i][j])
{
case 56:
{
cout<