main()
{
char st2[] ={73,32,76,79,86,69,32,89,79,85,0};
printf("%s", st2);
}
或者 下面这个,这个适用井号拼出来的,呵呵,肯定一眼看不出来
#include "stdioh"
main()
{
int str[10][8] = {
0x3c,0x18,0x18,0x18,0x18,0x18,0x18,0x3c,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x7e,
0x3c,0x42,0x42,0x42,0x42,0x42,0x42,0x3c,
0x42,0x42,0x42,0x24,0x24,0x24,0x18,0x18,
0x7e,0x02,0x02,0x3e,0x02,0x02,0x02,0x7e,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x42,0x42,0x24,0x24,0x18,0x18,0x18,0x18,
0x3c,0x42,0x42,0x42,0x42,0x42,0x42,0x3c,
0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x3c};
int loop, loop2,loop3,tmp;
for(loop = 0;loop<8;loop++)
{
for(loop2 =0; loop2 < 10; loop2++ )
{
if (str[loop2][0]==0)
{
printf(" ");
}
else
{
tmp = str[loop2][loop];
for(loop3=0; loop3 <8; loop3++)
{
if(tmp%2 !=0)
{putchar('#');}
else
{putchar(' ');}
tmp/=2;
}
}
}
putchar('\n');
}
printf("end");
getchar();
}
欢迎分享,转载请注明来源:表白网
评论列表(0条)