#include
void main()
{int r=0;
int c=0;
int star_one=10;
for(r=0;r<=star_one*9;r+=2)
{ for(c=0;c<=star_one*8;c++)
{if((r%star_one==0 || c%star_one==0)&&c%2==0 && (r<=star_one*4 || r>=star_one*4+star_one) || (r>=star_one*4 && r<=star_one*4+star_one && (c==0 || c==star_one*8)))
{printf("%c",'*');}
else
{printf("%c",' ');}
}
printf("\n");
}
}
#include
void main()
{
void hengxing();
void shuxing();
void shuxing1();
int i,n;
hengxing();
for(i=1;i<26;i++)printf(" ");
printf("中国象棋\n");
hengxing();
printf("\n\n\n\n");
hengxing();
i=1;n=0;
while(1)
{
if(n==12)break;
if(i==4){hengxing();i=1;}
else
{
shuxing() ;
i++;n++;
}
}
hengxing();
for(i=0;i<3;i++)
shuxing1();
hengxing();
i=1;n=0;
while(1)
{
if(n==12)break;
if(i==4){hengxing();i=1;}
else
{
shuxing();
i++;n++;
}
}
hengxing();
}
void hengxing()
{
int i;
for(i=1;i<=32;i++)
printf("* ");printf("*");
printf("\n");
}
void shuxing()
{
int i,m=1;
printf("* ");
for(i=1;i<=65;i++)
{
if(m==7){printf("*");m=1;}
else
{printf(" ");
m++;}
}
printf("\n");
}
void shuxing1()
{
int i;
for(i=1;i<=65;i++)
{
if(i==1||i==65)printf("*");
else printf(" ");
}
printf("\n");
}
#include
void
main()
{int
r=0;
int
c=0;
int
star_one=10;
for(r=0;r<=star_one*9;r+=2)
{
for(c=0;c<=star_one*8;c++)
{if((r%star_one==0
||
c%star_one==0)&&c%2==0
&&
(r<=star_one*4
||
r>=star_one*4+star_one)
||
(r>=star_one*4
&&
r<=star_one*4+star_one
&&
(c==0
||
c==star_one*8)))
{printf("%c",'*');}
else
{printf("%c",'
');}
}
printf("\n");
}
}