[{"data":1,"prerenderedAt":221},["ShallowReactive",2],{"post-escape-sequence":3,"home":199},{"id":4,"title":5,"body":6,"date":188,"description":189,"extension":190,"meta":191,"navigation":192,"path":193,"seo":194,"stem":195,"tags":196,"__hash__":198},"blog\u002Fblog\u002Fescape-sequence.md","C++的`\\?`",{"type":7,"value":8,"toc":182},"minimark",[9,13,21,28,38,42,45,48,175],[10,11,12],"h2",{"id":12},"引言",[14,15,16,17],"p",{},"在重读《C++ Primer》2.1 基本数据类型的时候，发现在C++的转义序列里面有个之前没注意到的细节",[18,19,20],"code",{},"\\?",[14,22,23],{},[24,25],"img",{"alt":26,"src":27},"escape sequence","https:\u002F\u002Fstarrobe-blog.oss-cn-beijing.aliyuncs.com\u002Fimages\u002Fcplusplus_escape_sequence.jpg",[14,29,30,31,33,34,37],{},"遂打开vscode发现",[18,32,20],{},"与",[18,35,36],{},"?","并没有什么区别",[10,39,41],{"id":40},"trigraph","Trigraph",[14,43,44],{},"那么为什么问号需要转义字符来表示它本身，显然它确实有特殊含义",[14,46,47],{},"trigraph三字符组，最早设计出来解决某些键盘不能输入某些编程必须的字符问题",[49,50,51,63],"table",{},[52,53,54],"thead",{},[55,56,57,60],"tr",{},[58,59,41],"th",{},[58,61,62],{},"Equivalent",[64,65,66,79,91,103,115,127,139,151,163],"tbody",{},[55,67,68,74],{},[69,70,71],"td",{},[18,72,73],{},"??=",[69,75,76],{},[18,77,78],{},"#",[55,80,81,86],{},[69,82,83],{},[18,84,85],{},"??\u002F",[69,87,88],{},[18,89,90],{},"\\",[55,92,93,98],{},[69,94,95],{},[18,96,97],{},"??` ",[69,99,100],{},[18,101,102],{},"^",[55,104,105,110],{},[69,106,107],{},[18,108,109],{},"??(",[69,111,112],{},[18,113,114],{},"[",[55,116,117,122],{},[69,118,119],{},[18,120,121],{},"??)",[69,123,124],{},[18,125,126],{},"]",[55,128,129,134],{},[69,130,131],{},[18,132,133],{},"??!",[69,135,136],{},[18,137,138],{},"|",[55,140,141,146],{},[69,142,143],{},[18,144,145],{},"??\u003C",[69,147,148],{},[18,149,150],{},"{",[55,152,153,158],{},[69,154,155],{},[18,156,157],{},"??>",[69,159,160],{},[18,161,162],{},"}",[55,164,165,170],{},[69,166,167],{},[18,168,169],{},"??-",[69,171,172],{},[18,173,174],{},"~",[14,176,177,178,181],{},"及当同时使用",[18,179,180],{},"??","时，需要对问号进行转义，避免编译器将其误解释为一个trigraph",{"title":183,"searchDepth":184,"depth":184,"links":185},"",2,[186,187],{"id":12,"depth":184,"text":12},{"id":40,"depth":184,"text":41},"2025-05-11","笔记","md",{},true,"\u002Fblog\u002Fescape-sequence",{"title":5,"description":189},"blog\u002Fescape-sequence",[197],"C++","JSByrGOUS0sRfv7X1XMwjlDCB_HYTnRcrFxkjR3PzzU",{"id":200,"title":201,"avatar":202,"body":203,"description":207,"extension":190,"meta":208,"name":210,"navigation":192,"path":211,"seo":212,"social":213,"stem":219,"__hash__":220},"home\u002Fhome.md","Home","https:\u002F\u002Fstarrobe-blog.oss-cn-beijing.aliyuncs.com\u002Favatar\u002Fjashinchan.jpg",{"type":7,"value":204,"toc":205},[],{"title":183,"searchDepth":184,"depth":184,"links":206},[],"Programming enthusiast, maybe.",{"layout":209},"page","阿东","\u002Fhome",{"title":201,"description":207},{"github":214,"email":215,"bilibili":216,"qq":217,"rss":218},"https:\u002F\u002Fgithub.com\u002Fstarrobe","mailto:starrobe@163.com","https:\u002F\u002Fspace.bilibili.com\u002F382631863","tencent:\u002F\u002Fmessage\u002F?uin=2604335528","\u002Ffeed.xml","home","XHOrpn2fXb8x87SMsqZTGaANCESyH9qV8TDm8rnQewI",1777128585658]