跳到正文

wu_di1

1772065

come

在洛谷打开
资料、奖项与版本

资料

编号
1772065
抓取

#include<iostream> using namespace std; char g; int main(){ cout<<“10元大挑战:通关简单奖励10元;通关困难奖励25元”<<endl; int a=0,z=0; cout<<“按a为打印“ ”“<<endl<<“按b为打印“”“<<endl<<“按c为打印“#”“<<endl<<“按d为打印“.””<<endl<<“按e为提行”<<endl<<“按f为退出”<<endl<<“开始挑战:1简单,2困难”; while(true){ cin>>a; if(a==2){ printf( ” ********\n” ” ***********\n” ” ####…#.\n” ” #..###…##…\n” ” ###…######\n” ” …\n” ” #########\n” ” ##########\n” ”…#.**.###…\n” ”…*****##…\n” ”… *****…\n” ” #### ####\n” ”###### ######\n”);} if(a==1){ printf (” #\n” ” ###\n” ”#####\n” ” ###\n” ” #”); } while(g!=‘g’){ cin>>g; if(g==‘a’){ cout<<” ”; } if(g==‘b’){ cout<<""; } if(g==‘c’){ cout<<”#”; z—; } if(g==‘d’){ cout<<”.”; } if(g==‘e’){ cout<<endl; } if(g==‘f’){ return 0; } if(g==‘g’){ break; } } } return 0; }

还没有收录这位用户的文章。