{"id":97245,"date":"2026-08-29T08:35:30","date_gmt":"2026-08-29T00:35:30","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/97245.html"},"modified":"2026-08-29T08:35:30","modified_gmt":"2026-08-29T00:35:30","slug":"%e6%b7%b1%e5%85%a5%e7%90%86%e8%a7%a3c-%e7%b1%bb%e5%9e%8b%e8%bd%ac%e6%8d%a2%ef%bc%9c%e5%9b%9b%ef%bc%9ereinterpret_cast","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/97245.html","title":{"rendered":"\u6df1\u5165\u7406\u89e3C++ \u7c7b\u578b\u8f6c\u6362\uff1c\u56db\uff1ereinterpret_cast"},"content":{"rendered":"<h4>reinterpret_cast\u00a0\u8be6\u89e3<\/h4>\n<p>reinterpret_cast\u00a0\u662f C&#043;&#043; \u4e2d\u6700\u5371\u9669\u3001\u6700\u5f3a\u5927&#xff0c;\u4e5f\u6700\u63a5\u8fd1\u5e95\u5c42\u786c\u4ef6\u7684\u7c7b\u578b\u8f6c\u6362\u64cd\u4f5c\u7b26\u3002\u5b83\u7684\u540d\u5b57\u201creinterpret\u201d&#xff08;\u91cd\u65b0\u89e3\u91ca&#xff09;\u5df2\u7ecf\u63ed\u793a\u4e86\u5176\u672c\u8d28&#xff1a;\u628a\u5185\u5b58\u4e2d\u7684\u4e8c\u8fdb\u5236\u6bd4\u7279\u4f4d&#xff0c;\u5f3a\u884c\u5f53\u4f5c\u53e6\u4e00\u79cd\u7c7b\u578b\u6765\u89e3\u8bfb&#xff0c;\u800c\u4e0d\u505a\u4efb\u4f55\u6570\u503c\u8f6c\u6362\u6216\u8fd0\u884c\u65f6\u68c0\u67e5\u3002<\/p>\n<h5>\u8bed\u6cd5<\/h5>\n<p>cpp<\/p>\n<p>reinterpret_cast&lt;new_type&gt;(expression) <\/p>\n<p>\u5176\u4e2d\u00a0new_type\u00a0\u5fc5\u987b\u662f\u6307\u9488\u3001\u5f15\u7528\u3001\u7b97\u672f\u7c7b\u578b&#xff08;\u6574\u6570\/\u6d6e\u70b9\u6570&#xff09;\u3001\u51fd\u6570\u6307\u9488\u7b49\u3002<\/p>\n<h5>\u4e3b\u8981\u7528\u9014<\/h5>\n<ul>\n<li>\n<p>\u6307\u9488\u4e0e\u6307\u9488\u4e4b\u95f4&#xff1a;\u5c06\u00a0T*\u00a0\u8f6c\u4e3a\u00a0U*&#xff08;\u4e24\u8005\u7c7b\u578b\u6beb\u65e0\u5173\u8054&#xff09;&#xff0c;\u4f8b\u5982\u00a0int*\u00a0\u8f6c\u4e3a\u00a0float*\u3002<\/p>\n<\/li>\n<li>\n<p>\u6307\u9488\u4e0e\u6574\u6570\u4e4b\u95f4&#xff1a;\u5c06\u6307\u9488\u8f6c\u4e3a\u8db3\u591f\u5927\u7684\u6574\u6570&#xff08;uintptr_t&#xff09;&#xff0c;\u6216\u53cd\u4e4b&#xff0c;\u7528\u4e8e\u5b58\u50a8\/\u4f20\u9012\u5730\u5740\u3002<\/p>\n<\/li>\n<li>\n<p>\u51fd\u6570\u6307\u9488\u4e4b\u95f4&#xff1a;\u5c06\u4e0d\u540c\u7b7e\u540d\u7684\u51fd\u6570\u6307\u9488\u4e92\u76f8\u8f6c\u6362&#xff08;\u6781\u5ea6\u5371\u9669&#xff0c;\u6781\u5c11\u4f7f\u7528&#xff09;\u3002<\/p>\n<\/li>\n<\/ul>\n<h5>\u6838\u5fc3\u89c4\u5219\u4e0e\u6781\u5927\u98ce\u9669&#xff08;\u5fc5\u987b\u7262\u8bb0&#xff09;<\/h5>\n<li>\n<p>\u4e0d\u505a\u4efb\u4f55\u68c0\u67e5&#xff1a;\u5168\u90e8\u7531\u7a0b\u5e8f\u5458\u4fdd\u8bc1\u6b63\u786e\u6027&#xff0c;\u7f16\u8bd1\u5668\u5b8c\u5168\u4fe1\u4efb\u4f60\u3002<\/p>\n<\/li>\n<li>\n<p>\u4e25\u683c\u522b\u540d\u89c4\u5219&#xff08;Strict Aliasing&#xff09;&#xff1a;\u901a\u8fc7\u00a0reinterpret_cast\u00a0\u8f6c\u6362\u540e\u89e3\u5f15\u7528&#xff08;\u5373\u8bfb\u5199\u5bf9\u8c61&#xff09;&#xff0c;\u901a\u5e38\u5c5e\u4e8e\u672a\u5b9a\u4e49\u884c\u4e3a&#xff08;UB&#xff09;&#xff0c;\u9664\u975e&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u76ee\u6807\u7c7b\u578b\u662f\u00a0char\u00a0\/\u00a0unsigned char\u00a0\/\u00a0std::byte&#xff08;\u7528\u4e8e\u67e5\u770b\u5bf9\u8c61\u5185\u5b58\u8868\u793a&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u6216\u8005\u6700\u7ec8\u628a\u6307\u9488\u8f6c\u56de\u539f\u6765\u7684\u7c7b\u578b\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u5bf9\u9f50\u95ee\u9898&#xff1a;\u5982\u679c\u76ee\u6807\u7c7b\u578b\u5bf9\u9f50\u8981\u6c42\u66f4\u4e25\u683c&#xff0c;\u76f4\u63a5\u89e3\u5f15\u7528\u53ef\u80fd\u5bfc\u81f4 CPU \u5d29\u6e83&#xff08;\u603b\u7ebf\u9519\u8bef&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u53ef\u79fb\u690d\u6027&#xff1a;\u4e0d\u540c\u5e73\u53f0&#xff08;\u5927\u5c0f\u7aef\u3001\u6307\u9488\u5927\u5c0f&#xff09;\u7ed3\u679c\u53ef\u80fd\u5b8c\u5168\u4e0d\u540c\u3002<\/p>\n<\/li>\n<h5>\u4f55\u65f6\u5e94\u8be5\u4f7f\u7528<\/h5>\n<ul>\n<li>\n<p>\u5e95\u5c42\u7cfb\u7edf\u7f16\u7a0b\u3001\u9a71\u52a8\u5f00\u53d1\u3001\u7f51\u7edc\u5c01\u5305\u62c6\u89e3\u3002<\/p>\n<\/li>\n<li>\n<p>\u5b9e\u73b0\u7c7b\u578b\u64e6\u9664\u6216\u5e8f\u5217\u5316&#xff08;\u4e34\u65f6\u5b58\u50a8\u4e3a\u5b57\u8282\u6d41&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u4e0e C \u5e93\u4ea4\u4e92\u65f6&#xff0c;\u9047\u5230\u4e0d\u900f\u660e\u7684\u00a0void*\u00a0\u53e5\u67c4\u3002<\/p>\n<\/li>\n<\/ul>\n<p>#include &lt;iostream&gt;<br \/>\n#include &lt;iomanip&gt;   \/\/ for std::setw, std::setfill<br \/>\n#include &lt;cstdint&gt;   \/\/ for uintptr_t<\/p>\n<p>int main() {<br \/>\n    int num &#061; 0x12345678;  \/\/ \u5341\u516d\u8fdb\u5236&#xff0c;\u4fbf\u4e8e\u89c2\u5bdf\u5b57\u8282<\/p>\n<p>    \/\/ &#8212;&#8212;&#8212;- \u573a\u666f1&#xff1a;\u5c06 int \u6307\u9488\u91cd\u65b0\u89e3\u91ca\u4e3a\u5b57\u8282\u6307\u9488 &#8212;&#8212;&#8212;-<br \/>\n    \/\/ \u8fd9\u662f\u6807\u51c6\u5141\u8bb8\u7684&#xff0c;\u56e0\u4e3a char\/unsigned char \u53ef\u4ee5\u68c0\u67e5\u4efb\u4f55\u5bf9\u8c61\u7684\u8868\u793a<br \/>\n    unsigned char* bytes &#061; reinterpret_cast&lt;unsigned char*&gt;(&amp;num);<\/p>\n<p>    std::cout &lt;&lt; &#034;\u6574\u6570 0x12345678 \u5728\u5185\u5b58\u4e2d\u7684\u5b57\u8282&#xff08;\u4ece\u4f4e\u5730\u5740\u5230\u9ad8\u5730\u5740&#xff09;: &#034;;<br \/>\n    for (size_t i &#061; 0; i &lt; sizeof(num); &#043;&#043;i) {<br \/>\n        \/\/ \u4ee5\u4e24\u4f4d\u5341\u516d\u8fdb\u5236\u8f93\u51fa\u6bcf\u4e2a\u5b57\u8282<br \/>\n        std::cout &lt;&lt; std::hex &lt;&lt; std::setw(2) &lt;&lt; std::setfill(&#039;0&#039;)<br \/>\n                  &lt;&lt; static_cast&lt;int&gt;(bytes[i]) &lt;&lt; &#034; &#034;;<br \/>\n    }<br \/>\n    std::cout &lt;&lt; std::endl;<br \/>\n    \/\/ \u8fd0\u884c\u8bf4\u660e&#xff1a;\u5728 x86 \u5c0f\u7aef\u673a\u5668\u4e0a\u8f93\u51fa &#034;78 56 34 12&#034;&#xff08;\u4f4e\u5b57\u8282\u5728\u524d&#xff09;<br \/>\n    \/\/          \u5728\u5927\u7aef\u673a\u5668\u4e0a\u5219\u4f1a\u8f93\u51fa &#034;12 34 56 78&#034;<\/p>\n<p>    \/\/ &#8212;&#8212;&#8212;- \u573a\u666f2&#xff1a;\u6307\u9488 &lt;-&gt; \u6574\u6570&#xff08;\u6807\u51c6\u4fdd\u8bc1\u5b89\u5168&#xff09; &#8212;&#8212;&#8212;-<br \/>\n    void* ptr &#061; &amp;num;                            \/\/ \u4efb\u610f\u6307\u9488<br \/>\n    uintptr_t addr &#061; reinterpret_cast&lt;uintptr_t&gt;(ptr); \/\/ \u6307\u9488\u8f6c\u4e3a\u6574\u6570&#xff08;\u5b58\u5730\u5740\u503c&#xff09;<\/p>\n<p>    std::cout &lt;&lt; &#034;\u6307\u9488\u5730\u5740\u8f6c\u4e3a\u6574\u6570: 0x&#034; &lt;&lt; std::hex &lt;&lt; addr &lt;&lt; std::endl;<\/p>\n<p>    \/\/ \u6574\u6570\u518d\u8f6c\u56de\u539f\u59cb\u7c7b\u578b\u7684\u6307\u9488&#xff08;\u5b89\u5168&#xff0c;\u56e0\u4e3a\u6307\u5411\u7684\u5bf9\u8c61\u4ecd\u7136\u5b58\u5728\u4e14\u6709\u6548&#xff09;<br \/>\n    int* recovered &#061; reinterpret_cast&lt;int*&gt;(addr);<br \/>\n    std::cout &lt;&lt; &#034;\u8f6c\u56de\u6307\u9488\u540e\u8bfb\u53d6\u7684\u503c: &#034; &lt;&lt; *recovered &lt;&lt; std::dec &lt;&lt; std::endl; \/\/ \u8f93\u51fa 0x12345678<\/p>\n<p>    return 0;<br \/>\n} <\/p>\n","protected":false},"excerpt":{"rendered":"<p>reinterpret_cast\u00a0\u8be6\u89e3<br \/>\nreinterpret_cast\u00a0\u662f C \u4e2d\u6700\u5371\u9669\u3001\u6700\u5f3a\u5927&#xff0c;\u4e5f\u6700\u63a5\u8fd1\u5e95\u5c42\u786c\u4ef6\u7684\u7c7b\u578b\u8f6c\u6362\u64cd\u4f5c\u7b26\u3002\u5b83\u7684\u540d\u5b57\u201creinterpret\u201d&#xff08;\u91cd\u65b0\u89e3\u91ca&#xff09;\u5df2\u7ecf\u63ed\u793a\u4e86\u5176\u672c\u8d28&#xff1a;\u628a\u5185\u5b58\u4e2d\u7684\u4e8c\u8fdb\u5236\u6bd4\u7279\u4f4d&#xff0c;\u5f3a\u884c\u5f53\u4f5c\u53e6\u4e00\u79cd\u7c7b\u578b\u6765\u89e3\u8bfb&#xff0c;\u800c\u4e0d\u505a\u4efb\u4f55\u6570\u503c\u8f6c\u6362\u6216\u8fd0\u884c\u65f6\u68c0\u67e5\u3002<br \/>\n\u8bed\u6cd5<br \/>\ncpp<br \/>\nreinterpret_cast(expression)<br \/>\n\u5176\u4e2d\u00a0new<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[55,190],"topic":[],"class_list":["post-97245","post","type-post","status-publish","format-standard","hentry","category-server","tag-c","tag-190"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6df1\u5165\u7406\u89e3C++ \u7c7b\u578b\u8f6c\u6362\uff1c\u56db\uff1ereinterpret_cast - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/97245.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6df1\u5165\u7406\u89e3C++ \u7c7b\u578b\u8f6c\u6362\uff1c\u56db\uff1ereinterpret_cast - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"reinterpret_cast\u00a0\u8be6\u89e3 reinterpret_cast\u00a0\u662f C \u4e2d\u6700\u5371\u9669\u3001\u6700\u5f3a\u5927&#xff0c;\u4e5f\u6700\u63a5\u8fd1\u5e95\u5c42\u786c\u4ef6\u7684\u7c7b\u578b\u8f6c\u6362\u64cd\u4f5c\u7b26\u3002\u5b83\u7684\u540d\u5b57\u201creinterpret\u201d&#xff08;\u91cd\u65b0\u89e3\u91ca&#xff09;\u5df2\u7ecf\u63ed\u793a\u4e86\u5176\u672c\u8d28&#xff1a;\u628a\u5185\u5b58\u4e2d\u7684\u4e8c\u8fdb\u5236\u6bd4\u7279\u4f4d&#xff0c;\u5f3a\u884c\u5f53\u4f5c\u53e6\u4e00\u79cd\u7c7b\u578b\u6765\u89e3\u8bfb&#xff0c;\u800c\u4e0d\u505a\u4efb\u4f55\u6570\u503c\u8f6c\u6362\u6216\u8fd0\u884c\u65f6\u68c0\u67e5\u3002 \u8bed\u6cd5 cpp reinterpret_cast(expression) \u5176\u4e2d\u00a0new\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/97245.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-29T00:35:30+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/97245.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/97245.html\",\"name\":\"\u6df1\u5165\u7406\u89e3C++ \u7c7b\u578b\u8f6c\u6362\uff1c\u56db\uff1ereinterpret_cast - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-29T00:35:30+00:00\",\"dateModified\":\"2026-08-29T00:35:30+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/97245.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/97245.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/97245.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6df1\u5165\u7406\u89e3C++ \u7c7b\u578b\u8f6c\u6362\uff1c\u56db\uff1ereinterpret_cast\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u6df1\u5165\u7406\u89e3C++ \u7c7b\u578b\u8f6c\u6362\uff1c\u56db\uff1ereinterpret_cast - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/97245.html","og_locale":"zh_CN","og_type":"article","og_title":"\u6df1\u5165\u7406\u89e3C++ \u7c7b\u578b\u8f6c\u6362\uff1c\u56db\uff1ereinterpret_cast - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"reinterpret_cast\u00a0\u8be6\u89e3 reinterpret_cast\u00a0\u662f C \u4e2d\u6700\u5371\u9669\u3001\u6700\u5f3a\u5927&#xff0c;\u4e5f\u6700\u63a5\u8fd1\u5e95\u5c42\u786c\u4ef6\u7684\u7c7b\u578b\u8f6c\u6362\u64cd\u4f5c\u7b26\u3002\u5b83\u7684\u540d\u5b57\u201creinterpret\u201d&#xff08;\u91cd\u65b0\u89e3\u91ca&#xff09;\u5df2\u7ecf\u63ed\u793a\u4e86\u5176\u672c\u8d28&#xff1a;\u628a\u5185\u5b58\u4e2d\u7684\u4e8c\u8fdb\u5236\u6bd4\u7279\u4f4d&#xff0c;\u5f3a\u884c\u5f53\u4f5c\u53e6\u4e00\u79cd\u7c7b\u578b\u6765\u89e3\u8bfb&#xff0c;\u800c\u4e0d\u505a\u4efb\u4f55\u6570\u503c\u8f6c\u6362\u6216\u8fd0\u884c\u65f6\u68c0\u67e5\u3002 \u8bed\u6cd5 cpp reinterpret_cast(expression) \u5176\u4e2d\u00a0new","og_url":"https:\/\/www.wsisp.com\/helps\/97245.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-29T00:35:30+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/97245.html","url":"https:\/\/www.wsisp.com\/helps\/97245.html","name":"\u6df1\u5165\u7406\u89e3C++ \u7c7b\u578b\u8f6c\u6362\uff1c\u56db\uff1ereinterpret_cast - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-29T00:35:30+00:00","dateModified":"2026-08-29T00:35:30+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/97245.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/97245.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/97245.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u6df1\u5165\u7406\u89e3C++ \u7c7b\u578b\u8f6c\u6362\uff1c\u56db\uff1ereinterpret_cast"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/97245","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=97245"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/97245\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=97245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=97245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=97245"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=97245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}