gpt4 book ai didi

c - 限制 C 字符串中十六进制转义序列的长度

转载 作者:太空狗 更新时间:2023-10-29 17:01:26 25 4
gpt4 key购买 nike

<分区>

在字符串文字中,我如何才能紧跟一个可以解释为十六进制数字的文字字符的十六进制转义序列?例如,如果我写这个文字 ...

"BlahBlah\x04BlahBlah"

... '4' 之后的 'B' 将被解释为十六进制转义的一部分,因为它是有效的十六进制数字。

How can I write a string literal that represents the string that the above would represent if the '4' were taken as the last character of the hex escape?

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