Вопрос Как вывести это в консоль?

Начинающий
Статус
Оффлайн
Регистрация
9 Авг 2019
Сообщения
164
Реакции[?]
10
Поинты[?]
1K
Код:

C++:
    const char* HappyNewYear[] =
    {
        "                                                                         ",
        "  __    __       ___      .______   .______    ____     ____              ",
        " |  |  |  |     /   \\     |   _  \\  |   _  \\   \\   \\   /  \/          ",
        " |  |__|  |    /  ^  \\    |  |_)  | |  |_)  |   \\   \\_/  /             ",
        " |   __   |   /  /_\\  \\   |   ___/  |   ___/     \\_    _/             ",
        " |  |  |  |  /  _____  \\  |  |      |  |           |  |                  ",
        " |__|  |__| /__/     \\__\\ | _|      | _|           |__|                 ",
        "                                                                         ",
        "            .__   __.  ___________    __    ____                         ",
        "            |  \\ |  | |   ____\\   \\  /  \\  /   /                     ",
        "            |   \\|  | |  |__   \\   \\/    \\/   /                      ",
        "            |  . \`  | |   __|   \\            /                         ",
        "            |  |\\   | |  |____   \\    /\\    /                         ",
        "            |__| \\__| |_______|   \\__/  \\__/                          ",
        "                                                                         ",
        "                    ____    ____  _______     ___       .______          ",
        "                    \\   \\  /   / |   ____|   /   \\      |   _  \\     ",
        "                     \\   \\/   /  |  |__     /  ^  \\     |  |_)  |     ",
        "                      \\_    _/   |   __|   /  /_\\  \\    |      /      ",
        "                        |  |     |  |____ /  _____  \\   |  |\\  \\----. ",
        "                        |__|     |_______/__/     \\__\\  | _| \`._____| ",
        "                                                                         ",NULL

    };
 
Начинающий
Статус
Оффлайн
Регистрация
29 Ноя 2020
Сообщения
6
Реакции[?]
0
Поинты[?]
0
Код:

C++:
    const char* HappyNewYear[] =
    {
        "                                                                         ",
        "  __    __       ___      .______   .______    ____     ____              ",
        " |  |  |  |     /   \\     |   _  \\  |   _  \\   \\   \\   /  \/          ",
        " |  |__|  |    /  ^  \\    |  |_)  | |  |_)  |   \\   \\_/  /             ",
        " |   __   |   /  /_\\  \\   |   ___/  |   ___/     \\_    _/             ",
        " |  |  |  |  /  _____  \\  |  |      |  |           |  |                  ",
        " |__|  |__| /__/     \\__\\ | _|      | _|           |__|                 ",
        "                                                                         ",
        "            .__   __.  ___________    __    ____                         ",
        "            |  \\ |  | |   ____\\   \\  /  \\  /   /                     ",
        "            |   \\|  | |  |__   \\   \\/    \\/   /                      ",
        "            |  . \`  | |   __|   \\            /                         ",
        "            |  |\\   | |  |____   \\    /\\    /                         ",
        "            |__| \\__| |_______|   \\__/  \\__/                          ",
        "                                                                         ",
        "                    ____    ____  _______     ___       .______          ",
        "                    \\   \\  /   / |   ____|   /   \\      |   _  \\     ",
        "                     \\   \\/   /  |  |__     /  ^  \\     |  |_)  |     ",
        "                      \\_    _/   |   __|   /  /_\\  \\    |      /      ",
        "                        |  |     |  |____ /  _____  \\   |  |\\  \\----. ",
        "                        |__|     |_______/__/     \\__\\  | _| \`._____| ",
        "                                                                         ",NULL

    };
всм вывести в консоль?
 
[+] Born in KernelMode
Kernel Mode
Статус
Оффлайн
Регистрация
25 Фев 2019
Сообщения
1,714
Реакции[?]
198
Поинты[?]
19K
Если по варварски то можно так)

Код:
int main()
{
        std::cout << "                                                                         \n",
        std::cout << "  __    __       ___      .______   .______    ____     ____             \n";
        std::cout << " |  |  |  |     /   \\     |   _  \\  |   _  \\   \\   \\   /  \/        \n";
        std::cout << " |  |__|  |    /  ^  \\    |  |_)  | |  |_)  |   \\   \\_/  /            \n";
        std::cout << " |   __   |   /  /_\\  \\   |   ___/  |   ___/     \\_    _/             \n";
        std::cout << " |  |  |  |  /  _____  \\  |  |      |  |           |  |                 \n";
        std::cout << " |__|  |__| /__/     \\__\\ | _|      | _|           |__|                \n";
        std::cout << "            .__   __.  ___________    __    ____                         \n";
        std::cout << "            |  \\ |  | |   ____\\   \\  /  \\  /   /                     \n";
        std::cout << "            |   \\|  | |  |__   \\   \\/    \\/   /                      \n";
        std::cout << "            |  . \`  | |   __|   \\            /                         \n";
        std::cout << "            |  |\\   | |  |____   \\    /\\    /                         \n";
        std::cout << "            |__| \\__| |_______|   \\__/  \\__/                          \n";
        std::cout << "                                                                         \n";
        std::cout << "                    ____    ____  _______     ___       .______          \n";
        std::cout << "                    \\   \\  /   / |   ____|   /   \\      |   _  \\     \n";
        std::cout << "                     \\   \\/   /  |  |__     /  ^  \\     |  |_)  |     \n";
        std::cout << "                      \\_    _/   |   __|   /  /_\\  \\    |      /      \n";
        std::cout << "                        |  |     |  |____ /  _____  \\   |  |\\  \\----. \n";
        std::cout << "                        |__|     |_______/__/     \\__\\  | _| \`._____| \n";
        std::cout << "                                                                         \n";

}
 
Последнее редактирование:
Пользователь
Статус
Оффлайн
Регистрация
19 Май 2019
Сообщения
294
Реакции[?]
43
Поинты[?]
0
C++:
    const char* HappyNewYear[] =
    {
        "                                                                         ",
        "  __    __       ___      .______   .______    ____     ____              ",
        " |  |  |  |     /   \\     |   _  \\  |   _  \\   \\   \\   /  \/          ",
        " |  |__|  |    /  ^  \\    |  |_)  | |  |_)  |   \\   \\_/  /             ",
        " |   __   |   /  /_\\  \\   |   ___/  |   ___/     \\_    _/             ",
        " |  |  |  |  /  _____  \\  |  |      |  |           |  |                  ",
        " |__|  |__| /__/     \\__\\ | _|      | _|           |__|                 ",
        "                                                                         ",
        "            .__   __.  ___________    __    ____                         ",
        "            |  \\ |  | |   ____\\   \\  /  \\  /   /                     ",
        "            |   \\|  | |  |__   \\   \\/    \\/   /                      ",
        "            |  . \`  | |   __|   \\            /                         ",
        "            |  |\\   | |  |____   \\    /\\    /                         ",
        "            |__| \\__| |_______|   \\__/  \\__/                          ",
        "                                                                         ",
        "                    ____    ____  _______     ___       .______          ",
        "                    \\   \\  /   / |   ____|   /   \\      |   _  \\     ",
        "                     \\   \\/   /  |  |__     /  ^  \\     |  |_)  |     ",
        "                      \\_    _/   |   __|   /  /_\\  \\    |      /      ",
        "                        |  |     |  |____ /  _____  \\   |  |\\  \\----. ",
        "                        |__|     |_______/__/     \\__\\  | _| \`._____| ",
        "                                                                         ",NULL
    };

    for (int i = 0; i < 23; i++)
    {
        cout << HappyNewYear[i] << endl;
    }
Код:
int main()
{
        std::cout << "                                                                         \n",
        std::cout << "  __    __       ___      .______   .______    ____     ____             \n";
        std::cout << " |  |  |  |     /   \\     |   _  \\  |   _  \\   \\   \\   /  \/        \n";
        std::cout << " |  |__|  |    /  ^  \\    |  |_)  | |  |_)  |   \\   \\_/  /            \n";
        std::cout << " |   __   |   /  /_\\  \\   |   ___/  |   ___/     \\_    _/             \n";
        std::cout << " |  |  |  |  /  _____  \\  |  |      |  |           |  |                 \n";
        std::cout << " |__|  |__| /__/     \\__\\ | _|      | _|           |__|                \n";
        std::cout << "            .__   __.  ___________    __    ____                         \n";
        std::cout << "            |  \\ |  | |   ____\\   \\  /  \\  /   /                     \n";
        std::cout << "            |   \\|  | |  |__   \\   \\/    \\/   /                      \n";
        std::cout << "            |  . \`  | |   __|   \\            /                         \n";
        std::cout << "            |  |\\   | |  |____   \\    /\\    /                         \n";
        std::cout << "            |__| \\__| |_______|   \\__/  \\__/                          \n";
        std::cout << "                                                                         \n";
        std::cout << "                    ____    ____  _______     ___       .______          \n";
        std::cout << "                    \\   \\  /   / |   ____|   /   \\      |   _  \\     \n";
        std::cout << "                     \\   \\/   /  |  |__     /  ^  \\     |  |_)  |     \n";
        std::cout << "                      \\_    _/   |   __|   /  /_\\  \\    |      /      \n";
        std::cout << "                        |  |     |  |____ /  _____  \\   |  |\\  \\----. \n";
        std::cout << "                        |__|     |_______/__/     \\__\\  | _| \`._____| \n";
        std::cout << "                                                                         \n";

}
Зачем делать все самому, если все могут сделать за тебя ;)
 
Сверху Снизу