gpt4 book ai didi

c++ - cout中的 "uR"是什么意思?

转载 作者:太空狗 更新时间:2023-10-29 23:49:08 26 4
gpt4 key购买 nike

在下面的C++代码中,uR是什么意思?

#include <iostream>

using namespace std;

int main() {
cout << uR"(Hello, world!)" << '\n';

return 0;
}

就在这里,现在打印

0x55ad7e90b986

最佳答案

根据 this page R 表示原始字符串,而 u 表示它是用 UTF-16 编码的。两者可以结合。

关于c++ - cout中的 "uR"是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46267530/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com