求助代码

P1000 超级玛丽游戏

YuZimo @ 2023-07-25 15:39:52

0分


by dienter @ 2023-07-25 15:41:43

你不发个代码怎么知道哪错了啊?


by YuZimo @ 2023-07-25 15:43:39

@dienter 咋发?


by dienter @ 2023-07-25 15:44:35

@YuZimo 楼上


by 2021panjiawang @ 2023-07-25 15:44:48

蚌槌住了...

不废话,直接上代码

#include<iostream>
using namespace std;
int main()
{
    cout<<"                ********"<<endl;
    cout<<"               ************"<<endl;
    cout<<"               ####....#."<<endl;
    cout<<"             #..###.....##...."<<endl;
    cout<<"             ###.......######              ###            ###"<<endl;
    cout<<"                ...........               #...#          #...#"<<endl;
    cout<<"               ##*#######                 #.#.#          #.#.#"<<endl;
    cout<<"            ####*******######             #.#.#          #.#.#"<<endl;
    cout<<"           ...#***.****.*###....          #...#          #...#"<<endl;
    cout<<"           ....**********##.....           ###            ###"<<endl;
    cout<<"           ....****    *****...."<<endl;
    cout<<"             ####        ####"<<endl;
    cout<<"           ######        ######"<<endl;
    cout<<"##############################################################"<<endl;
    cout<<"#...#......#.##...#......#.##...#......#.##------------------#"<<endl;
    cout<<"###########################################------------------#"<<endl;
    cout<<"#..#....#....##..#....#....##..#....#....#####################"<<endl;
    cout<<"##########################################    #----------#"<<endl;
    cout<<"#.....#......##.....#......##.....#......#    #----------#"<<endl;
    cout<<"##########################################    #----------#"<<endl;
    cout<<"#.#..#....#..##.#..#....#..##.#..#....#..#    #----------#"<<endl;
    cout<<"##########################################    ############"<<endl;
    return 0;
}

by YuZimo @ 2023-07-25 15:47:18

@2021panjiawang @Genius_physicist 谢谢


by 2021panjiawang @ 2023-07-25 15:48:37

@Genius_physicist

不至于吧?

虽然你的代码很高明,但是有没有一种可能,我们可以直接输出示例图案


by Genius_physicist @ 2023-07-25 15:52:38

当然啦 @2021panjiawang ,但是我们只要出错一个字符或空格,半小时的努力就浪费了,像我这种谨慎的人,还真是少呢!!!


by yzm0325 @ 2023-07-25 15:57:17

@Genius_physicist

  1. 输错的话只要改一个字符就行了。
  2. Ctrl+C/V 是个好东西。

by 2021panjiawang @ 2023-07-25 16:07:44

@zym0325 赞同


by Genius_physicist @ 2023-07-25 16:12:15


                     ___       | 
     你         -----[=[]=>  ____===__| 
    / | \         ----====--/  ★021S  
     |         /_____________________/   
     /\          \◎◎◎◎◎◎◎◎⊙|  
                 ~~~~~~~~~~~~~~~~~  
你马上要没了

| 下一页