谁帮我用C语言遍一个程序,运行结果为I LOVE YOU

谁帮我用C语言遍一个程序,运行结果为I LOVE YOU,第1张

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();
}

欢迎分享,转载请注明来源:表白网

原文地址:https://h5.hunlipic.com/biaobai/3404925.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2024-02-27
下一篇2024-02-27

发表评论

登录后才能评论

评论列表(0条)

    保存