如何修改程序导出结果?以及如何看到全部结果,我用的C语言编程软件是wintc,谢谢!
#include"stdio.h"main(){intA,B,C,D,E,F,G,H,I,J,K,L,M,N;printf("pleaseinputnumbers\n")...
#include "stdio.h"
main()
{ int A,B,C,D,E,F,G,H,I,J,K,L,M,N;
printf("please input numbers\n");
scanf("%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d",&A,&B,&C,&D,&E,&F,&G,&H,&I,&J,&K,&L,&M,&N);
printf("%2d %2d %2d %2d %2d %2d\n",A,B,C,E,I,M);
printf("%2d %2d %2d %2d %2d %2d\n",A,B,G,H,J,N);
printf("%2d %2d %2d %2d %2d %2d\n",A,C,D,J,L,M);
printf("%2d %2d %2d %2d %2d %2d\n",A,C,F,G,K,M);
printf("%2d %2d %2d %2d %2d %2d\n",A,D,H,I,K,N);
printf("%2d %2d %2d %2d %2d %2d\n",A,E,F,H,L,N);
printf("%2d %2d %2d %2d %2d %2d\n",B,C,D,F,H,M);
printf("%2d %2d %2d %2d %2d %2d\n",B,C,K,L,M,N);
printf("%2d %2d %2d %2d %2d %2d\n",B,D,G,I,J,K);
printf("%2d %2d %2d %2d %2d %2d\n",B,E,F,G,J,L);
printf("%2d %2d %2d %2d %2d %2d\n",C,D,E,G,M,N);
printf("%2d %2d %2d %2d %2d %2d\n",C,E,H,J,K,M);
printf("%2d %2d %2d %2d %2d %2d\n",C,F,I,J,M,N);
printf("%2d %2d %2d %2d %2d %2d\n",C,G,H,I,L,M);
printf("%2d %2d %2d %2d %2d %2d\n",D,E,F,I,K,L);
getch();
} 展开
main()
{ int A,B,C,D,E,F,G,H,I,J,K,L,M,N;
printf("please input numbers\n");
scanf("%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d",&A,&B,&C,&D,&E,&F,&G,&H,&I,&J,&K,&L,&M,&N);
printf("%2d %2d %2d %2d %2d %2d\n",A,B,C,E,I,M);
printf("%2d %2d %2d %2d %2d %2d\n",A,B,G,H,J,N);
printf("%2d %2d %2d %2d %2d %2d\n",A,C,D,J,L,M);
printf("%2d %2d %2d %2d %2d %2d\n",A,C,F,G,K,M);
printf("%2d %2d %2d %2d %2d %2d\n",A,D,H,I,K,N);
printf("%2d %2d %2d %2d %2d %2d\n",A,E,F,H,L,N);
printf("%2d %2d %2d %2d %2d %2d\n",B,C,D,F,H,M);
printf("%2d %2d %2d %2d %2d %2d\n",B,C,K,L,M,N);
printf("%2d %2d %2d %2d %2d %2d\n",B,D,G,I,J,K);
printf("%2d %2d %2d %2d %2d %2d\n",B,E,F,G,J,L);
printf("%2d %2d %2d %2d %2d %2d\n",C,D,E,G,M,N);
printf("%2d %2d %2d %2d %2d %2d\n",C,E,H,J,K,M);
printf("%2d %2d %2d %2d %2d %2d\n",C,F,I,J,M,N);
printf("%2d %2d %2d %2d %2d %2d\n",C,G,H,I,L,M);
printf("%2d %2d %2d %2d %2d %2d\n",D,E,F,I,K,L);
getch();
} 展开
提示该问答中所提及的号码未经验证,请注意甄别。
5个回答
展开全部
中间也加上getch();
main()
{ int A,B,C,D,E,F,G,H,I,J,K,L,M,N;
printf("please input numbers\n");
scanf("%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d",&A,&B,&C,&D,&E,&F,&G,&H,&I,&J,&K,&L,&M,&N);
printf("%2d %2d %2d %2d %2d %2d\n",A,B,C,E,I,M);
printf("%2d %2d %2d %2d %2d %2d\n",A,B,G,H,J,N);
printf("%2d %2d %2d %2d %2d %2d\n",A,C,D,J,L,M);
printf("%2d %2d %2d %2d %2d %2d\n",A,C,F,G,K,M);
printf("%2d %2d %2d %2d %2d %2d\n",A,D,H,I,K,N);
getch();
printf("%2d %2d %2d %2d %2d %2d\n",A,E,F,H,L,N);
printf("%2d %2d %2d %2d %2d %2d\n",B,C,D,F,H,M);
printf("%2d %2d %2d %2d %2d %2d\n",B,C,K,L,M,N);
printf("%2d %2d %2d %2d %2d %2d\n",B,D,G,I,J,K);
printf("%2d %2d %2d %2d %2d %2d\n",B,E,F,G,J,L);
getch();
printf("%2d %2d %2d %2d %2d %2d\n",C,D,E,G,M,N);
printf("%2d %2d %2d %2d %2d %2d\n",C,E,H,J,K,M);
printf("%2d %2d %2d %2d %2d %2d\n",C,F,I,J,M,N);
printf("%2d %2d %2d %2d %2d %2d\n",C,G,H,I,L,M);
printf("%2d %2d %2d %2d %2d %2d\n",D,E,F,I,K,L);
getch();
}
main()
{ int A,B,C,D,E,F,G,H,I,J,K,L,M,N;
printf("please input numbers\n");
scanf("%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d",&A,&B,&C,&D,&E,&F,&G,&H,&I,&J,&K,&L,&M,&N);
printf("%2d %2d %2d %2d %2d %2d\n",A,B,C,E,I,M);
printf("%2d %2d %2d %2d %2d %2d\n",A,B,G,H,J,N);
printf("%2d %2d %2d %2d %2d %2d\n",A,C,D,J,L,M);
printf("%2d %2d %2d %2d %2d %2d\n",A,C,F,G,K,M);
printf("%2d %2d %2d %2d %2d %2d\n",A,D,H,I,K,N);
getch();
printf("%2d %2d %2d %2d %2d %2d\n",A,E,F,H,L,N);
printf("%2d %2d %2d %2d %2d %2d\n",B,C,D,F,H,M);
printf("%2d %2d %2d %2d %2d %2d\n",B,C,K,L,M,N);
printf("%2d %2d %2d %2d %2d %2d\n",B,D,G,I,J,K);
printf("%2d %2d %2d %2d %2d %2d\n",B,E,F,G,J,L);
getch();
printf("%2d %2d %2d %2d %2d %2d\n",C,D,E,G,M,N);
printf("%2d %2d %2d %2d %2d %2d\n",C,E,H,J,K,M);
printf("%2d %2d %2d %2d %2d %2d\n",C,F,I,J,M,N);
printf("%2d %2d %2d %2d %2d %2d\n",C,G,H,I,L,M);
printf("%2d %2d %2d %2d %2d %2d\n",D,E,F,I,K,L);
getch();
}
展开全部
#include "stdio.h"
main()
{
char* name = ".";
FILE* fp = fopen(fp, name, "w+");
int A,B,C,D,E,F,G,H,I,J,K,L,M,N;
printf("please input numbers\n");
scanf("%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d",&A,&B,&C,&D,&E,&F,&G,&H,&I,&J,&K,&L,&M,&N);
fprintf(fp,"%2d %2d %2d %2d %2d %2d\n",A,B,C,E,I,M);
fprintf(fp,"%2d %2d %2d %2d %2d %2d\n",A,B,G,H,J,N);
fprintf(fp,"%2d %2d %2d %2d %2d %2d\n",A,C,D,J,L,M);
fprintf(fp,"%2d %2d %2d %2d %2d %2d\n",A,C,F,G,K,M);
fprintf(fp,"%2d %2d %2d %2d %2d %2d\n",A,D,H,I,K,N);
fprintf(fp,"%2d %2d %2d %2d %2d %2d\n",A,E,F,H,L,N);
fprintf(fp,"%2d %2d %2d %2d %2d %2d\n",B,C,D,F,H,M);
fprintf(fp,"%2d %2d %2d %2d %2d %2d\n",B,C,K,L,M,N);
fprintf(fp,"%2d %2d %2d %2d %2d %2d\n",B,D,G,I,J,K);
fprintf(fp,"%2d %2d %2d %2d %2d %2d\n",B,E,F,G,J,L);
fprintf(fp,"%2d %2d %2d %2d %2d %2d\n",C,D,E,G,M,N);
fprintf(fp,"%2d %2d %2d %2d %2d %2d\n",C,E,H,J,K,M);
fprintf(fp,"%2d %2d %2d %2d %2d %2d\n",C,F,I,J,M,N);
fprintf(fp,"%2d %2d %2d %2d %2d %2d\n",C,G,H,I,L,M);
fprintf(fp,"%2d %2d %2d %2d %2d %2d\n",D,E,F,I,K,L);
close(fp);
}
main()
{
char* name = ".";
FILE* fp = fopen(fp, name, "w+");
int A,B,C,D,E,F,G,H,I,J,K,L,M,N;
printf("please input numbers\n");
scanf("%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d",&A,&B,&C,&D,&E,&F,&G,&H,&I,&J,&K,&L,&M,&N);
fprintf(fp,"%2d %2d %2d %2d %2d %2d\n",A,B,C,E,I,M);
fprintf(fp,"%2d %2d %2d %2d %2d %2d\n",A,B,G,H,J,N);
fprintf(fp,"%2d %2d %2d %2d %2d %2d\n",A,C,D,J,L,M);
fprintf(fp,"%2d %2d %2d %2d %2d %2d\n",A,C,F,G,K,M);
fprintf(fp,"%2d %2d %2d %2d %2d %2d\n",A,D,H,I,K,N);
fprintf(fp,"%2d %2d %2d %2d %2d %2d\n",A,E,F,H,L,N);
fprintf(fp,"%2d %2d %2d %2d %2d %2d\n",B,C,D,F,H,M);
fprintf(fp,"%2d %2d %2d %2d %2d %2d\n",B,C,K,L,M,N);
fprintf(fp,"%2d %2d %2d %2d %2d %2d\n",B,D,G,I,J,K);
fprintf(fp,"%2d %2d %2d %2d %2d %2d\n",B,E,F,G,J,L);
fprintf(fp,"%2d %2d %2d %2d %2d %2d\n",C,D,E,G,M,N);
fprintf(fp,"%2d %2d %2d %2d %2d %2d\n",C,E,H,J,K,M);
fprintf(fp,"%2d %2d %2d %2d %2d %2d\n",C,F,I,J,M,N);
fprintf(fp,"%2d %2d %2d %2d %2d %2d\n",C,G,H,I,L,M);
fprintf(fp,"%2d %2d %2d %2d %2d %2d\n",D,E,F,I,K,L);
close(fp);
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
#include<stdio.h>
#include<stdlib.h>
main()
{ int A,B,C,D,E,F,G,H,I,J,K,L,M,N;
printf("please input numbers\n");
scanf("%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d",&A,&B,&C,&D,&E,&F,&G,&H,&I,&J,&K,&L,&M,&N);
printf("%2d %2d %2d %2d %2d %2d\n",A,B,C,E,I,M);
printf("%2d %2d %2d %2d %2d %2d\n",A,B,G,H,J,N);
printf("%2d %2d %2d %2d %2d %2d\n",A,C,D,J,L,M);
printf("%2d %2d %2d %2d %2d %2d\n",A,C,F,G,K,M);
printf("%2d %2d %2d %2d %2d %2d\n",A,D,H,I,K,N);
printf("%2d %2d %2d %2d %2d %2d\n",A,E,F,H,L,N);
printf("%2d %2d %2d %2d %2d %2d\n",B,C,D,F,H,M);
printf("%2d %2d %2d %2d %2d %2d\n",B,C,K,L,M,N);
printf("%2d %2d %2d %2d %2d %2d\n",B,D,G,I,J,K);
printf("%2d %2d %2d %2d %2d %2d\n",B,E,F,G,J,L);
printf("%2d %2d %2d %2d %2d %2d\n",C,D,E,G,M,N);
printf("%2d %2d %2d %2d %2d %2d\n",C,E,H,J,K,M);
printf("%2d %2d %2d %2d %2d %2d\n",C,F,I,J,M,N);
printf("%2d %2d %2d %2d %2d %2d\n",C,G,H,I,L,M);
printf("%2d %2d %2d %2d %2d %2d\n",D,E,F,I,K,L);
system("pause");
return 0;
}
#include<stdlib.h>
main()
{ int A,B,C,D,E,F,G,H,I,J,K,L,M,N;
printf("please input numbers\n");
scanf("%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d,%2d",&A,&B,&C,&D,&E,&F,&G,&H,&I,&J,&K,&L,&M,&N);
printf("%2d %2d %2d %2d %2d %2d\n",A,B,C,E,I,M);
printf("%2d %2d %2d %2d %2d %2d\n",A,B,G,H,J,N);
printf("%2d %2d %2d %2d %2d %2d\n",A,C,D,J,L,M);
printf("%2d %2d %2d %2d %2d %2d\n",A,C,F,G,K,M);
printf("%2d %2d %2d %2d %2d %2d\n",A,D,H,I,K,N);
printf("%2d %2d %2d %2d %2d %2d\n",A,E,F,H,L,N);
printf("%2d %2d %2d %2d %2d %2d\n",B,C,D,F,H,M);
printf("%2d %2d %2d %2d %2d %2d\n",B,C,K,L,M,N);
printf("%2d %2d %2d %2d %2d %2d\n",B,D,G,I,J,K);
printf("%2d %2d %2d %2d %2d %2d\n",B,E,F,G,J,L);
printf("%2d %2d %2d %2d %2d %2d\n",C,D,E,G,M,N);
printf("%2d %2d %2d %2d %2d %2d\n",C,E,H,J,K,M);
printf("%2d %2d %2d %2d %2d %2d\n",C,F,I,J,M,N);
printf("%2d %2d %2d %2d %2d %2d\n",C,G,H,I,L,M);
printf("%2d %2d %2d %2d %2d %2d\n",D,E,F,I,K,L);
system("pause");
return 0;
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2010-10-26
展开全部
残cán
中文解释 - 英文翻译
残的中文解释
以下结果由汉典提供词典解释
部首笔画
部首:歹 部外笔画:5 总笔画:9
五笔86:GQGT 五笔98:GQGA 仓颉:MNIJ
笔顺编号:135411534 四角号码:13250 Unicode:CJK 统一汉字 U+6B8B
基本字义
1. 害,毁坏:~害。摧~。
2. 不完全,余下的:~余。~阳。~存。~废。~佚。苟延~喘。
3. 凶恶:~忍。~酷。凶~。
详细字义
〈动〉
1. (形声。从歹( è),戋( jiān)声。从“歹”表示与死亡有关。本义:伤害)
2. 同本义 [injure;damage]
残,伤也。——《苍颉篇》
昔智伯瑶残 范中行。——《战国策·秦策》。注:“灭也。”
废为残贼。——《诗·大雅·民劳》
则汝残矣。——《战国策·齐策》。注:“坏也。”
凡二十七县残。——《史记·樊郦滕灌传》。集解:“谓多所杀伤也。”
张仪之残, 樗里疾也。——《战国策·秦策》。注:“害也。”
放轼其君则残之。——《周礼·夏官》
残名以逞。——《左传·宣公二年》
3. 又如:摧残(使蒙受严重损失);残心(残害人的心);残贼(杀害);残灭(残杀毁灭);残夷(残杀)
4. 毁坏;破坏 [demolish]
家室立残,亲戚不免于刑戮。——《荀子·荣辱》
5. 又如:残略(摧毁掠夺);残坏(破败;毁坏)
6. 凋谢 [wither]
东风无力百花残。——李商隐《无题》
7. 又如:残花;残芳;残英(凋零的花。即落花)
〈形〉
1. 凶恶;狠毒 [ruthless;atrocious]
故不疑为吏,严而不残。——《汉书·隽不疑传》
2. 又如:残烈(残酷剧烈);残横(残暴专横)
3. 残缺,残废 [disabled]
顾自以为身残处秽,动而见忧。——司马迁《报任安书》
4. 又如:残而不废;残卷(书籍的残存部分;亦指书中未读完的部分);残脱(残缺脱漏);残替(残缺废弃);残帙(残卷);残梦(零乱不全的梦)
5. 剩余;残余,残存 [surplus;remnant]
故纯朴不残,孰为牺尊?——《庄子·马蹄》
今日之事,何不使我得早处囊中,以苟延残喘乎?——明· 马中锡《中山狼传》
6. 又如:残香(余香);残客(剩下未走的客人);残雪(剩余而未融尽的雪);残羹冷炙(剩下的酒食菜肴)
7. 最后的,最末的 [remaining]。如:残年(年末;余年。指人的晚年);残照(夕阳);残冬(冬季将尽之时);残山(山将尽处)
〈名〉
1. 也指凶暴的人,暴虐无道的人 [ferocious person]
当横行天下,为汉家除残去秽。——《资治通鉴》
是天下之大残也。——汉· 贾谊《论积贮疏》
常用词组
1. 残败 cánbài
[dilapdated and ruined] 残破衰败
昔日喧闹的集市如今只留下一片残败的景象
2. 残暴 cánbào
[atrocious] 残酷凶暴
残暴行为
3. 残暴 cánbào
[slaughter] 残杀
残暴禽鱼以自快
4. 残本 cánběn
[incomplete book] 残存传世的古籍版本
中文解释 - 英文翻译
残的中文解释
以下结果由汉典提供词典解释
部首笔画
部首:歹 部外笔画:5 总笔画:9
五笔86:GQGT 五笔98:GQGA 仓颉:MNIJ
笔顺编号:135411534 四角号码:13250 Unicode:CJK 统一汉字 U+6B8B
基本字义
1. 害,毁坏:~害。摧~。
2. 不完全,余下的:~余。~阳。~存。~废。~佚。苟延~喘。
3. 凶恶:~忍。~酷。凶~。
详细字义
〈动〉
1. (形声。从歹( è),戋( jiān)声。从“歹”表示与死亡有关。本义:伤害)
2. 同本义 [injure;damage]
残,伤也。——《苍颉篇》
昔智伯瑶残 范中行。——《战国策·秦策》。注:“灭也。”
废为残贼。——《诗·大雅·民劳》
则汝残矣。——《战国策·齐策》。注:“坏也。”
凡二十七县残。——《史记·樊郦滕灌传》。集解:“谓多所杀伤也。”
张仪之残, 樗里疾也。——《战国策·秦策》。注:“害也。”
放轼其君则残之。——《周礼·夏官》
残名以逞。——《左传·宣公二年》
3. 又如:摧残(使蒙受严重损失);残心(残害人的心);残贼(杀害);残灭(残杀毁灭);残夷(残杀)
4. 毁坏;破坏 [demolish]
家室立残,亲戚不免于刑戮。——《荀子·荣辱》
5. 又如:残略(摧毁掠夺);残坏(破败;毁坏)
6. 凋谢 [wither]
东风无力百花残。——李商隐《无题》
7. 又如:残花;残芳;残英(凋零的花。即落花)
〈形〉
1. 凶恶;狠毒 [ruthless;atrocious]
故不疑为吏,严而不残。——《汉书·隽不疑传》
2. 又如:残烈(残酷剧烈);残横(残暴专横)
3. 残缺,残废 [disabled]
顾自以为身残处秽,动而见忧。——司马迁《报任安书》
4. 又如:残而不废;残卷(书籍的残存部分;亦指书中未读完的部分);残脱(残缺脱漏);残替(残缺废弃);残帙(残卷);残梦(零乱不全的梦)
5. 剩余;残余,残存 [surplus;remnant]
故纯朴不残,孰为牺尊?——《庄子·马蹄》
今日之事,何不使我得早处囊中,以苟延残喘乎?——明· 马中锡《中山狼传》
6. 又如:残香(余香);残客(剩下未走的客人);残雪(剩余而未融尽的雪);残羹冷炙(剩下的酒食菜肴)
7. 最后的,最末的 [remaining]。如:残年(年末;余年。指人的晚年);残照(夕阳);残冬(冬季将尽之时);残山(山将尽处)
〈名〉
1. 也指凶暴的人,暴虐无道的人 [ferocious person]
当横行天下,为汉家除残去秽。——《资治通鉴》
是天下之大残也。——汉· 贾谊《论积贮疏》
常用词组
1. 残败 cánbài
[dilapdated and ruined] 残破衰败
昔日喧闹的集市如今只留下一片残败的景象
2. 残暴 cánbào
[atrocious] 残酷凶暴
残暴行为
3. 残暴 cánbào
[slaughter] 残杀
残暴禽鱼以自快
4. 残本 cánběn
[incomplete book] 残存传世的古籍版本
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
main前要加void ,getch是没有的,只有getc和getchar,这里不需要,你要真加的话加getchar(),
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询