visual Bird Unicode c++ win32

visual Bird Unicode c++ win32

本文关键字:win32 c++ Unicode Bird visual      更新时间:2023-10-16

所以我的老师让我挑战把一只鸟放进 c++ win32 程序中。我找到了一个 unicode U+1F426 ,但我该怎么放呢?有什么想法吗?谢谢

只要

您使用支持打印的输出介质,您就可以通过 UTF-16 字符串轻松实现: L"U0001f426"尽管L" "也可以工作

#include <iostream>
#include <io.h>
#include <fcntl.h>
int wmain(int argc, wchar_t* argv[])
{
    _setmode(_fileno(stdout), _O_U16TEXT);
    std::wcout << L"  " << std::endl;
}