cpp

A01.10 超级玛丽游戏

step1

#include <iostream>
using namespace std;

int main(){

    return 0;
}

step2

全选Ctrl+a,复制Ctrl+c,粘贴Ctrl+v

#include <iostream>
using namespace std;

int main(){

                ********
               ************
               ####....#.
             #..###.....##....
             ###.......######              ###                 ###           ###           ###
                ...........               #...#               #...#         #...#         #...#
               ##*#######                 #.#.#               #.#.#         #.#.#         #.#.#
            ####*******######             #.#.#               #.#.#         #.#.#         #.#.#
           ...#***.****.*###....          #...#               #...#         #...#         #...#
           ....**********##.....           ###                 ###           ###           ###
           ....****    *****....
             ####        ####
           ######        ######
##############################################################              ##################################
#...#......#.##...#......#.##...#......#.##------------------#              #...#......#.##------------------#
###########################################------------------#              ###############------------------#
#..#....#....##..#....#....##..#....#....#####################              #..#....#....#####################
##########################################    #----------#                  ##############    #----------#
#.....#......##.....#......##.....#......#    #----------#                  #.....#......#    #----------#
##########################################    #----------#                  ##############    #----------#
#.#..#....#..##.#..#....#..##.#..#....#..#    #----------#                  #.#..#....#..#    #----------#
##########################################    ############                  ##############    ############

    return 0;
}

step3

行首或字首Home,行尾或字尾End

#include <iostream>
using namespace std;

int main(){

    cout << "                ********
    cout << "               ************
    cout << "               ####....#.
    cout << "             #..###.....##....
    cout << "             ###.......######              ###                 ###           ###           ###
    cout << "                ...........               #...#               #...#         #...#         #...#
    cout << "               ##*#######                 #.#.#               #.#.#         #.#.#         #.#.#
    cout << "            ####*******######             #.#.#               #.#.#         #.#.#         #.#.#
    cout << "           ...#***.****.*###....          #...#               #...#         #...#         #...#
    cout << "           ....**********##.....           ###                 ###           ###           ###
    cout << "           ....****    *****....
    cout << "             ####        ####
    cout << "           ######        ######
    cout << "##############################################################              ##################################
    cout << "#...#......#.##...#......#.##...#......#.##------------------#              #...#......#.##------------------#
    cout << "###########################################------------------#              ###############------------------#
    cout << "#..#....#....##..#....#....##..#....#....#####################              #..#....#....#####################
    cout << "##########################################    #----------#                  ##############    #----------#
    cout << "#.....#......##.....#......##.....#......#    #----------#                  #.....#......#    #----------#
    cout << "##########################################    #----------#                  ##############    #----------#
    cout << "#.#..#....#..##.#..#....#..##.#..#....#..#    #----------#                  #.#..#....#..#    #----------#
    cout << "##########################################    ############                  ##############    ############

    return 0;
}

step4

#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;
}

w. 微信订阅号

  1. 智数精英-关注中小学程序设计及相关讨论
  2. 随话录-记录小朋友们的成长时光
  3. 西山征途-关注大学生成长、学习和生活

欢迎关注“智数精英”订阅号 欢迎关注“随话录”订阅号 欢迎关注“西山征途”订阅号


b. 返回

h. 首页