VC++写的程序 帮忙加点东西 谢谢

程序是这样的;#include"stdio.h"main(){intstr[10][8]={0x3c,0x18,0x18,0x18,0x18,0x18,0x18,0x3c... 程序是这样的;
#include "stdio.h"
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();
}

最后会显示 #拼出来的 I LOVE YOU
我现在前面加“超超”两字 也要用#拼出来的 要的效果是
超超
I LOVE YOU

希望大家帮帮忙
展开
 我来答
本大侠没名字
2013-01-21
知道答主
回答量:25
采纳率:0%
帮助的人:6.2万
展开全部
#include "stdio.h"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();}
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式