标签:字符 get color center std c代码 int enter clu
超级玛丽是一个非常经典的游戏。请你用字符画的形式输出超级玛丽中的一个场景。
(无)
******** ************ ####....#. #..###.....##.... ###.......###### ### ### ### ### ........... #...# #...# #...# #...# ##*####### #.#.# #.#.# #.#.# #.#.# ####*******###### #.#.# #.#.# #.#.# #.#.# ...#***.****.*###.... #...# #...# #...# #...# ....**********##..... ### ### ### ### ....**** *****.... #### #### ###### ###### ############################################################## ################################## #...#......#.##...#......#.##...#......#.##------------------# #...#......#.##------------------# ###########################################------------------# ###############------------------# #..#....#....##..#....#....##..#....#....##################### #..#....#....##################### ########################################## #----------# ############## #----------# #.....#......##.....#......##.....#......# #----------# #.....#......# #----------# ########################################## #----------# ############## #----------# #.#..#....#..##.#..#....#..##.#..#....#..# #----------# #.#..#....#..# #----------# ########################################## ############ ############## ############
1 #include<stdio.h> 2 int main() 3 {char*t="pI k] k76(‘ a(,2;-6 a2EAf2u2W2W2 pYk(1(k(1(M(1(M(1( k-&Fu(‘(‘(k(‘(‘(M(‘(‘(M(‘(‘( \\7DAa(‘(‘(k(‘(‘(M(‘(‘(M(‘(‘( W1(0‘5‘&26R(1(k(1(M(1(M(1( W6S-;W2u2W2W2 W654:6 a7H7 WAHA }}}Kf}s (1(@(‘-1(@(‘-1(@(‘-~(f(1(@(‘-~( }}F~(fn~( (,(6(6-,(6(6-,(6(6}2f(,(6(6}2 }}A4(V(zi4(V( (;(@-;(@-;(@(4(V(z(;(@(4(V( }}A4(V(zi4(V( (‘(,(6(,-‘(,(6(,-‘(,(6(,(4(V(z(‘(,(6(,(4(V( }}A4_zi4_"; 4 int x,y,c,i; 5 for(i=0;;i++){ 6 if(!t[i])return 0; 7 if(t[i]==32){printf("\n");goto m;} 8 x=(t[i]-32)%5;y=(t[i]-32)/5; 9 if(x==0)c=32;if(x==1)c=42;if(x==2)c=46;if(x==3)c=35;if(x==4)c=45; 10 for(;y>0;y--)putchar(c); 11 m:;} 12 return 0; 13 }
标签:字符 get color center std c代码 int enter clu
原文地址:http://www.cnblogs.com/ECJTUACM-873284962/p/6523599.html