为什么会错,好烦!!!!

P1000 超级玛丽游戏

great_mad @ 2023-10-21 16:28:43

#include <stdio.h>
int main()
{
    printf(
    "       ********\n"
    "           ************\n"
    "           ####....#.\n"
    "        #..###.....##....\n"
    "         ###.......######              ###            ###\n"
    "            ...........               #...#          #...#\n"
    "           ##*#######                 #.#.#          #.#.#\n"
    "        ####*******######             #.#.#          #.#.#\n"
    "       ...#***.****.*###....          #...#          #...#\n"
    "       ....**********##.....           ###            ###\n"
    "       ....****    *****....\n"
    "         ####        ####\n"
    "       ######        ######\n"
"##############################################################"
"#...#......#.##...#......#.##...#......#.##------------------#"
"###########################################------------------#"
"#..#....#....##..#....#....##..#....#....#####################"
"##########################################    #----------#"
"#.....#......##.....#......##.....#......#    #----------#"
"##########################################    #----------#"
"#.#..#....#..##.#..#....#..##.#..#....#..#    #----------#"
"##########################################    ############"
    );
    return 0;
}

by FengYuXinMing @ 2023-10-21 16:33:08

马里奥的头是开位移还是想独立了···?


by great_mad @ 2023-10-21 21:21:10

@ababbjxzt 还有其他建议吗


by FengYuXinMing @ 2023-10-22 10:51:17

@great_mad 你的地板就不换行了吗?


by tian_lkrexe114514 @ 2023-11-04 09:43:53

@great_mad 你试一下这个```c

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 panghanchen2012 @ 2023-11-18 15:17:02

#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<<"##########################################    ############";
    return 0;
}

by witherbogged @ 2023-11-19 20:18:35

@tian_lkrexe114514 希望更丰富的展现?用Markdown、KaTeX


by LANXIANGYU0329 @ 2023-11-22 19:49:21

#include <bits/stdc++.h>
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 << "##########################################    ############";
    return 0;
}

by LANXIANGYU0329 @ 2023-11-22 19:50:16

代码送你了


by tian_lkrexe114514 @ 2023-11-25 09:04:26

你没用endl


by edu1081457001 @ 2024-02-15 15:57:37

@tian_lkrexe114514 严格地说,不用endl是可以的,不会算错的


|