#cpp #visual_studio #visual_cpp #visual_studio_2017
Язык программирования с++. Нужно вставить надпись
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;
cout << "█────█────█─███─█───█" << endl;
cout << "█─████─██─█──█──█─███" << endl;
cout << "█─█──█────█─█─█─█───█" << endl;
cout << "█─██─█─██─█─███─█─███" << endl;
cout << "█────█─██─█─███─█───█" << endl;
cout << "█████████████████████" << endl;
Ответы
Ответ 1
Можно отображать и в UTF-8 (cp65001), но c этой кодировкой обычно больше проблем. Проще выводить в UTF-16, в этом случае не придется дополнительно возится с кодировкой файлов и консоли, только поставить режим вывода стандартного потока: #include#include #include #include int main() { ::_setmode(::_fileno(stdout), _O_U16TEXT); auto const & sz_message { L"███████████████████████████████████" L"\n" L"█─███─█───█─███────█────█─███─█───█" L"\n" L"█─███─█─███─███─██─█─██─█──█──█─███" L"\n" L"█─█─█─█───█─███─████─██─█─█─█─█───█" L"\n" L"█─────█─███─███─██─█─██─█─███─█─███" L"\n" L"██─█─██───█───█────█────█─███─█───█" L"\n" L"███████████████████████████████████" L"\n" }; ::std::wcout << sz_message << ::std::flush; ::_wsystem(L"pause"); return(0); } С пиксельным шрифтом 8х12 (в этом случае еще не будет антиалиасинга и разрывов между строками):
Комментариев нет:
Отправить комментарий