该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
#include "stdio.h"
show_name(int a);
main()
{
int i,j,k,flag=0;
static char a,b,c,d,e,f;
static int haha[65],hello[33];
for(i=1;i<65;i++)
haha[i]=i;//赋值完成
for(j=1;j<33;j++)
hello[j]=2*j-1;
for(j=1;j<33;j++)
{
show_name(hello[j]);
printf("\t");
if(j%4==0&&j>0)
printf("\n\n");
}
printf("有你想好的那个人吗?是输入(Y/y),其他输入表示没有\n");
scanf("%c",&a);
if(a=='Y'||a=='y')
flag=flag+1;//
for(j=1;j<33;j++)
{
if(j%2)
hello[j]=2*j;
else
hello[j]=hello[j-1]+1;
}
for(j=1;j<33;j++)
{
//printf("%d",hello[j]);
show_name(hello[j]);
printf("\t");
if(j%4==0&&j>0)
printf("\n\n");
}
printf("有你想好的那个人吗?是输入(Y/y),其他输入表示没有\n");
scanf("%c",&a);
if(a=='Y'||a=='y')
flag+=2;//
for(j=1;j<33;j++)
{
if(j%4==1)
hello[j]=2*j+2;
else
hello[j]=hello[j-1]+1;
}
for(j=1;j<33;j++)
{
//printf("%d",hello[j]);
show_name(hello[j]);
printf("\t");
if(j%4==0&&j>0)
printf("\n\n");
}
printf("有你想好的那个人吗?是输入(Y/y),其他输入表示没有\n");
scanf("%c",&c);
if(c=='Y'||c=='y')
flag+=4;//
for(j=1;j<33;j++)
{
if(j%8==1)
hello[j]=2*j+6;
else
hello[j]=hello[j-1]+1;
}
for(j=1;j<33;j++)
{
//printf("%d",hello[j]);
show_name(hello[j]);
printf("\t");
if(j%4==0&&j>0)
printf("\n\n");
}
printf("有你想好的那个人吗?是输入(Y/y),其他输入表示没有\n");
scanf("%c",&d);
if(d=='Y'||d=='y')
flag+=8;//
for(j=1;j<33;j++)
{
if(j%16==1)
hello[j]=2*j+14;
else
hello[j]=hello[j-1]+1;
}
for(j=1;j<33;j++)
{
//printf("%d",hello[j]);
show_name(hello[j]);
printf("\t");
if(j%4==0&&j>0)
printf("\n\n");
}
printf("有你想好的那个人吗?是输入(Y/y),其他输入表示没有\n");
scanf("%c",&e);
if(e=='Y'||e=='y')
flag+=16;//
for(j=1;j<33;j++)
{
hello[j]=31+j;
}
for(j=1;j<33;j++)
{
//printf("%d",hello[j]);
show_name(hello[j]);
printf("\t");
if(j%4==0&&j>0)
printf("\n\n");
}
printf("有你想好的那个人吗?是输入(Y/y),其他输入表示没有\n");
scanf("%c",&f);
if((f=='Y')||(f=='y'))
flag+=32;//
printf("如果不出意外,你想到的明星应该是:\n");
show_name(flag);
printf("\n");
}
show_name(int a)
{
switch(a)
{
case 1: printf("柳岩\t");break;
case 2: printf("杨幂\t");break;
case 3: printf("刘诗诗\t");break;
case 4: printf("林心如\t");break;
case 5: printf("曹颖\t");break;