简体   繁体   中英

wide character literal string in C++

Can someone explain to me what is wide character string and how to use them with examples. For example:

std::cout<<L"\115";

Why do I get 0x100000f90 as output instead of M when I just use

std::cout<<"\115";

要回答问题的第二部分,如果要输出宽字符,则需要使用std::wcout

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM