c++17(12)-raw string,u8,L
生活随笔
收集整理的這篇文章主要介紹了
c++17(12)-raw string,u8,L
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
#include <iostream>
#include <cstring>
using namespace std;int main(int argc, char **argv)
{char *str1=R"(\\\\n(*73&^%4)2@~!/.,>><<!!!)";auto str2=L"hello";auto str3=u8"世界hello";cout<<str1<<endl;cout<<str3<<endl;wcout<<str2<<endl;
}
R原樣輸出
L輸出wchar
u8輸出UTF8
總結
以上是生活随笔為你收集整理的c++17(12)-raw string,u8,L的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: mysql 分类计数器_PHP MySQ
- 下一篇: SpringBoot踩坑记录 Inval