超级玛丽这个题目我一行一行复制下来的怎么还错啊?受不了了

P1000 超级玛丽游戏

_dqy121 @ 2024-01-29 19:39:43


by heyx0201 @ 2024-01-29 19:43:21

@_dqy121 你有病吧代码都不给


by _dqy121 @ 2024-01-29 19:50:11

@heyx0201 这里不是不能发代码吗?


by jiangyunuo @ 2024-01-29 19:51:20

@_dqy121 可以的,我也踩过坑


by LRRabcd @ 2024-01-29 19:52:27

怎么不可以?


by _dqy121 @ 2024-01-29 19:53:33

@jiangyunuo 啊?我怎么看那个公告说会封号?


by jiangyunuo @ 2024-01-29 19:56:16

@_dqy121 这里可以


by OIerWu_829 @ 2024-01-29 20:02:04

@_dqy121 把你每行最后多输出的空格删了试试?


by _dqy121 @ 2024-01-29 20:02:34

@jiangyunuo

#include<iostream>
#include<iomanip>
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 _dqy121 @ 2024-01-29 20:06:06

@wzj0829 我之前就是没打空格交的,错了才改成这样


by jiangyunuo @ 2024-01-29 20:07:55

#include<iostream>
#include<iomanip>
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;
}

| 下一页