本帖最后由 jhq999 于 2022-1-24 08:54 编辑 int main()
{
char ch[12][20]={
{0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,'@',0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20},
{0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,'/',0x20,'\\',0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20},
{0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,'*',0x20,'*' ,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20},
{0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,'*',0x20,'*' ,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20},
{0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,'*',0x20,'*' ,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20},
{0x20,0x20,0x20,0x20,'*' ,0x20,'*' ,0x20,'*',0x20,'*' ,0x20,'*' ,0x20,'*' ,0x20,0x20,0x20,0x20,0x20},
{0x20,0x20,'*' ,0x20,'*' ,0x20,'*' ,0x20,'*',0x20,'*' ,0x20,'*' ,0x20,'*' ,0x20,'*' ,0x20,0x20,0x20},
{'*' ,0x20,'*' ,0x20,'*' ,0x20,'*' ,0x20,'*',0x20,'*' ,0x20,'*' ,0x20,'*' ,0x20,'*' ,0x20,'*' ,0x20},
{0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,'*',0x20,'*' ,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20},
{0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,'*',0x20,'*' ,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20},
{0x20,0x20,0x20,0x20,0x20,0x20,'*' ,0x20,'*',0x20,'*' ,0x20,'*' ,0x20,0x20,0x20,0x20,0x20,0x20,0x20},
{0x20,0x20,0x20,0x20,'*' ,0x20,'*' ,0x20,'*',0x20,'*' ,0x20,'*' ,0x20,'*' ,0x20,0x20,0x20,0x20,0x20}
};
for (int i = 0; i < 12; i++)
{
for (int j = 0; j < 19; j++)
{
printf("%c",ch[i][j]);
}
printf("\n");
}
return 0;
}
int main()
{
char ch[12][20]={
{0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,'@',0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0xa},
{0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,'/',0x20,'\\',0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0xa},
{0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,'*',0x20,'*' ,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0xa},
{0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,'*',0x20,'*' ,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0xa},
{0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,'*',0x20,'*' ,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0xa},
{0x20,0x20,0x20,0x20,'*' ,0x20,'*' ,0x20,'*',0x20,'*' ,0x20,'*' ,0x20,'*' ,0x20,0x20,0x20,0x20,0xa},
{0x20,0x20,'*' ,0x20,'*' ,0x20,'*' ,0x20,'*',0x20,'*' ,0x20,'*' ,0x20,'*' ,0x20,'*' ,0x20,0x20,0xa},
{'*' ,0x20,'*' ,0x20,'*' ,0x20,'*' ,0x20,'*',0x20,'*' ,0x20,'*' ,0x20,'*' ,0x20,'*' ,0x20,'*' ,0xa},
{0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,'*',0x20,'*' ,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0xa},
{0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,'*',0x20,'*' ,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0xa},
{0x20,0x20,0x20,0x20,0x20,0x20,'*' ,0x20,'*',0x20,'*' ,0x20,'*' ,0x20,0x20,0x20,0x20,0x20,0x20,0xa},
{0x20,0x20,0x20,0x20,'*' ,0x20,'*' ,0x20,'*',0x20,'*' ,0x20,'*' ,0x20,'*' ,0x20,0x20,0x20,0x20,0x0}
};
int i=0;
while((*ch)[i])
{
printf("%c",(*ch)[i]);
i++;
}
return 0;
}
|