{"id":3397,"date":"2025-06-07T12:00:26","date_gmt":"2025-06-07T04:00:26","guid":{"rendered":"https:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91c%e5%b0%84%e5%87%bb%e5%b0%8f%e6%b8%b8%e6%88%8f\/"},"modified":"2025-06-07T12:00:26","modified_gmt":"2025-06-07T04:00:26","slug":"%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91c%e5%b0%84%e5%87%bb%e5%b0%8f%e6%b8%b8%e6%88%8f","status":"publish","type":"post","link":"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91c%e5%b0%84%e5%87%bb%e5%b0%8f%e6%b8%b8%e6%88%8f\/","title":{"rendered":"\u3010\u8f6c\u8f7d\u3011c++\u5c04\u51fb\u5c0f\u6e38\u620f"},"content":{"rendered":"<div class=\"article_content clearfix\" id=\"article_content\">\n <link href=\"https:\/\/csdnimg.cn\/release\/blogv2\/dist\/mdeditor\/css\/editerView\/kdoc_html_views-1a98987dfd.css\" rel=\"stylesheet\"\/>\n <link href=\"https:\/\/csdnimg.cn\/release\/blogv2\/dist\/mdeditor\/css\/editerView\/ck_htmledit_views-704d5b9767.css\" rel=\"stylesheet\"\/>\n<div class=\"htmledit_views atom-one-dark\" id=\"content_views\">\n<p>\n   \u8f6c\u8f7d\u4e8e\uff1a<br \/>\n   <a href=\"https:\/\/www.jb51.net\/article\/170405.htm\" rel=\"nofollow\" title=\"https:\/\/www.jb51.net\/article\/170405.htm\"><br \/>\n    https:\/\/www.jb51.net\/article\/170405.htm<br \/>\n   <\/a>\n  <\/p>\n<p>\n   \u8fd9\u7bc7\u6587\u7ae0\u4e3b\u8981\u4e3a\u5927\u5bb6\u8be6\u7ec6\u4ecb\u7ecd\u4e86C++\u5b9e\u73b0\u7b80\u5355\u5c04\u51fb\u5c0f\u6e38\u620f\uff0c\u6587\u4e2d\u793a\u4f8b\u4ee3\u7801\u4ecb\u7ecd\u7684\u975e\u5e38\u8be6\u7ec6\uff0c\u5177\u6709\u4e00\u5b9a\u7684\u53c2\u8003\u4ef7\u503c\uff0c\u611f\u5174\u8da3\u7684\u5c0f\u4f19\u4f34\u4eec\u53ef\u4ee5\u53c2\u8003\u4e00\u4e0b\n  <\/p>\n<p>\n   \u4f7f\u7528c++\u5236\u4f5c\u7b80\u5355\u7684\u6a2a\u677f\u5c04\u51fb\u5c0f\u6e38\u620f\uff0c\u4f9b\u5927\u5bb6\u53c2\u8003\uff0c\u5177\u4f53\u5185\u5bb9\u5982\u4e0b\n  <\/p>\n<pre><code class=\"language-cpp\">#include &lt;easyx.h&gt;\n#include &lt;time.h&gt;\n#include &lt;conio.h&gt;\n\nclass Bullet;\nclass Tank;\nclass E_Bullet;\nclass Boss;\nbool dead = false;\nbool wined = false;\nstruct pos\/\/\u5750\u6807\u7c7b\n{\n int a;\n int b;\n};\nclass E_Bullet\/\/\u654c\u4eba\u6253\u51fa\u7684\u5b50\u5f39\n{\npublic:\n clock_t d;\n int x;\n int y;\n bool on = false;\n pos show()\/\/\u753b\u51fa\u65b0\u7684\u4f4d\u7f6e\n {\n setfillcolor(RGB(255, 180, 20));\n fillrectangle(x - 5, y - 5, x + 5, y + 5);\n return pos{ x,y };\n }\n pos del()\/\/\u8986\u76d6\u539f\u6765\u7684\u4f4d\u7f6e\n {\n setfillcolor(0);\n setlinecolor(0);\n fillrectangle(x - 5, y - 5, x + 5, y + 5);\n rectangle(x - 5, y - 5, x + 5, y + 5);\n return pos{ x,y };\n }\n pos move()\/\/\u5de6\u79fb\n {\n x -= 3;\n return pos{ x,y };\n }\n};\nclass Bullet\/\/\u73a9\u5bb6\u6253\u51fa\u7684\u5b50\u5f39\uff0c\u540c\u4e0a\n{\npublic:\n clock_t d;\n int x;\n int y;\n bool on = false;\n pos show()\n {\n setfillcolor(RGB(150, 180, 210));\n fillrectangle(x - 5, y - 5, x + 5, y + 5);\n return pos{ x,y };\n }\n pos del()\n {\n setfillcolor(0);\n setlinecolor(0);\n fillrectangle(x - 5, y - 5, x + 5, y + 5);\n rectangle(x - 5, y - 5, x + 5, y + 5);\n return pos{ x,y };\n }\n pos move()\/\/\u53f3\u79fb\n {\n x += 3;\n return pos{ x,y };\n }\n};\nclass Boss\/\/\u654c\u4eba\n{\npublic:\n bool hurting = false;\n clock_t d_hurt;\n COLORREF clr = RGB(0, 130, 125);\n int x;\n int y;\n int hp = 100;\/\/\u751f\u547d\n clock_t d;\/\/\u5224\u65ad\u4e3e\u4f8b\u4e0a\u4e00\u6b21\u6267\u884c\u67d0\u4e00\u51fd\u6570\u8fc7\u4e86\u591a\u4e45\n clock_t att_d;\n bool angle = false;\/\/\u65b9\u5411\n pos show()\n {\n setfillcolor(clr);\n fillrectangle(x - 20, y - 40, x + 20, y + 40);\n return pos{ x,y };\n }\n pos del()\n {\n setfillcolor(0);\n setlinecolor(0);\n rectangle(x - 20, y - 40, x + 20, y + 40);\n fillrectangle(x - 20, y - 40, x + 20, y + 40);\n return pos{ x,y };\n }\n void fire(E_Bullet&amp; but)\/\/\u653b\u51fb\n {\n but.on = true;\/\/\u653e\u7f6e\u4e00\u4e2a\u5b50\u5f39\n but.x = x - 20;\n but.y = y;\n but.d = clock();\n }\n void move()\/\/\u4e0a\u4e0a\u4e0b\u4e0b\u5f97\u79fb\u52a8\n {\n if (angle == true)\n y -= 5;\n if (angle == false)\n y += 5;\n if (y &gt;= 440)\n angle = true;\n if (y &lt;= 40)\n angle = false;\n }\n void hurt()\/\/\u53d7\u4f24\n {\n hp -= 4;\n d_hurt = clock();\n setfillcolor(0);\n setlinecolor(WHITE);\n fillrectangle(160, 485, 560, 510);\/\/\u66f4\u65b0\u8840\u6761\n rectangle(160, 485, 160 + hp * 4, 510);\n setfillcolor(RGB(230, 0, 1));\n setlinecolor(RGB(255, 255, 255));\n fillrectangle(160, 485, 160 + hp * 4, 510);\n rectangle(160, 485, 160 + hp * 4, 510);\n hurting = true;\n if (hp &lt;= 0)\/\/\u6b7b\u4ea1\n {\n wined = true;\n }\n }\n};\nclass Tank\/\/\u73a9\u5bb6\u7c7b\uff0c\u540c\u4e0a\n{\npublic:\n bool hurting = false;\n int hp = 100;\n int x;\n COLORREF clr = RGB(150, 180, 210);\n int y;\n clock_t d_hurt;\n Tank() {}\n Tank(int _x, int _y) { x = _x; y = _y; }\n Tank operator=(pos p) { x = p.a; y = p.a; }\n pos show()\n {\n setfillcolor(clr);\n fillrectangle(x - 25, y - 25, x + 25, y + 25);\n setfillcolor(RGB(100, 200, 180));\n fillrectangle(x, y + 5, x + 40, y - 5);\n return pos{ x,y };\n }\n pos del()\n {\n setfillcolor(0);\n setlinecolor(0);\n fillrectangle(x - 25, y - 25, x + 25, y + 25);\n rectangle(x - 25, y - 25, x + 25, y + 25);\n fillrectangle(x, y + 5, x + 40, y - 5);\n rectangle(x, y + 5, x + 40, y - 5);\n return pos{ x,y };\n }\n void fire(Bullet&amp; but)\n {\n but.on = true;\n but.x = x + 45;\n but.y = y;\n but.d = clock();\n but.show();\n }\n void hurt()\n {\n hp -= 2;\n d_hurt = clock();\n setfillcolor(0);\n setlinecolor(WHITE);\n fillrectangle(160, 515, 560, 540);\n rectangle(160, 515, 560, 540);\n rectangle(160, 515, 160 + hp * 4, 540);\n setfillcolor(RGB(0, 255, 1));\n setlinecolor(RGB(255, 255, 255));\n fillrectangle(160, 515, 160 + hp * 4, 540);\n rectangle(160, 515, 160 + hp * 4, 540);\n hurting = true;\n if (hp &lt;= 0)\n dead = true;\n }\n};\n#define BT_MAX 8\nint main()\n{\n initgraph(640, 550, 4);\/\/\u521d\u59cb\u5316\u5c4f\u5e55\n settextcolor(RGB(0, 254, 0));\n settextstyle(35, 0, _T(\"\u9ed1\u4f53\"));\n outtextxy(150, 200, _T(\"W,S\u79fb\u52a8,K\u653b\u51fb\"));\n Sleep(3000);\n setlinecolor(0);\n setfillcolor(0);\n rectangle(0, 0, 640, 550);\n fillrectangle(0, 0, 640, 550);\n setlinecolor(RGB(255, 255, 255));\n setfillcolor(RGB(255, 255, 255));\n clock_t delay = clock();\/\/\u73a9\u5bb6\u79fb\u52a8\u7684\u5ef6\u65f6\n clock_t d_f = clock();\/\/\u73a9\u5bb6\u5f00\u706b\u7684\u5ef6\u65f6\n line(0, 481, 640, 481);\/\/\u5206\u5272\u753b\u9762\u4e0e\u8840\u6761\n Bullet bt[BT_MAX];\/\/\u73a9\u5bb6\u7684\u5b50\u5f39\n Tank tk(30, 30);\/\/\u73a9\u5bb6\n Boss bo;\/\/\u654c\u4eba\n bo.x = 580;\n bo.y = 240;\n E_Bullet ebt[BT_MAX];\/\/\u654c\u4eba\u7684\u5b50\u5f39\n bo.d = clock();\/\/\u521d\u59cb\u5316\u5ef6\u65f6\n bo.att_d = clock();\n tk.show();\n settextstyle(20, 0, _T(\"\u9ed1\u4f53\"));\n outtextxy(10, 485, _T(\"BOSS\u7684\u751f\u547d\u503c:\"));\n setfillcolor(RGB(230, 0, 1));\n fillrectangle(160, 485, 560, 510);\/\/\u654c\u4eba\u8840\u6761\n outtextxy(10, 520, _T(\"\u73a9\u5bb6\u7684\u751f\u547d\u503c:\"));\n setfillcolor(RGB(0, 255, 1));\n fillrectangle(160, 515, 560, 540);\/\/\u73a9\u5bb6\u8840\u6761\n while (1)\/\/\u4e3b\u5faa\u73af\n {\n if (wined || dead)\/\/\u73a9\u5bb6\u6b7b\u4e86\u6216\u8005\u654c\u4eba\u6b7b\u4e86\n break;\n if (GetAsyncKeyState('W') &amp; 0x8000)\/\/\u73a9\u5bb6\u79fb\u52a8\n {\n if (tk.y &gt; 28 &amp;&amp; (clock() - delay) &gt;= 40)\n {\n tk.del(); tk.y -= 3; tk.show(); delay = clock();\n }\n }\n if (GetAsyncKeyState('w') &amp; 0x8000)\/\/\u73a9\u5bb6\u79fb\u52a8\n {\n if (tk.y &gt; 28 &amp;&amp; (clock() - delay) &gt;= 40)\n {\n tk.del(); tk.y -= 3; tk.show(); delay = clock();\n }\n }\n if (GetAsyncKeyState('k') &amp; 0x8000)\/\/\u73a9\u5bb6\u5f00\u706b\n {\n for (int i = 0; i &lt; BT_MAX; i++)\n {\n if (bt[i].on == false &amp;&amp; (clock() - d_f) &gt; 800)\n {\n  bt[i].on = true;\n  tk.fire(bt[i]);\n  d_f = clock();\n  break;\n }\n }\n }\n if (GetAsyncKeyState('K') &amp; 0x8000)\/\/\u73a9\u5bb6\u5f00\u706b\n {\n for (int i = 0; i &lt; BT_MAX; i++)\n {\n if (bt[i].on == false &amp;&amp; (clock() - d_f) &gt; 800)\n {\n  tk.fire(bt[i]);\n  d_f = clock();\n  break;\n }\n }\n }\n if (GetAsyncKeyState('S') &amp; 0x8000)\/\/\u73a9\u5bb6\u79fb\u52a8\n {\n if (tk.y &lt; 452 &amp;&amp; (clock() - delay) &gt;= 40)\n {\n tk.del(); tk.y += 3; tk.show(); delay = clock();\n }\n }\n if (GetAsyncKeyState('s') &amp; 0x8000)\/\/\u73a9\u5bb6\u79fb\u52a8\n if (tk.y &lt; 452 &amp;&amp; (clock() - delay) &gt;= 40)\n {\n tk.del(); tk.y += 3; tk.show(); delay = clock();\n }\n for (int i = 0; i &lt; BT_MAX; i++)\/\/\u904d\u5386\u5b50\u5f39\uff0c\u4f7f\u5b50\u5f39\u5237\u65b0\n {\n if (bt[i].on == true &amp;&amp; (clock() - bt[i].d) &gt; 20)\n {\n bt[i].del();\n bt[i].move();\n bt[i].show();\n bt[i].d = clock();\n if (bt[i].x &gt;= 635)\n  bt[i].on = false, bt[i].del();\/\/\u5230\u8fbe\u4e86\u5c4f\u5e55\u6700\u53f3\u7aef\n if ((bt[i].x + 5 &gt;= bo.x - 20 &amp;&amp; bt[i].x - 5 &lt;= bo.x + 20) &amp;&amp; (bt[i].y - 5 &lt; bo.y + 40 &amp;&amp; bt[i].y + 5 &gt; bo.y - 40))\n  \/\/\u51fb\u4e2d\u654c\u4eba\n  bt[i].on = false, bo.hurt(), bt[i].del();\n }\n }\n if (clock() - bo.att_d &gt; 700)\/\/\u654c\u4eba\u81ea\u52a8\u5f00\u706b\n {\n for (int i = 0; i &lt; BT_MAX; i++)\n {\n if (ebt[i].on == false)\n {\n  bo.fire(ebt[i]); break;\n }\n }\n bo.att_d = clock();\n }\n for (int i = 0; i &lt; BT_MAX; i++)\/\/\u654c\u4eba\u5b50\u5f39\u5237\u65b0\uff0c\u540c\u4e0a\n {\n if (ebt[i].on == true &amp;&amp; (clock() - ebt[i].d &gt; 20))\n {\n ebt[i].del();\n ebt[i].move();\n ebt[i].show();\n ebt[i].d = clock();\n if (ebt[i].x &lt; 5)\n  ebt[i].del(), ebt[i].on = false;\n if (ebt[i].x - 5 &lt; tk.x + 25 &amp;&amp; ebt[i].x + 5 &gt; tk.x - 25 &amp;&amp; ebt[i].y - 5 &lt; tk.y + 25 &amp;&amp; ebt[i].y + 5 &gt; tk.y - 25)\n {\n  ebt[i].on = false, tk.hurt(), ebt[i].del();\n }\n }\n }\n if (tk.hurting == true)\/\/\u73a9\u5bb6\u53d7\u4f24\u95ea\u70c10.1\u79d2\n if (clock() - tk.d_hurt &gt; 100)\n {\n tk.clr = RGB(150, 180, 210), tk.show(), tk.hurting = false;\n }\n else\n tk.clr = RGB(255, 0, 0), tk.show();\n if (bo.hurting == true)\/\/\u654c\u4eba\u53d7\u4f24\u95ea\u70c10.1\u79d2\n if (clock() - bo.d_hurt &gt; 100)\n {\n bo.clr = RGB(0, 130, 125), bo.show(), bo.hurting = false;\n }\n else\n bo.clr = RGB(0, 255, 0), bo.show();\n if (clock() - bo.d &gt; 50)\/\/\u654c\u4eba\u79fb\u52a8\u5ef6\u65f6;\n bo.del(), bo.move(), bo.show(), bo.d = clock();\n }\n if (wined)\/\/\u80dc\u8d1f\u5df2\u5206\n {\n settextcolor(RGB(0, 254, 0));\n settextstyle(35, 0, _T(\"\u9ed1\u4f53\"));\n outtextxy(150, 200, _T(\"\u4f60\u6253\u8d25\u4e86boss!\u4f60\u8d62\u4e86\uff01\uff01\"));\n }\n else\n {\n settextcolor(RGB(254, 0, 0));\n settextstyle(35, 0, _T(\"\u9ed1\u4f53\"));\n outtextxy(140, 200, _T(\"\u4f60\u88abboss\u6253\u8d25\u4e86\uff01\"));\n }\n Sleep(5000);\n closegraph();\n return 0;\n}<\/code><\/pre>\n<\/p><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u8f6c\u8f7d\u4e8e\uff1a https:\/\/www.jb51.net\/article\/170405.htm \u8fd9\u7bc7\u6587\u7ae0\u4e3b\u8981\u4e3a\u5927\u5bb6\u8be6 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":215,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-3397","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-23"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010\u8f6c\u8f7d\u3011c++\u5c04\u51fb\u5c0f\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/\u3010\u8f6c\u8f7d\u3011c\u5c04\u51fb\u5c0f\u6e38\u620f\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010\u8f6c\u8f7d\u3011c++\u5c04\u51fb\u5c0f\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\" \/>\n<meta property=\"og:description\" content=\"\u8f6c\u8f7d\u4e8e\uff1a https:\/\/www.jb51.net\/article\/170405.htm \u8fd9\u7bc7\u6587\u7ae0\u4e3b\u8981\u4e3a\u5927\u5bb6\u8be6 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/\u3010\u8f6c\u8f7d\u3011c\u5c04\u51fb\u5c0f\u6e38\u620f\/\" \/>\n<meta property=\"og:site_name\" content=\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-07T04:00:26+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"260\" \/>\n\t<meta property=\"og:image:height\" content=\"180\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin@wunen\" \/>\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@wunen\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91c%e5%b0%84%e5%87%bb%e5%b0%8f%e6%b8%b8%e6%88%8f\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91c%e5%b0%84%e5%87%bb%e5%b0%8f%e6%b8%b8%e6%88%8f\/\"},\"author\":{\"name\":\"admin@wunen\",\"@id\":\"http:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8\"},\"headline\":\"\u3010\u8f6c\u8f7d\u3011c++\u5c04\u51fb\u5c0f\u6e38\u620f\",\"datePublished\":\"2025-06-07T04:00:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91c%e5%b0%84%e5%87%bb%e5%b0%8f%e6%b8%b8%e6%88%8f\/\"},\"wordCount\":9,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/www.wunen.com\/#organization\"},\"image\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91c%e5%b0%84%e5%87%bb%e5%b0%8f%e6%b8%b8%e6%88%8f\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"articleSection\":[\"\u5c04\u51fb\u6e38\u620f\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91c%e5%b0%84%e5%87%bb%e5%b0%8f%e6%b8%b8%e6%88%8f\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91c%e5%b0%84%e5%87%bb%e5%b0%8f%e6%b8%b8%e6%88%8f\/\",\"url\":\"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91c%e5%b0%84%e5%87%bb%e5%b0%8f%e6%b8%b8%e6%88%8f\/\",\"name\":\"\u3010\u8f6c\u8f7d\u3011c++\u5c04\u51fb\u5c0f\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"isPartOf\":{\"@id\":\"http:\/\/www.wunen.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91c%e5%b0%84%e5%87%bb%e5%b0%8f%e6%b8%b8%e6%88%8f\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91c%e5%b0%84%e5%87%bb%e5%b0%8f%e6%b8%b8%e6%88%8f\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"datePublished\":\"2025-06-07T04:00:26+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91c%e5%b0%84%e5%87%bb%e5%b0%8f%e6%b8%b8%e6%88%8f\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91c%e5%b0%84%e5%87%bb%e5%b0%8f%e6%b8%b8%e6%88%8f\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91c%e5%b0%84%e5%87%bb%e5%b0%8f%e6%b8%b8%e6%88%8f\/#primaryimage\",\"url\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"contentUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"width\":260,\"height\":180},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91c%e5%b0%84%e5%87%bb%e5%b0%8f%e6%b8%b8%e6%88%8f\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"http:\/\/www.wunen.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010\u8f6c\u8f7d\u3011c++\u5c04\u51fb\u5c0f\u6e38\u620f\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.wunen.com\/#website\",\"url\":\"http:\/\/www.wunen.com\/\",\"name\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"description\":\"\u8f6f\u4ef6\u8d44\u8baf\u6765\u7269\u5ae9\",\"publisher\":{\"@id\":\"http:\/\/www.wunen.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.wunen.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Organization\",\"@id\":\"http:\/\/www.wunen.com\/#organization\",\"name\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"url\":\"http:\/\/www.wunen.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/www.wunen.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png\",\"contentUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png\",\"width\":1024,\"height\":1024,\"caption\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\"},\"image\":{\"@id\":\"http:\/\/www.wunen.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"http:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8\",\"name\":\"admin@wunen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/www.wunen.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g\",\"caption\":\"admin@wunen\"},\"sameAs\":[\"http:\/\/www.wunen.com\"],\"url\":\"http:\/\/www.wunen.com\/index.php\/author\/adminwunen\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010\u8f6c\u8f7d\u3011c++\u5c04\u51fb\u5c0f\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","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":"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/\u3010\u8f6c\u8f7d\u3011c\u5c04\u51fb\u5c0f\u6e38\u620f\/","og_locale":"zh_CN","og_type":"article","og_title":"\u3010\u8f6c\u8f7d\u3011c++\u5c04\u51fb\u5c0f\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","og_description":"\u8f6c\u8f7d\u4e8e\uff1a https:\/\/www.jb51.net\/article\/170405.htm \u8fd9\u7bc7\u6587\u7ae0\u4e3b\u8981\u4e3a\u5927\u5bb6\u8be6 [&hellip;]","og_url":"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/\u3010\u8f6c\u8f7d\u3011c\u5c04\u51fb\u5c0f\u6e38\u620f\/","og_site_name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","article_published_time":"2025-06-07T04:00:26+00:00","og_image":[{"width":260,"height":180,"url":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","type":"image\/jpeg"}],"author":"admin@wunen","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin@wunen","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91c%e5%b0%84%e5%87%bb%e5%b0%8f%e6%b8%b8%e6%88%8f\/#article","isPartOf":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91c%e5%b0%84%e5%87%bb%e5%b0%8f%e6%b8%b8%e6%88%8f\/"},"author":{"name":"admin@wunen","@id":"http:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8"},"headline":"\u3010\u8f6c\u8f7d\u3011c++\u5c04\u51fb\u5c0f\u6e38\u620f","datePublished":"2025-06-07T04:00:26+00:00","mainEntityOfPage":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91c%e5%b0%84%e5%87%bb%e5%b0%8f%e6%b8%b8%e6%88%8f\/"},"wordCount":9,"commentCount":0,"publisher":{"@id":"http:\/\/www.wunen.com\/#organization"},"image":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91c%e5%b0%84%e5%87%bb%e5%b0%8f%e6%b8%b8%e6%88%8f\/#primaryimage"},"thumbnailUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","articleSection":["\u5c04\u51fb\u6e38\u620f"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91c%e5%b0%84%e5%87%bb%e5%b0%8f%e6%b8%b8%e6%88%8f\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91c%e5%b0%84%e5%87%bb%e5%b0%8f%e6%b8%b8%e6%88%8f\/","url":"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91c%e5%b0%84%e5%87%bb%e5%b0%8f%e6%b8%b8%e6%88%8f\/","name":"\u3010\u8f6c\u8f7d\u3011c++\u5c04\u51fb\u5c0f\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","isPartOf":{"@id":"http:\/\/www.wunen.com\/#website"},"primaryImageOfPage":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91c%e5%b0%84%e5%87%bb%e5%b0%8f%e6%b8%b8%e6%88%8f\/#primaryimage"},"image":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91c%e5%b0%84%e5%87%bb%e5%b0%8f%e6%b8%b8%e6%88%8f\/#primaryimage"},"thumbnailUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","datePublished":"2025-06-07T04:00:26+00:00","breadcrumb":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91c%e5%b0%84%e5%87%bb%e5%b0%8f%e6%b8%b8%e6%88%8f\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91c%e5%b0%84%e5%87%bb%e5%b0%8f%e6%b8%b8%e6%88%8f\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91c%e5%b0%84%e5%87%bb%e5%b0%8f%e6%b8%b8%e6%88%8f\/#primaryimage","url":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","contentUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","width":260,"height":180},{"@type":"BreadcrumbList","@id":"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91c%e5%b0%84%e5%87%bb%e5%b0%8f%e6%b8%b8%e6%88%8f\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/www.wunen.com\/"},{"@type":"ListItem","position":2,"name":"\u3010\u8f6c\u8f7d\u3011c++\u5c04\u51fb\u5c0f\u6e38\u620f"}]},{"@type":"WebSite","@id":"http:\/\/www.wunen.com\/#website","url":"http:\/\/www.wunen.com\/","name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","description":"\u8f6f\u4ef6\u8d44\u8baf\u6765\u7269\u5ae9","publisher":{"@id":"http:\/\/www.wunen.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.wunen.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Organization","@id":"http:\/\/www.wunen.com\/#organization","name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","url":"http:\/\/www.wunen.com\/","logo":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/www.wunen.com\/#\/schema\/logo\/image\/","url":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png","contentUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png","width":1024,"height":1024,"caption":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51"},"image":{"@id":"http:\/\/www.wunen.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"http:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8","name":"admin@wunen","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/www.wunen.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g","caption":"admin@wunen"},"sameAs":["http:\/\/www.wunen.com"],"url":"http:\/\/www.wunen.com\/index.php\/author\/adminwunen\/"}]}},"_links":{"self":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts\/3397","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/comments?post=3397"}],"version-history":[{"count":0,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts\/3397\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/media\/215"}],"wp:attachment":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/media?parent=3397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/categories?post=3397"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/tags?post=3397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}