{"id":95,"date":"2023-10-06T21:52:18","date_gmt":"2023-10-06T13:52:18","guid":{"rendered":"https:\/\/wp.minicoda.com\/?p=95"},"modified":"2023-10-31T21:24:14","modified_gmt":"2023-10-31T13:24:14","slug":"%e7%89%b9%e6%ae%8a%e5%ad%97%e7%ac%a6","status":"publish","type":"post","link":"https:\/\/wp.minicoda.com\/index.php\/%e7%89%b9%e6%ae%8a%e5%ad%97%e7%ac%a6\/","title":{"rendered":"\u8f6c\u4e49\u5b57\u7b26"},"content":{"rendered":"\n<p>  \u5bf9\u4e8e\u4eba\u751f\uff0c\u4ec0\u4e48\u65f6\u5019\u90fd\u611f\u89c9\u4e0d\u591f\u6ee1\u610f\u3002\u7f16\u7a0b\u8bed\u8a00\u7684\u5b57\u7b26\u96c6\u662f\u6709\u9650\u7684\uff0c\u6709\u9650\u7684\u5b57\u7b26\u96c6\u8868\u8fbe\u66f4\u591a\u7684\u529f\u80fd\uff0c\u5f15\u5165\u4e86\u8f6c\u4e49\u5b57\u7b26\u4e4b\u7c7b\u7684\u7279\u6b8a\u5b57\u7b26\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e0d\u540c\u7684\u8f6c\u4e49\u5b57\u7b26<\/h2>\n\n\n\n<p>  \u4e3a\u4e86\u652f\u6301\u7279\u5b9a\u7684\u5b57\u7b26\u63a7\u5236\uff0c\u6bd4\u5982\u6362\u884c\u6216indent\u5bf9\u9f50\u7b49\uff0c\u7f16\u7a0b\u8bed\u8a00\u4e00\u822c\u652f\u6301\u7279\u6b8a\u5b57\u7b26\u63a7\u5236\uff0c\u901a\u5e38\u91c7\u7528\u8f6c\u4e49\u5b57\u7b26\uff0c\u6bd4\u5982\\r, \\n, \\t, \\a, \\\\\u7b49\u7b49.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u2018\\a\u2019 \u54cd\u94c3\n<ul class=\"wp-block-list\">\n<li>C#\u8c03\u7528Console.WriteLine(\"\\a\")\u4f1a\u6709\u54cd\u94c3\u6548\u679c\u3002\n<ul class=\"wp-block-list\">\n<li>\u5728Windows\u73af\u5883\uff0c\u672c\u8d28\u662f\u8c03\u7528Windows API WriteFile, \u6700\u7ec8\u5185\u6838\u539f\u5c01\u4e0d\u52a8\u8fd4\u56de\u7ed9\u8c03\u7528\u8fdb\u7a0b\uff0c\u6240\u5c5e\u7684\u89e3\u91ca\u5668(cmd.exe)\u8c03\u7528\u54cd\u94c3\u52a8\u4f5c<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u2018\\t\u2019 \u957f\u5ea6\n<ul class=\"wp-block-list\">\n<li>C\u8bed\u8a00\u6807\u51c6\u672a\u89c4\u5b9a\u5177\u4f53\u957f\u5ea6\uff0c\u4e0d\u4e00\u5b9a\u662f8\u4e2a\u5b57\u7b26\u3002<\/li>\n\n\n\n<li>\u4e00\u822c\u800c\u8a00\uff0c\u64cd\u4f5c\u7cfb\u7edf\u4e5f\u4f1a\u628a\u2019\\t\u2019\u7684\u7f16\u7801(ANSI\u6216Unicode)\u4f20\u9012\u7ed9\u89e3\u91ca\u5668\uff0c\u89e3\u91ca\u5668\u6839\u636e\u63a7\u5236\u53f0\u73af\u5883\u914d\u7f6e\u51b3\u5b9aTAB\u957f\u5ea6\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u8f6c\u4e49\u5b57\u7b26\u672c\u8d28\u4e5f\u662f\u6574\u6570\n<ul class=\"wp-block-list\">\n<li>\u4f8b\u5982\uff0c\u2019\\n\u2019\u6570\u503c\u4e3a10, \u53ef\u4ee5\u5229\u7528'\\xA'\u4ee3\u8868\uff0c\u540c\u6837\u4f1a\u8f93\u51fa\u6362\u884c\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u4e09\u5b57\u7b26\u5e8f\u5217\n<ul class=\"wp-block-list\">\n<li>\u65e9\u671f\u7684C\/C++\u5747\u652f\u6301\uff0cC++17\u53d6\u6d88\u4e86\u4e09\u5b57\u7b26\u5e8f\u5217\uff0c\u5982\u4e0b\u5c55\u793a\u4e09\u5b57\u7b26\u5e8f\u5217\u8f93\u51fa\u2019|\u2019\u793a\u4f8b: printf(\"??!\")\n<ul class=\"wp-block-list\">\n<li>\u6ce8\u610f\uff1aVC\u4e2d\u9700\u5f00\u7f16\u8bd1\u9009\u9879\/Zc:trigraphs\u624d\u652f\u6301\u4e09\u5b57\u7b26\u5e8f\u5217.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u4e3a\u4ec0\u4e48\u95ee\u53f7\u9700\u8981\u8f6c\u4e49(\u2018\\?\u2019)?\n<ul class=\"wp-block-list\">\n<li>\u6b63\u56e0\u4e3a\u4e0a\u9762\u63d0\u5230\u7684\u4e09\u5b57\u7b26\u5e8f\u5217\uff0c\u5b83\u662f\u4ee5\u95ee\u53f7\u5f00\u5934\uff0c\u907f\u514d\u95ee\u53f7'?'\u542b\u4e49\u4e0d\u786e\u5b9a\u6027\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u53cd\u659c\u6760'\\\\'\n<ul class=\"wp-block-list\">\n<li>Windows\u8def\u5f84\u7528\u53cd\u659c\u6760\uff0c\u8def\u5f84\u540d\u5f88\u957f\u5c31\u4f1a\u8f93\u5165\u5f88\u591a\u8f6c\u4e49\"\\\\\", \u73b0\u4ee3\u7f16\u7a0b\u8bed\u8a00\u7eb7\u7eb7\u5f15\u5165\u63a7\u5236\u673a\u5236\u51cf\u5c11\u5197\u4f59\u8f93\u5165<\/li>\n\n\n\n<li>C++11\u5f15\u5165R\u539f\u59cb\u5b57\u7b26\u4e32\u6a21\u5f0f\uff0cR\"(C:\\Windows\\System32)\"\u4ee3\u8868\u201cC:\\\\Windows\\\\System32\u201d.<\/li>\n\n\n\n<li>C#\u5728\u5b57\u7b26\u4e32\u524d\u9762\u52a0@\u7b26\u53f7\u53d6\u6d88\u8f6c\u4e49\u529f\u80fd\uff1a@\"C:\\Windows\\System32\"<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e0d\u540c\u7f16\u7a0b\u8bed\u8a00\u7684\u8f6c\u4e49\u5b57\u7b26<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>C\u7cfb\u7f16\u7a0b\u8bed\u8a00\u5305\u62ecC\/C++\/Java\/C#\u652f\u6301\u5e38\u7528\u7684\u8f6c\u4e49\u5b57\u7b26\uff0c\u5982\\b, \\n, \\t, \\\", \\f, \\r, \\', \\\\, JavaScript\u4e5f\u652f\u6301\u8fd9\u4e9b\u3002<\/li>\n\n\n\n<li>JS\u4e2d\u653e\u5728&lt;pre&gt;\u548c&lt;\/pre&gt;\u6807\u7b7e\u5185\u4f7f\u7528\u8f6c\u4e49\u5b57\u7b26\u624d\u6709\u6548\u3002<\/li>\n\n\n\n<li>Shell\u8f6c\u4e49\u5b57\u7b26\u9664\u4e86C\u7cfb\u8bed\u8a00\u90a3\u4e9b\uff0c\u56e0\u5185\u90e8\u6709\u66f4\u591a\u7279\u6b8a\u7b26\u53f7\u652f\u6301\u66f4\u591a\u3002\u4f8b\u5982, ~ ` ( ) $\u7b49\u7b49\u3002\u4f8b\u5982$\u4ee3\u8868\u53d8\u91cf\uff0c\"\\$\"\u88ab\u8f6c\u4e49\u6210'$'.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5934\u6587\u4ef6\u8def\u5f84\u7684\u8f6c\u4e49\u5b57\u7b26'\\'<\/h2>\n\n\n\n<p>  Unix like\u64cd\u4f5c\u7cfb\u7edf\u65e0\u6b64\u95ee\u9898\uff0c\u56e0\u4e3a\u4f7f\u7528'\/', Windows\u5e73\u53f0\u4f1a\u9047\u5230\u3002\u4e0d\u8fc7\uff0cC\/C++\u5934\u6587\u4ef6\u8def\u5f84\u770b\u8d77\u6765\u50cf\u662f\u5b57\u9762\u91cf\uff0c\u6709\u8def\u5f84\u5206\u9694\u7b26\u2019\\\u2019\u5374\u4e0d\u4f1a\u88ab\u5f53\u6210\u8f6c\u4e49\u5b57\u7b26\uff0c\u8fd9\u5f88\u6709\u7528\u3002\u5373#include \"aa\\bb.h\"\u771f\u7684\u662faa\u76ee\u5f55\u7684bb.h, \u800c\u975e\\b\u8f6c\u4e49\u3002\u8fd9\u53ef\u4ee5\u770b\u6210\u5934\u6587\u4ef6\u5305\u542b\u5bf9\u8f6c\u4e49\u5b57\u7b26\u7684\u7279\u6b8a\u5904\u7406\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5bf9\u4e8e\u4eba\u751f\uff0c\u4ec0\u4e48\u65f6\u5019\u90fd\u611f\u89c9\u4e0d\u591f\u6ee1\u610f\u3002\u7f16\u7a0b\u8bed\u8a00\u7684\u5b57\u7b26\u96c6\u662f\u6709\u9650\u7684\uff0c\u6709\u9650\u7684\u5b57\u7b26\u96c6\u8868\u8fbe\u66f4\u591a\u7684\u529f\u80fd\uff0c\u5f15\u5165\u4e86\u8f6c\u4e49\u5b57\u7b26\u4e4b\u7c7b\u7684\u7279\u6b8a\u5b57\u7b26\u3002 \u4e0d\u540c\u7684\u8f6c\u4e49\u5b57\u7b26 \u4e3a\u4e86\u652f\u6301\u7279\u5b9a\u7684\u5b57\u7b26\u63a7\u5236\uff0c\u6bd4\u5982\u6362\u884c\u6216indent\u5bf9\u9f50\u7b49\uff0c\u7f16\u7a0b\u8bed\u8a00\u4e00&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24,19],"tags":[25,9],"class_list":["post-95","post","type-post","status-publish","format-standard","hentry","category-24","category-19","tag-25","tag-9"],"views":144,"_links":{"self":[{"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts\/95","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/comments?post=95"}],"version-history":[{"count":9,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts\/95\/revisions"}],"predecessor-version":[{"id":780,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts\/95\/revisions\/780"}],"wp:attachment":[{"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/media?parent=95"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/categories?post=95"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/tags?post=95"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}