{"id":89857,"date":"2026-08-03T23:32:53","date_gmt":"2026-08-03T15:32:53","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/89857.html"},"modified":"2026-08-03T23:32:53","modified_gmt":"2026-08-03T15:32:53","slug":"%e4%bb%8e%e9%9b%b6%e5%86%99%e4%b8%80%e4%b8%aa%e8%83%bd%e7%8e%a9%e7%9a%84-c-%e8%af%ad%e8%a8%80%e6%89%ab%e9%9b%b7","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/89857.html","title":{"rendered":"\u4ece\u96f6\u5199\u4e00\u4e2a\u80fd\u73a9\u7684 C \u8bed\u8a00\u626b\u96f7"},"content":{"rendered":"<h3>\u4e00\u3001\u6211\u4eec\u8981\u505a\u51fa\u4e00\u4e2a\u4ec0\u4e48\u6837\u7684\u626b\u96f7<\/h3>\n<p>\u5148\u660e\u786e\u76ee\u6807&#xff0c;\u514d\u5f97\u5199\u7740\u5199\u7740\u8dd1\u504f&#xff1a;<\/p>\n<ul>\n<li>\u68cb\u76d8 9\u00d79&#xff0c;\u5171 10 \u9897\u96f7&#xff08;\u7b80\u5355\u96be\u5ea6&#xff09;\u3002<\/li>\n<li>\u73a9\u5bb6\u8f93\u5165\u5750\u6807 (\u884c, \u5217)&#xff0c;\u63ed\u5f00\u90a3\u4e00\u683c\u3002<\/li>\n<li>\u5982\u679c\u90a3\u683c\u5468\u56f4\u6709\u96f7&#xff0c;\u663e\u793a\u6570\u5b57 &#061; \u5468\u56f4 8 \u683c\u91cc\u7684\u96f7\u6570&#xff1b;\u5982\u679c\u662f 0 \u9897\u96f7&#xff0c;\u5c31\u81ea\u52a8\u628a\u5468\u56f4\u4e5f\u63ed\u5f00&#xff08;\u8fde\u9501\u5c55\u5f00&#xff09;\u3002<\/li>\n<li>\u6240\u6709\u975e\u96f7\u683c\u5b50\u90fd\u88ab\u63ed\u5f00 &#061; \u80dc\u5229&#xff1b;\u8e29\u5230\u96f7 &#061; \u5931\u8d25\u3002<\/li>\n<li>\u9996\u51fb\u4fdd\u62a4&#xff1a;\u7b2c\u4e00\u6b21\u70b9\u7684\u90a3\u4e00\u683c\u4fdd\u8bc1\u4e0d\u662f\u96f7&#xff0c;\u4f53\u9a8c\u66f4\u53cb\u597d\u3002<\/li>\n<\/ul>\n<p>\u4e00\u4efd\u8dd1\u8d77\u6765\u7684\u6837\u5b50&#xff08;\u771f\u5b9e\u8f93\u51fa&#xff0c;\u7cbe\u7b80\u663e\u793a&#xff09;&#xff1a;<\/p>\n<p>&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n   \u626b  \u96f7  \u6e38  \u620f<br \/>\n&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n    1. \u5f00\u59cb\u6e38\u620f<br \/>\n    0. \u9000\u51fa\u6e38\u620f<br \/>\n&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n\u8bf7\u9009\u62e9:&gt; 1<br \/>\n\u6e38\u620f\u5f00\u59cb&#xff01;<br \/>\n1  2  3  4  5  6  7  8  9<br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\n1 | *  *  *  *  *  *  *  *  *<br \/>\n2 | *  1  1  *  *  *  *  *  *<br \/>\n3 | *  *  *  3  2  *  *  *  *<br \/>\n&#8230;<br \/>\n\u8fd8\u5269 71 \u683c\u5f85\u6392\u67e5&#xff0c;\u8bf7\u8f93\u5165\u5750\u6807&#xff08;\u884c \u5217&#xff0c;\u7528\u7a7a\u683c\u9694\u5f00&#xff09;:&gt; 5 5<\/p>\n<p>\u6700\u540e\u4e00\u884c\u91cc\u7684 71 \u662f\u8fd8\u6ca1\u6392\u67e5\u7684\u5b89\u5168\u683c\u603b\u6570&#xff08;81 \u683c \u2212 10 \u9897\u96f7&#xff09;\u3002\u6bcf\u63ed\u5f00\u4e00\u4e2a\u5b89\u5168\u683c&#xff0c;\u8fd9\u4e2a\u6570\u5b57\u5c31\u51cf\u4e00&#xff0c;\u51cf\u5230 0 \u5c31\u8d62\u4e86\u3002<\/p>\n<h3>\u4e8c\u3001\u6838\u5fc3\u601d\u8def&#xff1a;\u7528\u4e24\u4e2a\u68cb\u76d8&#xff0c;\u800c\u4e0d\u662f\u4e00\u4e2a<\/h3>\n<p>\u4e00\u4e2a\u6700\u6734\u7d20\u7684\u60f3\u6cd5\u662f&#xff1a;\u300c\u7528\u4e00\u4e2a\u4e8c\u7ef4\u6570\u7ec4\u5b58\u68cb\u76d8&#xff0c;\u6709\u96f7\u5199 1&#xff0c;\u6ca1\u96f7\u5199 0&#xff0c;\u63ed\u5f00\u5c31\u6253\u5370\u51fa\u6765\u3002\u300d<\/p>\n<p>\u4f46\u8fd9\u91cc\u6709\u4e2a\u7ed5\u4e0d\u8fc7\u53bb\u7684\u77db\u76fe&#xff1a;\u540c\u4e00\u683c&#xff0c;\u65e2\u8981\u8bb0\u4f4f\u300c\u5b83\u5230\u5e95\u6709\u6ca1\u6709\u96f7\u300d&#xff08;\u771f\u76f8&#xff09;&#xff0c;\u53c8\u8981\u8bb0\u4f4f\u300c\u73a9\u5bb6\u73b0\u5728\u770b\u4e0d\u770b\u5f97\u89c1\u5b83\u300d&#xff08;\u754c\u9762&#xff09;\u3002\u5982\u679c\u53ea\u7528\u4e00\u4e2a\u6570\u7ec4&#xff0c;\u4f60\u63ed\u5f00\u4e00\u683c\u3001\u628a 1 \u6539\u6210\u522b\u7684\u503c&#xff0c;\u771f\u76f8\u5c31\u4e22\u5931\u4e86\u2014\u2014\u540e\u9762\u6570\u96f7\u3001\u5224\u8f93\u8d62\u90fd\u6ca1\u6cd5\u505a\u3002<\/p>\n<p>\u6240\u4ee5\u6b63\u89e3\u662f\u7528\u4e24\u4e2a\u68cb\u76d8&#xff0c;\u5171\u7528\u540c\u4e00\u5957\u5750\u6807 (\u884c, \u5217)&#xff1a;<\/p>\n<ul>\n<li>mine[][]&#xff1a;\u771f\u76f8\u76d8&#xff0c;\u53ea\u6709\u7a0b\u5e8f\u81ea\u5df1\u770b\u3002\u6709\u96f7\u8bb0 MINE(&#039;1&#039;)&#xff0c;\u6ca1\u96f7\u8bb0 SAFE(&#039;0&#039;)\u3002<\/li>\n<li>show[][]&#xff1a;\u754c\u9762\u76d8&#xff0c;\u6253\u5370\u7ed9\u73a9\u5bb6\u770b\u3002\u6ca1\u63ed\u5f00\u8bb0 HIDE(&#039;*&#039;)&#xff0c;\u63ed\u5f00\u540e\u8bb0\u6570\u5b57\u6216\u7a7a\u683c\u3002<\/li>\n<\/ul>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260803153250-6a70b4a2bd3f4.png\" \/><\/p>\n<p style=\"text-align:center\">\u56fe1&#xff1a;\u53cc\u68cb\u76d8\u6a21\u578b\u2014\u2014mine \u662f\u6807\u51c6\u7b54\u6848&#xff0c;show \u662f\u73a9\u5bb6\u754c\u9762&#xff0c;\u4e8c\u8005\u7528\u540c\u4e00\u5957\u5750\u6807 (\u884c, \u5217)&#xff0c;\u9760\u5750\u6807\u4e00\u4e00\u5bf9\u5e94\u3002<\/p>\n<p>\u5bf9\u5e94 game.h \u91cc\u7684\u5b57\u7b26\u5b8f&#xff0c;\u7ed9\u8fd9\u4e9b\u300c\u9b54\u6cd5\u5b57\u7b26\u300d\u8d77\u4e86\u540d\u5b57&#xff0c;\u4ee3\u7801\u8bfb\u8d77\u6765\u5c31\u4e0d\u8d39\u52b2&#xff1a;<\/p>\n<p>#define ROW  9<br \/>\n#define COL  9<br \/>\n#define MINE &#039;1&#039;   \/* \u96f7\u76d8&#xff1a;\u8fd9\u4e00\u683c\u6709\u96f7            *\/<br \/>\n#define SAFE &#039;0&#039;   \/* \u96f7\u76d8&#xff1a;\u8fd9\u4e00\u683c\u6ca1\u96f7            *\/<br \/>\n#define HIDE &#039;*&#039;   \/* \u5c55\u793a\u76d8&#xff1a;\u8fd8\u6ca1\u88ab\u6392\u67e5          *\/<br \/>\n#define BLANK &#039; &#039;  \/* \u5c55\u793a\u76d8&#xff1a;\u5df2\u6392\u67e5&#xff0c;\u5468\u56f4 0 \u9897\u96f7 *\/<br \/>\n#define BOOM &#039;X&#039;   \/* \u7ed3\u7b97\u65f6\u663e\u793a&#xff1a;\u6ca1\u6392\u6389\u7684\u96f7      *\/<br \/>\n#define STEP &#039;&#064;&#039;   \/* \u7ed3\u7b97\u65f6\u663e\u793a&#xff1a;\u4f60\u8e29\u7206\u7684\u90a3\u4e00\u683c  *\/<\/p>\n<p>test.c \u91cc\u5f00\u4e00\u5c40\u6e38\u620f&#xff0c;\u5c31\u662f\u5148\u5efa\u4e24\u4e2a 11\u00d711 \u7684\u6570\u7ec4&#xff0c;\u518d\u5206\u522b\u521d\u59cb\u5316&#xff1a;<\/p>\n<p>char mine[ROWS][COLS] &#061; { 0 };   \/* \u96f7\u76d8  &#xff1a;&#039;0&#039; \u6ca1\u96f7&#xff0c;&#039;1&#039; \u6709\u96f7 *\/<br \/>\nchar show[ROWS][COLS] &#061; { 0 };   \/* \u5c55\u793a\u76d8&#xff1a;&#039;*&#039; \u672a\u77e5&#xff0c;\u6570\u5b57\/\u7a7a\u683c \u5df2\u6392\u67e5 *\/<br \/>\nInitBoard(mine, ROWS, COLS, SAFE);   \/* \u96f7\u76d8\u5148\u5168\u586b\u6210&#034;\u6ca1\u96f7&#034; \/<br \/>\nInitBoard(show, ROWS, COLS, HIDE);   \/ \u754c\u9762\u76d8\u5148\u5168\u586b\u6210&#034;\u672a\u6392\u67e5&#034; \/<br \/>\nSetMine(mine, ROW, COL);             \/ \u5728\u53ef\u73a9\u533a\u968f\u673a\u57cb 10 \u9897\u96f7 \/<br \/>\nDisplayBoard(show, ROW, COL);        \/ \u628a\u754c\u9762\u76d8\u6253\u7ed9\u73a9\u5bb6\u770b \/<br \/>\nFindMine(mine, show, ROW, COL);      \/ \u8fdb\u5165\u6392\u96f7\u4e3b\u5faa\u73af *\/<\/p>\n<p>\u6ce8\u610f\u8fd9\u91cc ROWS\/COLS \u662f 11&#xff0c;\u800c ROW\/COL \u662f 9\u2014\u2014\u4e3a\u4ec0\u4e48\u6570\u7ec4\u8981\u6bd4\u68cb\u76d8\u5927\u4e00\u5708&#xff1f;\u4e0b\u4e00\u8282\u8bf4\u3002<\/p>\n<h3>\u4e09\u3001\u54e8\u5175\u8fb9\u6846&#xff1a;\u7528 11\u00d711 \u88c5\u4e0b 9\u00d79<\/h3>\n<p>\u5982\u679c\u6570\u7ec4\u521a\u597d\u662f 9\u00d79&#xff0c;\u90a3\u6570 (1,1) \u8fd9\u79cd\u89d2\u843d\u683c\u5b50\u7684\u90bb\u5c45\u65f6&#xff0c;\u5c31\u8981\u5199\u4e00\u5806\u300c\u5982\u679c\u5230\u4e86\u8fb9\u754c\u5c31\u522b\u8d8a\u754c\u300d\u7684\u5224\u65ad&#xff1a;\u4e0a\u8fb9\u6ca1\u6709\u3001\u5de6\u8fb9\u6ca1\u6709\u3001\u5de6\u4e0a\u89d2\u6ca1\u6709\u2026\u2026 \u516b\u4e2a\u65b9\u5411\u5c31\u5f97\u5199\u516b\u4e2a if&#xff0c;\u53c8\u81ed\u53c8\u957f\u8fd8\u5bb9\u6613\u6f0f\u3002<\/p>\n<p>\u89e3\u51b3\u529e\u6cd5\u5f88\u5de7\u5999&#xff1a;\u628a\u6570\u7ec4\u5f00\u6210 11\u00d711&#xff0c;\u53ea\u7528\u4e2d\u95f4\u7684 9\u00d79 \u5f53\u68cb\u76d8&#xff0c;\u6700\u5916\u5708\u90a3\u4e00\u5708\u586b\u6210\u300c\u6ca1\u96f7\u300d\u5f53\u5360\u4f4d\u3002\u8fd9\u4e00\u5708\u53eb\u54e8\u5175\u8fb9\u6846 \/ \u62a4\u57ce\u6cb3\u3002<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260803153251-6a70b4a310622.png\" \/><\/p>\n<p style=\"text-align:center\">\u56fe2&#xff1a;\u54e8\u5175\u8fb9\u6846\u2014\u201411\u00d711 \u6570\u7ec4\u91cc&#xff0c;\u5916\u5708&#xff08;\u9ad8\u4eae\u6846\u5916&#xff09;\u5168\u662f\u5360\u4f4d\u7684\u300c\u6ca1\u96f7\u300d&#xff0c;\u53ea\u6709\u6846\u5185 9\u00d79 \u662f\u73a9\u5bb6\u771f\u6b63\u80fd\u70b9\u7684\u68cb\u76d8\u3002<\/p>\n<p>\u6709\u4e86\u8fd9\u5708\u8fb9\u6846&#xff0c;\u6570 (x,y) \u5468\u56f4 8 \u683c\u65f6&#xff0c;\u4f60\u5927\u53ef\u4ee5\u653e\u5fc3\u5199 x-1 \/ x&#043;1 \/ y-1 \/ y&#043;1&#xff0c;\u5c31\u7b97 x&#061;&#061;1&#xff0c;x-1 \u4e5f\u53ea\u6478\u5230\u7b2c 0 \u884c\u7684\u8fb9\u6846&#xff08;\u90a3\u91cc\u662f &#039;0&#039;&#xff09;&#xff0c;\u7edd\u4e0d\u4f1a\u6570\u7ec4\u8d8a\u754c&#xff0c;\u4e5f\u4e0d\u7528\u4efb\u4f55\u8fb9\u754c\u5224\u65ad\u3002<\/p>\n<p>\u914d\u5408\u5b8f\u5b9a\u4e49&#xff0c;\u6539\u68cb\u76d8\u5927\u5c0f\u53ea\u52a8\u4e00\u4e2a\u6570\u5b57&#xff1a;<\/p>\n<p>#define ROW  9<br \/>\n#define COL  9<br \/>\n#define ROWS (ROW &#043; 2)  \/* \u6570\u7ec4\u884c\u6570 &#061; \u53ef\u73a9\u884c\u6570 &#043; \u4e0a\u4e0b\u4e24\u6761\u8fb9\u6846 *\/<br \/>\n#define COLS (COL &#043; 2)  \/* \u6570\u7ec4\u5217\u6570 &#061; \u53ef\u73a9\u5217\u6570 &#043; \u5de6\u53f3\u4e24\u6761\u8fb9\u6846 *\/<br \/>\n#define EASY_COUNT 10     \/* \u96f7\u7684\u603b\u6570 *\/<\/p>\n<p>\u8e29\u5751\u63d0\u9192&#xff1a;\u5b8f\u91cc ROW &#043; 2 \u4e00\u5b9a\u8981\u5199\u6210 (ROW &#043; 2) \u52a0\u62ec\u53f7\u3002\u5426\u5219\u54ea\u5929\u5199\u51fa ROWS * 2&#xff0c;\u5b8f\u5c55\u5f00\u4f1a\u53d8\u6210 ROW &#043; 2 * 2 &#061; 13 \u800c\u4e0d\u662f\u4f60\u60f3\u8981\u7684 (9&#043;2)*2 &#061; 22\u3002\u51e1\u662f\u5b8f\u5b9a\u4e49\u91cc\u7684\u8868\u8fbe\u5f0f&#xff0c;\u4e00\u5f8b\u7528\u62ec\u53f7\u5305\u8d77\u6765\u3002<\/p>\n<h3>\u56db\u3001\u7b2c\u4e00\u6b65&#xff1a;\u521d\u59cb\u5316\u4e0e\u6253\u5370\u68cb\u76d8<\/h3>\n<p>\u4e24\u4e2a\u68cb\u76d8\u90fd\u9760\u540c\u4e00\u4e2a InitBoard \u586b\u6210\u540c\u4e00\u4e2a\u5b57\u7b26\u3002\u6ce8\u610f\u5faa\u73af\u8981 0 \u5230 rows-1&#xff0c;\u628a\u6700\u5916\u5708\u8fb9\u6846\u4e5f\u4e00\u8d77\u586b\u4e86\u2014\u2014\u8c03\u7528\u65f6\u4f20\u7684\u5c31\u662f ROWS\/COLS&#xff08;11&#xff09;&#xff0c;\u4e0d\u662f ROW\/COL&#xff08;9&#xff09;\u3002<\/p>\n<p>void InitBoard(char board[ROWS][COLS], int rows, int cols, char set)<br \/>\n{<br \/>\n    int i &#061; 0, j &#061; 0;<br \/>\n    for (i &#061; 0; i &lt; rows; i&#043;&#043;)<br \/>\n        for (j &#061; 0; j &lt; cols; j&#043;&#043;)<br \/>\n            board[i][j] &#061; set;<br \/>\n}<\/p>\n<p>\u6253\u5370\u68cb\u76d8\u53ea\u663e\u793a\u4e2d\u95f4\u7684 1..row \/ 1..col&#xff0c;\u8fb9\u6846\u90a3\u4e00\u5708\u4e0d\u7ed9\u73a9\u5bb6\u770b\u3002\u5bf9\u9f50\u6709\u4e2a\u5c0f\u6280\u5de7&#xff1a;\u884c\u53f7\u524d\u7f00\u5360 4 \u683c&#xff0c;\u6bcf\u4e2a\u683c\u5b50\u5360 3 \u683c&#xff08;&#034; %c &#034;&#xff09;&#xff0c;\u5217\u53f7\u4e5f\u5360 3 \u683c&#xff0c;\u8fd9\u6837\u5217\u53f7\u6b63\u597d\u538b\u5728\u5bf9\u5e94\u683c\u5b50\u7684\u6b63\u4e0a\u65b9\u3002<\/p>\n<p>void DisplayBoard(char board[ROWS][COLS], int row, int col)<br \/>\n{<br \/>\n    int i &#061; 0, j &#061; 0;<br \/>\n    printf(&#034;\\\\n&#034;);<br \/>\n    printf(&#034;    &#034;);                       \/* \u7ed9\u5de6\u8fb9\u884c\u53f7\u8ba9 4 \u683c *\/<br \/>\n    for (j &#061; 1; j &lt;&#061; col; j&#043;&#043;) printf(&#034;%2d &#034;, j);<br \/>\n    printf(&#034;\\\\n&#034;);<br \/>\n    printf(&#034;  &#043;&#034;);<br \/>\n    for (j &#061; 1; j &lt;&#061; col; j&#043;&#043;) printf(&#034;&#8212;&#034;);<br \/>\n    printf(&#034;\\\\n&#034;);<br \/>\n    for (i &#061; 1; i &lt;&#061; row; i&#043;&#043;)<br \/>\n    {<br \/>\n        printf(&#034;%2d |&#034;, i);<br \/>\n        for (j &#061; 1; j &lt;&#061; col; j&#043;&#043;) printf(&#034; %c &#034;, board[i][j]);<br \/>\n        printf(&#034;\\\\n&#034;);<br \/>\n    }<br \/>\n    printf(&#034;\\\\n&#034;);<br \/>\n}<\/p>\n<h3>\u4e94\u3001\u7b2c\u4e8c\u6b65&#xff1a;\u5e03\u96f7\u4e0e\u9996\u51fb\u4fdd\u62a4<\/h3>\n<p>\u57cb\u96f7\u5f88\u7b80\u5355&#xff1a;\u5728\u53ef\u73a9\u533a\u91cc\u968f\u673a\u6311\u5750\u6807&#xff0c;\u662f\u7a7a\u4f4d\u5c31\u653e\u96f7&#xff0c;\u76f4\u5230\u653e\u6ee1 EASY_COUNT \u9897\u3002rand() % row &#043; 1 \u6b63\u597d\u843d\u5728 1..row&#xff0c;\u4e5f\u5c31\u662f\u53ef\u73a9\u533a\u7684\u4e0b\u6807\u3002<\/p>\n<p>void SetMine(char board[ROWS][COLS], int row, int col)<br \/>\n{<br \/>\n    int count &#061; 0;<br \/>\n    while (count &lt; EASY_COUNT)<br \/>\n    {<br \/>\n        int x &#061; rand() % row &#043; 1;<br \/>\n        int y &#061; rand() % col &#043; 1;<br \/>\n        if (board[x][y] &#061;&#061; SAFE)   \/* \u8fd9\u4e2a\u4f4d\u7f6e\u8fd8\u6ca1\u96f7&#xff0c;\u624d\u653e *\/<br \/>\n        {<br \/>\n            board[x][y] &#061; MINE;<br \/>\n            count&#043;&#043;;<br \/>\n        }<br \/>\n    }<br \/>\n}<\/p>\n<p>\u5149\u6709\u968f\u673a\u8fd8\u4e0d\u591f\u53cb\u597d\u3002\u7ecf\u5178\u626b\u96f7\u7b2c\u4e00\u4e0b\u5c31\u53ef\u80fd\u8e29\u96f7&#xff0c;\u7eaf\u770b\u8fd0\u6c14\u3002\u52a0\u4e00\u4e2a\u9996\u51fb\u4fdd\u62a4&#xff1a;\u7b2c\u4e00\u6b21\u70b9\u7684\u90a3\u4e00\u683c\u5982\u679c\u662f\u96f7&#xff0c;\u5c31\u628a\u5b83\u53d6\u6d88&#xff0c;\u518d\u968f\u4fbf\u627e\u4e2a\u7a7a\u4f4d\u8865\u4e00\u9897\u2014\u2014\u96f7\u7684\u603b\u6570\u4e0d\u53d8&#xff0c;\u6e38\u620f\u4f9d\u7136\u516c\u5e73\u3002<\/p>\n<p>static void MoveMineAway(char mine[ROWS][COLS], int row, int col, int x, int y)<br \/>\n{<br \/>\n    mine[x][y] &#061; SAFE;                  \/* \u5148\u628a\u8e29\u5230\u7684\u96f7\u64a4\u6389 *\/<br \/>\n    while (1)<br \/>\n    {<br \/>\n        int nx &#061; rand() % row &#043; 1;<br \/>\n        int ny &#061; rand() % col &#043; 1;<br \/>\n        if (mine[nx][ny] &#061;&#061; SAFE &amp;&amp; !(nx &#061;&#061; x &amp;&amp; ny &#061;&#061; y))<br \/>\n        {<br \/>\n            mine[nx][ny] &#061; MINE;       \/* \u5728\u522b\u5904\u8865\u4e00\u9897 *\/<br \/>\n            break;<br \/>\n        }<br \/>\n    }<br \/>\n}<\/p>\n<p>\u8e29\u5751\u63d0\u9192&#xff1a;\u968f\u673a\u6570\u79cd\u5b50 srand \u6574\u4e2a\u7a0b\u5e8f\u53ea\u8c03\u7528\u4e00\u6b21&#xff0c;\u653e\u5728 main \u5f00\u5934\u3002\u5982\u679c\u628a\u5b83\u5199\u8fdb\u6bcf\u5c40\u6e38\u620f\u91cc&#xff0c;\u540c\u4e00\u79d2\u5185\u8fde\u5f00\u4e24\u5c40&#xff0c;time(NULL) \u79cd\u5b50\u76f8\u540c&#xff0c;rand() \u5e8f\u5217\u5c31\u76f8\u540c&#xff0c;\u96f7\u7684\u4f4d\u7f6e\u4f1a\u4e00\u6a21\u4e00\u6837\u3002<\/p>\n<h3>\u516d\u3001\u7b2c\u4e09\u6b65&#xff1a;\u6570\u4e00\u6570\u5468\u56f4\u6709\u51e0\u9897\u96f7&#xff08;3\u00d73 \u626b\u63cf&#xff09;<\/h3>\n<p>\u8fd9\u662f\u626b\u96f7\u7684\u7075\u9b42\u51fd\u6570\u3002\u4ee5 (x,y) \u4e3a\u4e2d\u5fc3&#xff0c;\u904d\u5386\u5b83\u5468\u56f4 3\u00d73 \u5171 9 \u4e2a\u683c\u5b50&#xff0c;\u8df3\u8fc7\u4e2d\u5fc3\u81ea\u5df1&#xff0c;\u6570\u6709\u51e0\u4e2a\u662f\u96f7\u3002\u9760\u7684\u5c31\u662f\u4e0a\u4e00\u8282\u7684\u54e8\u5175\u8fb9\u6846\u2014\u2014\u8fd9\u91cc\u53ef\u4ee5\u653e\u5fc3\u5199 x-1 \/ x&#043;1 \u800c\u4e0d\u7528\u5224\u8fb9\u754c\u3002<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260803153251-6a70b4a35422b.png\" \/><\/p>\n<p style=\"text-align:center\">\u56fe3&#xff1a;3\u00d73 \u90bb\u57df\u626b\u63cf\u2014\u2014\u4e24\u5c42\u5faa\u73af\u904d\u5386\u4e2d\u5fc3\u5468\u56f4\u7684 9 \u683c&#xff0c;\u8df3\u8fc7\u4e2d\u5fc3 (x,y) \u81ea\u5df1&#xff0c;\u5269\u4e0b\u7684 8 \u4e2a\u5c31\u662f\u90bb\u5c45\u3002<\/p>\n<p>static int GetMineCount(char mine[ROWS][COLS], int x, int y)<br \/>\n{<br \/>\n    int count &#061; 0, i &#061; 0, j &#061; 0;<br \/>\n    for (i &#061; x &#8211; 1; i &lt;&#061; x &#043; 1; i&#043;&#043;)<br \/>\n        for (j &#061; y &#8211; 1; j &lt;&#061; y &#043; 1; j&#043;&#043;)<br \/>\n        {<br \/>\n            if (i &#061;&#061; x &amp;&amp; j &#061;&#061; y) continue;   \/* \u8df3\u8fc7\u4e2d\u5fc3\u683c\u81ea\u5df1 *\/<br \/>\n            if (mine[i][j] &#061;&#061; MINE) count&#043;&#043;;<br \/>\n        }<br \/>\n    return count;<br \/>\n}<\/p>\n<p>\u8e29\u5751\u63d0\u9192&#xff1a;if (i &#061;&#061; x &amp;&amp; j &#061;&#061; y) continue; \u8fd9\u53e5\u8df3\u8fc7\u4e2d\u5fc3\u7edd\u5bf9\u4e0d\u80fd\u7701\u3002\u5fd8\u4e86\u5b83&#xff0c;\u5c31\u4f1a\u628a (x,y) \u81ea\u5df1\u90a3\u9897\u96f7\u4e5f\u7b97\u8fdb\u53bb&#xff0c;\u5468\u56f4\u96f7\u6570\u51ed\u7a7a\u591a 1&#xff0c;\u6574\u5f20\u68cb\u76d8\u6570\u5b57\u5168\u9519\u3002<\/p>\n<p>\u6700\u540e\u8fd8\u6709\u4e2a\u7ecf\u5e38\u8ba9\u4eba\u6123\u4e00\u4e0b\u7684\u5199\u6cd5&#xff1a;\u628a\u6570\u5b57\u5199\u56de\u754c\u9762\u76d8\u65f6&#xff0c;\u7528\u7684\u662f count &#043; &#039;0&#039; \u800c\u4e0d\u662f count\u3002<\/p>\n<p>show[x][y] &#061; (char)(count &#043; &#039;0&#039;);   \/* \u6570\u5b57\u8f6c\u5b57\u7b26&#xff1a;3 &#043; &#039;0&#039; &#061;&#061; &#039;3&#039; *\/<\/p>\n<p>\u56e0\u4e3a\u5b57\u7b26 &#039;0&#039; \u5728 ASCII \u91cc\u7684\u7f16\u7801\u662f 48&#xff0c;&#039;1&#039; \u662f 49\u2026\u2026 \u6240\u4ee5 3 &#043; &#039;0&#039; \u5f97\u5230\u7684\u5c31\u662f\u5b57\u7b26 &#039;3&#039;\u3002\u8fd9\u662f C \u8bed\u8a00\u91cc\u628a 0~9 \u7684\u6570\u5b57\u53d8\u6210\u5bf9\u5e94\u5b57\u7b26\u7684\u6807\u51c6\u5c0f\u6280\u5de7\u3002<\/p>\n<h3>\u4e03\u3001\u7b2c\u56db\u6b65&#xff1a;\u8fde\u9501\u5c55\u5f00&#xff08;\u9012\u5f52\u7684\u4e09\u6761\u51fa\u53e3&#xff09;<\/h3>\n<p>\u70b9\u5f00\u4e00\u7247\u7a7a\u767d\u65f6&#xff0c;\u5b83\u80fd\u81ea\u52a8\u628a\u5468\u56f4\u4e00\u5927\u7247\u90fd\u63ed\u5f00&#xff0c;\u50cf\u6c34\u6ce2\u4e00\u6837\u6563\u5f00\u3002\u8fd9\u9760\u9012\u5f52\u5b9e\u73b0\u3002\u51fd\u6570 Expand \u7684\u8fd4\u56de\u503c&#xff0c;\u662f\u8fd9\u6b21\u4e00\u5171\u65b0\u7ffb\u5f00\u4e86\u591a\u5c11\u4e2a\u683c\u5b50\u3002<\/p>\n<p>\u5173\u952e\u5728\u4e09\u6761\u51fa\u53e3&#xff0c;\u5c11\u4e00\u6761\u90fd\u4f1a\u51fa\u4e8b&#xff1a;<\/p>\n<ul>\n<li>A. \u8fd9\u683c\u5df2\u7ecf\u7ffb\u5f00\u8fc7 \u2192 \u7acb\u523b\u8fd4\u56de 0&#xff0c;\u4e00\u4e2a\u90fd\u4e0d\u65b0\u7ffb\u3002\u8fd9\u662f\u9012\u5f52\u7684\u300c\u5239\u8f66\u300d&#xff0c;\u6ca1\u6709\u5b83\u4e24\u4e2a\u76f8\u90bb\u7684\u7a7a\u683c\u4f1a\u4e92\u76f8\u8c03\u7528&#xff0c;\u65e0\u9650\u9012\u5f52\u76f4\u63a5\u7206\u6808\u3002<\/li>\n<li>B. \u5468\u56f4\u6709\u96f7&#xff08;count &gt; 0&#xff09; \u2192 \u663e\u793a\u6570\u5b57&#xff0c;\u8fd4\u56de 1&#xff0c;\u4e0d\u518d\u5f80\u5916\u6269\u3002<\/li>\n<li>C. \u5468\u56f4\u6ca1\u96f7&#xff08;count &#061;&#061; 0&#xff09; \u2192 \u6807\u6210\u7a7a\u767d&#xff0c;\u7136\u540e\u5bf9 8 \u4e2a\u90bb\u5c45\u5404\u8c03\u7528\u4e00\u6b21\u81ea\u5df1&#xff0c;\u7ee7\u7eed\u6269\u6563\u3002<\/li>\n<\/ul>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260803153251-6a70b4a395814.png\" \/><\/p>\n<p style=\"text-align:center\">\u56fe4&#xff1a;\u8fde\u9501\u5c55\u5f00\u2014\u2014\u4ece\u4e00\u9897\u7a7a\u683c&#xff08;\u4e2d\u5fc3&#xff09;\u51fa\u53d1&#xff0c;\u84dd\u8272\u8d8a\u6df1\u79bb\u4e2d\u5fc3\u8d8a\u8fd1&#xff1b;\u9047\u5230\u6570\u5b57\u5c31\u505c&#xff08;\u51fa\u53e3 B&#xff09;&#xff0c;\u9047\u5230\u7a7a\u683c\u7ee7\u7eed\u5411 8 \u90bb\u5c45\u6269\u6563&#xff08;\u51fa\u53e3 C&#xff09;&#xff0c;\u5df2\u7ffb\u5f00\u5219\u5239\u8f66&#xff08;\u51fa\u53e3 A&#xff09;\u3002<\/p>\n<p>static int Expand(char mine[ROWS][COLS], char show[ROWS][COLS], int x, int y)<br \/>\n{<br \/>\n    int count &#061; 0, revealed &#061; 0, i &#061; 0, j &#061; 0;<br \/>\nif (show[x][y] !&#061; HIDE) return 0;                \/* A. \u5df2\u7ffb\u5f00\u8fc7&#xff0c;\u5239\u8f66 *\/<br \/>\ncount &#061; GetMineCount(mine, x, y);<br \/>\nif (count &amp;gt; 0)                                    \/* B. \u5468\u56f4\u6709\u96f7&#xff0c;\u663e\u793a\u6570\u5b57\u5c31\u505c *\/<br \/>\n{<br \/>\nshow[x][y] &#061; (char)(count &#043; &#039;0&#039;);<br \/>\nreturn 1;<br \/>\n}<br \/>\nshow[x][y] &#061; BLANK;                              \/* C. \u5468\u56f4\u6ca1\u96f7&#xff0c;\u6807\u7a7a\u767d \/<br \/>\nrevealed &#061; 1;<br \/>\nfor (i &#061; x &#8211; 1; i &amp;lt;&#061; x &#043; 1; i&#043;&#043;)<br \/>\nfor (j &#061; y &#8211; 1; j &amp;lt;&#061; y &#043; 1; j&#043;&#043;)<br \/>\nif (i &amp;gt;&#061; 1 &amp;amp;&amp;amp; i &amp;lt;&#061; ROW &amp;amp;&amp;amp; j &amp;gt;&#061; 1 &amp;amp;&amp;amp; j &amp;lt;&#061; COL)   \/ \u522b\u8d8a\u8fdb\u8fb9\u6846 *\/<br \/>\nrevealed &#043;&#061; Expand(mine, show, i, j);<br \/>\nreturn revealed;<br \/>\n}<\/p>\n<p>\u8fd9\u91cc\u6709\u4e2a\u8ba9\u4eba\u5b89\u5fc3\u7684\u4e8b\u5b9e&#xff1a;\u81ea\u52a8\u5c55\u5f00\u6c38\u8fdc\u4e0d\u4f1a\u8e29\u96f7\u3002\u56e0\u4e3a\u80fd\u8d70\u8fdb C \u5206\u652f\u7684\u683c\u5b50&#xff0c;\u5468\u56f4 0 \u9897\u96f7&#xff0c;\u90a3\u5b83\u7684 8 \u4e2a\u90bb\u5c45\u91cc\u81ea\u7136\u4e5f\u4e0d\u53ef\u80fd\u85cf\u7740\u96f7\u2014\u2014\u6240\u4ee5\u6269\u6563\u5230\u7684\u4e0b\u4e00\u6279\u683c\u5b50\u5fc5\u5b9a\u5b89\u5168\u3002\u96f7\u53ea\u5b58\u5728\u4e8e mine \u76d8\u4e0a&#xff0c;\u800c Expand \u53ea\u8bfb mine\u3001\u53ea\u6539 show&#xff0c;\u4ece\u4e0d\u4f1a\u53bb\u300c\u52a8\u300d\u96f7\u3002<\/p>\n<h3>\u516b\u3001\u7b2c\u4e94\u6b65&#xff1a;\u8f93\u5165\u3001\u6e38\u620f\u5faa\u73af\u4e0e\u80dc\u5229\u5224\u5b9a<\/h3>\n<p>\u628a\u524d\u9762\u51e0\u5757\u62fc\u8d77\u6765&#xff0c;\u5c31\u662f\u4e3b\u5faa\u73af\u3002\u5148\u7528\u4e00\u5f20\u6d41\u7a0b\u56fe\u628a\u300c\u6bcf\u4e00\u6b65\u600e\u4e48\u8d70\u300d\u770b\u6e05\u695a&#xff1a;<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260803153251-6a70b4a3d6dd4.png\" \/><\/p>\n<p style=\"text-align:center\">\u56fe5&#xff1a;\u6e38\u620f\u4e3b\u5faa\u73af\u2014\u2014\u62ff\u5230\u5750\u6807\u540e\u5148\u5224\u5408\u6cd5&#xff0c;\u518d\u5224\u662f\u5426\u5df2\u63ed\u5f00&#xff0c;\u518d\u5224\u662f\u5426\u8e29\u96f7&#xff0c;\u6700\u540e\u6570\u96f7\u5e76\u51b3\u5b9a\u5c55\u5f00\u6216\u663e\u793a\u6570\u5b57&#xff0c;\u76f4\u5230\u80dc\u5229\u6216\u8e29\u96f7\u3002<\/p>\n<p>\u8bfb\u5750\u6807\u7528\u4e00\u4e2a ReadCoord&#xff0c;\u5b83\u68c0\u67e5 scanf \u7684\u8fd4\u56de\u503c&#xff1a;\u6210\u529f\u8bfb\u5230\u4e24\u4e2a\u6574\u6570\u8fd4\u56de 1&#xff0c;\u683c\u5f0f\u4e0d\u5bf9&#xff08;\u6bd4\u5982\u8f93\u4e86\u5b57\u6bcd&#xff09;\u8fd4\u56de 0&#xff0c;\u8f93\u5165\u6d41\u7ed3\u675f\u8fd4\u56de -1\u3002\u683c\u5f0f\u4e0d\u5bf9\u65f6\u7528 getchar() \u628a\u8fd9\u4e00\u884c\u810f\u6570\u636e\u5168\u90e8\u5403\u6389&#xff0c;\u907f\u514d\u5b83\u7559\u5728\u7f13\u51b2\u533a\u91cc\u8ba9\u4e0b\u4e00\u8f6e scanf \u63a5\u7740\u51fa\u9519\u3002<\/p>\n<p>static int ReadCoord(int* x, int* y)<br \/>\n{<br \/>\n    int ret &#061; scanf(&#034;%d %d&#034;, x, y);<br \/>\n    if (ret &#061;&#061; EOF) return -1;<br \/>\n    if (ret !&#061; 2)                       \/* \u6ca1\u8bfb\u5230\u4e24\u4e2a\u6574\u6570 *\/<br \/>\n    {<br \/>\n        int ch &#061; 0;<br \/>\n        while ((ch &#061; getchar()) !&#061; &#039;\\\\n&#039; &amp;&amp; ch !&#061; EOF) ;  \/* \u6e05\u7a7a\u6574\u884c *\/<br \/>\n        return 0;<br \/>\n    }<br \/>\n    return 1;<br \/>\n}<\/p>\n<p>\u6392\u96f7\u4e3b\u5faa\u73af FindMine \u628a\u4e00\u5207\u4e32\u8d77\u6765\u3002win \u8bb0\u5df2\u7ecf\u5b89\u5168\u7ffb\u5f00\u7684\u683c\u5b50\u6570&#xff0c;\u76ee\u6807\u662f row*col &#8211; EASY_COUNT&#xff08;81\u221210 &#061; 71&#xff09;\u3002\u6bcf\u63ed\u5f00\u4e00\u4e2a\u5b89\u5168\u683c&#xff0c;win &#043;&#061; Expand(&#8230;)\u3002\u4e24\u4e2a\u5173\u952e\u70b9&#xff1a;<\/p>\n<li>\u91cd\u590d\u5750\u6807\u9632\u62a4&#xff1a;\u5982\u679c (x,y) \u5df2\u7ecf\u63ed\u5f00\u8fc7&#xff0c;\u76f4\u63a5 continue \u4e0d\u8ba1\u5206\u3002\u6ca1\u6709\u8fd9\u5c42\u4fdd\u62a4&#xff0c;\u53cd\u590d\u8f93\u5165\u540c\u4e00\u4e2a\u5750\u6807 71 \u6b21\u5c31\u80fd\u628a win \u5237\u5230 71 \u76f4\u63a5\u300c\u80dc\u5229\u300d\u2014\u2014\u8fd9\u662f\u521d\u7248\u6700\u5bb9\u6613\u7ffb\u8f66\u7684\u9690\u85cf bug\u3002<\/li>\n<li>\u9996\u51fb\u4fdd\u62a4&#xff1a;\u7b2c\u4e00\u6b21\u70b9\u51fb\u82e5\u8e29\u96f7&#xff0c;\u8c03\u7528 MoveMineAway \u628a\u96f7\u632a\u8d70\u518d\u7ee7\u7eed\u3002<\/li>\n<p>void FindMine(char mine[ROWS][COLS], char show[ROWS][COLS], int row, int col)<br \/>\n{<br \/>\n    int x &#061; 0, y &#061; 0, win &#061; 0;<br \/>\n    int total &#061; row * col &#8211; EASY_COUNT;     \/* \u9700\u8981\u7ffb\u5f00\u7684\u5b89\u5168\u683c\u603b\u6570 *\/<br \/>\n    int first &#061; 1;<br \/>\nwhile (win &amp;lt; total)<br \/>\n{<br \/>\n    int ret &#061; 0;<br \/>\n    printf(&#034;\u8fd8\u5269 %d \u683c\u5f85\u6392\u67e5&#xff0c;\u8bf7\u8f93\u5165\u5750\u6807&#xff08;\u884c \u5217&#xff0c;\u7528\u7a7a\u683c\u9694\u5f00&#xff09;:&amp;gt; &#034;, total &#8211; win);<br \/>\n    ret &#061; ReadCoord(&amp;amp;x, &amp;amp;y);<br \/>\n    if (ret &#061;&#061; -1) { printf(&#034;\\\\n\u8f93\u5165\u5df2\u7ed3\u675f&#xff0c;\u672c\u5c40\u4e2d\u6b62\u3002\\\\n&#034;); return; }<br \/>\n    if (ret &#061;&#061; 0)  { printf(&#034;\u8f93\u5165\u683c\u5f0f\u4e0d\u5bf9&#xff0c;\u8981\u8f93\u5165\u4e24\u4e2a\u6570\u5b57&#xff0c;\u6bd4\u5982&#xff1a;3 5\\\\n&#034;); continue; }<br \/>\n    if (x &amp;lt; 1 || x &amp;gt; row || y &amp;lt; 1 || y &amp;gt; col)<br \/>\n    { printf(&#034;\u5750\u6807\u8d8a\u754c\u4e86&#xff0c;\u884c\u548c\u5217\u90fd\u8981\u5728 1 ~ %d \u4e4b\u95f4\u3002\\\\n&#034;, row); continue; }<br \/>\n    if (show[x][y] !&#061; HIDE)<br \/>\n    { printf(&#034;(%d, %d) \u5df2\u7ecf\u6392\u67e5\u8fc7\u4e86&#xff0c;\u6362\u4e00\u4e2a\u4f4d\u7f6e\u5427\u3002\\\\n&#034;, x, y); continue; }<br \/>\nif (first)                           \/* \u9996\u51fb\u4fdd\u62a4 *\/<br \/>\n{<br \/>\n    first &#061; 0;<br \/>\n    if (mine[x][y] &#061;&#061; MINE) MoveMineAway(mine, row, col, x, y);<br \/>\n}<br \/>\nif (mine[x][y] &#061;&#061; MINE)              \/* \u8e29\u96f7&#xff0c;\u7ed3\u7b97 *\/<br \/>\n{<br \/>\n    printf(&#034;\\\\n\u5f88\u9057\u61be&#xff0c;(%d, %d) \u662f\u4e00\u9897\u96f7&#xff0c;\u4f60\u88ab\u70b8\u6b7b\u4e86&#xff01;\\\\n&#034;, x, y);<br \/>\n    show[x][y] &#061; STEP;<br \/>\n    RevealAll(mine, show, row, col);<br \/>\n    DisplayBoard(show, row, col);<br \/>\n    printf(&#034;\u63d0\u793a&#xff1a;&#064; \u662f\u4f60\u8e29\u7206\u7684\u96f7&#xff0c;X \u662f\u5269\u4e0b\u6ca1\u6392\u6389\u7684\u96f7\u3002\\\\n&#034;);<br \/>\n    return;<br \/>\n}<br \/>\nwin &#043;&#061; Expand(mine, show, x, y);     \/* \u5b89\u5168&#xff0c;\u5c55\u5f00\u5e76\u8ba1\u5206 *\/<br \/>\nDisplayBoard(show, row, col);<br \/>\n}<br \/>\nprintf(&#034;\\\\n\u606d\u559c&#xff01;%d \u9897\u96f7\u5168\u90e8\u907f\u5f00&#xff0c;\u6392\u96f7\u6210\u529f&#xff01;\\\\n&#034;, EASY_COUNT);<br \/>\nRevealAll(mine, show, row, col);<br \/>\nDisplayBoard(show, row, col);<br \/>\nprintf(&#034;\u63d0\u793a&#xff1a;X \u662f\u96f7\u7684\u4f4d\u7f6e\u3002\\\\n&#034;);<br \/>\n}<\/p>\n<p>\u8e29\u5751\u63d0\u9192&#xff1a;\u65b0\u624b\u5199\u626b\u96f7&#xff0c;90% \u7684\u300c\u5361\u6b7b \/ \u5237\u5c4f\u300d\u90fd\u6765\u81ea\u8fd9\u4e24\u5904\u2014\u2014scanf \u4e0d\u68c0\u67e5\u8fd4\u56de\u503c&#xff08;\u8f93\u5b57\u6bcd\u5c31\u65e0\u9650\u5237\u5c4f&#xff09;&#xff0c;\u4ee5\u53ca\u91cd\u590d\u5750\u6807\u4e0d\u62e6\u622a&#xff08;\u8fde\u70b9\u540c\u4e00\u683c\u5c31\u80fd\u300c\u80dc\u5229\u300d&#xff09;\u3002\u628a ReadCoord \u7684\u8fd4\u56de\u503c\u548c show[x][y] !&#061; HIDE \u7684\u62e6\u622a\u5199\u597d&#xff0c;\u8fd9\u4e24\u7c7b\u95ee\u9898\u5c31\u90fd\u5835\u4e0a\u4e86\u3002<\/p>\n<h3>\u4e5d\u3001\u8dd1\u8d77\u6765\u770b\u770b&#xff08;\u771f\u5b9e\u7f16\u8bd1\u4e0e\u8fd0\u884c\u8bb0\u5f55&#xff09;<\/h3>\n<p>\u7528\u6700\u4e25\u7684\u544a\u8b66\u7f16\u8bd1&#xff0c;\u76ee\u6807\u662f 0 warning&#xff0c;\u8fd9\u4e5f\u662f\u68c0\u9a8c\u4ee3\u7801\u662f\u5426\u5e72\u51c0\u7684\u6700\u5feb\u65b9\u5f0f&#xff1a;<\/p>\n<p>gcc -std&#061;c11 -Wall -Wextra -Wpedantic -o minesweeper.exe test.c game.c<\/p>\n<p>\u4e0a\u9762\u8fd9\u6761\u547d\u4ee4\u6267\u884c\u540e\u6ca1\u6709\u4efb\u4f55\u8f93\u51fa&#xff0c;\u9000\u51fa\u7801\u4e3a 0\u2014\u2014\u96f6\u544a\u8b66\u901a\u8fc7&#xff0c;\u8bf4\u660e\u4ee3\u7801\u662f\u5e72\u51c0\u7684\u3002<\/p>\n<p>\u5b9e\u6d4b\u51e0\u79cd\u5178\u578b\u8f93\u5165&#xff08;\u8282\u9009\u771f\u5b9e\u8f93\u51fa&#xff09;&#xff1a;<\/p>\n<p>\u8fd8\u5269 71 \u683c\u5f85\u6392\u67e5&#xff0c;\u8bf7\u8f93\u5165\u5750\u6807&#xff08;\u884c \u5217&#xff0c;\u7528\u7a7a\u683c\u9694\u5f00&#xff09;:&gt; abc<br \/>\n\u8f93\u5165\u683c\u5f0f\u4e0d\u5bf9&#xff0c;\u8981\u8f93\u5165\u4e24\u4e2a\u6570\u5b57&#xff0c;\u6bd4\u5982&#xff1a;3 5<br \/>\n\u8fd8\u5269 71 \u683c\u5f85\u6392\u67e5&#xff0c;\u8bf7\u8f93\u5165\u5750\u6807&#xff08;\u884c \u5217&#xff0c;\u7528\u7a7a\u683c\u9694\u5f00&#xff09;:&gt; 0 0<br \/>\n\u5750\u6807\u8d8a\u754c\u4e86&#xff0c;\u884c\u548c\u5217\u90fd\u8981\u5728 1 ~ 9 \u4e4b\u95f4\u3002<br \/>\n\u8fd8\u5269 71 \u683c\u5f85\u6392\u67e5&#xff0c;\u8bf7\u8f93\u5165\u5750\u6807&#xff08;\u884c \u5217&#xff0c;\u7528\u7a7a\u683c\u9694\u5f00&#xff09;:&gt; 5 5<br \/>\n   1  2  3  4  5  6  7  8  9<br \/>\n  &#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\n 1 | *  *  *  *  *  *  *  *  *<br \/>\n 2 | *  1  1  *  *  *  *  *  *<br \/>\n 3 | *  *  *  3  2  *  *  *  *<br \/>\n&#8230;<\/p>\n<p>\u975e\u6cd5\u8f93\u5165\u53ea\u63d0\u793a\u4e00\u6b21\u5c31\u7ee7\u7eed&#xff0c;\u4e0d\u4f1a\u5237\u5c4f&#xff1b;\u5750\u6807\u8d8a\u754c\u88ab\u62e6\u4e0b\u3001win \u4e0d\u53d8&#xff1b;\u6b63\u5e38\u70b9\u5f00\u5219\u6253\u5370\u66f4\u65b0\u540e\u7684\u68cb\u76d8\u3002\u628a 71 \u4e2a\u5b89\u5168\u683c\u5168\u90e8\u63ed\u5f00\u540e&#xff0c;\u4f1a\u6253\u5370\u300c\u606d\u559c&#xff01;10 \u9897\u96f7\u5168\u90e8\u907f\u5f00&#xff0c;\u6392\u96f7\u6210\u529f&#xff01;\u300d\u5e76\u4eae\u51fa\u5b8c\u6574\u68cb\u76d8\u3002<\/p>\n<h3>\u5341\u3001\u4ee3\u7801\u5f00\u6e90\u4e0e\u83b7\u53d6<\/h3>\n<p>\u8fd9\u4efd\u626b\u96f7\u7684\u5b8c\u6574\u4ee3\u7801&#xff08;\u4e09\u4e2a\u6e90\u6587\u4ef6 &#043; README &#043; Makefile&#xff09;\u5df2\u7ecf\u5f00\u6e90&#xff0c;\u653e\u5728 GitHub \u7684\u8ff7\u4f60\u6e38\u620f\u5408\u96c6\u4ed3\u5e93\u91cc&#xff1a;<\/p>\n<p>https:\/\/github.com\/wangzifan396-wzf\/mini-browser-games\/tree\/main\/minesweeper-c<\/p>\n<p>\u4ed3\u5e93\u76ee\u5f55\u7ed3\u6784&#xff1a;<\/p>\n<p>mini-browser-games\/<br \/>\n\u2514\u2500\u2500 minesweeper-c\/<br \/>\n    \u251c\u2500\u2500 game.h        # \u914d\u7f6e\u4e0e\u51fd\u6570\u58f0\u660e&#xff08;\u7535\u8def\u677f\u8bf4\u660e\u4e66&#xff09;<br \/>\n    \u251c\u2500\u2500 game.c        # \u6240\u6709\u529f\u80fd\u7684\u5b9e\u73b0&#xff08;\u96f6\u4ef6\u8f66\u95f4&#xff09;<br \/>\n    \u251c\u2500\u2500 test.c        # \u83dc\u5355\u4e0e\u4e3b\u6d41\u7a0b&#xff08;\u603b\u88c5\u7ebf&#xff09;<br \/>\n    \u251c\u2500\u2500 Makefile      # \u4e00\u884c make \u5373\u53ef\u7f16\u8bd1<br \/>\n    \u2514\u2500\u2500 README.md     # \u73a9\u6cd5\u3001\u7f16\u8bd1\u3001\u8bbe\u8ba1\u8bf4\u660e<\/p>\n<p>\u672c\u5730\u7f16\u8bd1\u8fd0\u884c\u53ea\u9700\u4e24\u6b65&#xff1a;<\/p>\n<p>make             # \u7b49\u4ef7\u4e8e gcc -std&#061;c11 -Wall -Wextra -Wpedantic -o minesweeper test.c game.c<br \/>\n.\/minesweeper    # Windows \u4e0b\u662f minesweeper.exe<\/p>\n<p>\u60f3\u6539\u96be\u5ea6\u4e5f\u5f88\u7b80\u5355&#xff1a;\u628a game.h \u91cc\u7684 ROW \/ COL \/ EASY_COUNT \u6539\u6389&#xff0c;\u6bd4\u5982 16 \/ 16 \/ 40 \u5c31\u662f\u4e2d\u7b49\u96be\u5ea6&#xff0c;\u5176\u5b83\u4ee3\u7801\u4e00\u884c\u90fd\u4e0d\u7528\u52a8\u3002<\/p>\n<h3>\u5341\u4e00\u3001\u7ed3\u8bed&#xff1a;\u4f60\u5b66\u5230\u4e86\u4ec0\u4e48&#xff0c;\u4ee5\u53ca\u80fd\u600e\u4e48\u6269\u5c55<\/h3>\n<p>\u56de\u5934\u770b&#xff0c;\u4e00\u4efd\u80fd\u73a9\u7684\u626b\u96f7\u5176\u5b9e\u53ea\u8bb2\u4e86\u56db\u4ef6\u4e8b&#xff1a;<\/p>\n<li>\u53cc\u68cb\u76d8\u6a21\u578b\u2014\u2014\u7528 mine&#xff08;\u771f\u76f8&#xff09;\u548c show&#xff08;\u754c\u9762&#xff09;\u5206\u5f00\u5b58&#xff0c;\u4e00\u4e2a\u6570\u7ec4\u88c5\u4e0d\u4e0b\u4e24\u4ef6\u4e8b\u3002<\/li>\n<li>\u54e8\u5175\u8fb9\u6846\u2014\u2014\u591a\u5f00\u4e00\u5708\u5360\u4f4d&#xff0c;\u7701\u6389\u6240\u6709\u8fb9\u754c\u5224\u65ad&#xff0c;\u8fd8\u987a\u4fbf\u9632\u8d8a\u754c\u3002<\/li>\n<li>3\u00d73 \u626b\u63cf &#043; count &#043; &#039;0&#039;\u2014\u2014\u6570\u96f7\u5c31\u662f\u904d\u5386\u90bb\u5c45\u3001\u8df3\u8fc7\u81ea\u5df1&#xff0c;\u518d\u4f18\u96c5\u5730\u628a\u6570\u5b57\u53d8\u6210\u5b57\u7b26\u3002<\/li>\n<li>\u9012\u5f52\u5c55\u5f00\u2014\u2014\u4e09\u6761\u51fa\u53e3&#xff08;\u5239\u8f66 \/ \u505c \/ \u6269\u6563&#xff09;\u8ba9\u5b83\u50cf\u6c34\u6ce2\u4e00\u6837\u81ea\u52a8\u94fa\u5f00&#xff0c;\u800c\u4e14\u6c38\u4e0d\u8e29\u96f7\u3002<\/li>\n<p>\u5982\u679c\u4f60\u60f3\u7ee7\u7eed\u7ec3\u624b&#xff0c;\u53ef\u4ee5\u8bd5\u7740\u52a0\u8fd9\u4e9b\u529f\u80fd&#xff1a;\u53f3\u952e\u6807\u8bb0\u65d7\u5e1c F\u3001\u8ba1\u65f6\u5668\u4e0e\u96be\u5ea6\u9009\u62e9\u3001\u8e29\u96f7\u540e\u9012\u5f52\u5c55\u5f00\u5168\u90e8\u96f7\u3001\u751a\u81f3\u7528 ncurses \u505a\u4e00\u4e2a\u5e26\u5149\u6807\u7684\u7ec8\u7aef\u754c\u9762\u3002\u8fd9\u4e9b\u90fd\u53ea\u662f\u5728\u8fd9\u5957\u9aa8\u67b6\u4e0a\u505a\u52a0\u6cd5\u3002<\/p>\n<p>\u5982\u679c\u8fd9\u7bc7\u6587\u7ae0\u5e2e\u4f60\u5199\u51fa\u4e86\u7b2c\u4e00\u4e2a\u5c5e\u4e8e\u81ea\u5df1\u7684\u5c0f\u6e38\u620f&#xff0c;\u6b22\u8fce\u53bb\u4ed3\u5e93\u70b9\u4e2a Star&#xff0c;\u4e5f\u6b22\u8fce\u5728\u8bc4\u8bba\u533a\u804a\u804a\u4f60\u8e29\u8fc7\u7684\u5751\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u6211\u4eec\u8981\u505a\u51fa\u4e00\u4e2a\u4ec0\u4e48\u6837\u7684\u626b\u96f7\u5148\u660e\u786e\u76ee\u6807&#xff0c;\u514d\u5f97\u5199\u7740\u5199\u7740\u8dd1\u504f&#xff1a;\u68cb\u76d8 9\u00d79&#xff0c;\u5171 10 \u9897\u96f7&#xff08;\u7b80\u5355\u96be\u5ea6&#xff09;\u3002\u73a9\u5bb6\u8f93\u5165\u5750\u6807 (\u884c, \u5217)&#xff0c;\u63ed\u5f00\u90a3\u4e00\u683c\u3002\u5982\u679c\u90a3\u683c\u5468\u56f4\u6709\u96f7&#xff0c;\u663e\u793a\u6570\u5b57  \u5468\u56f4 8 \u683c\u91cc\u7684\u96f7\u6570&#xff1b;\u5982\u679c\u662f 0 \u9897\u96f7&#xff0c;\u5c31\u81ea\u52a8\u628a\u5468\u56f4\u4e5f\u63ed\u5f00&#xff08;\u8fde\u9501\u5c55\u5f00&#xff09;\u3002\u6240\u6709\u975e\u96f7\u683c\u5b50\u90fd\u88ab\u63ed\u5f00  \u80dc\u5229&#xff1b;\u8e29\u5230\u96f7  \u5931\u8d25\u3002\u9996\u51fb\u4fdd\u62a4&amp;#xff1a<\/p>\n","protected":false},"author":2,"featured_media":89852,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[55,174,3750,248,427],"topic":[],"class_list":["post-89857","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-c","tag-mfc","tag-248","tag-427"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4ece\u96f6\u5199\u4e00\u4e2a\u80fd\u73a9\u7684 C \u8bed\u8a00\u626b\u96f7 - \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\/89857.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4ece\u96f6\u5199\u4e00\u4e2a\u80fd\u73a9\u7684 C \u8bed\u8a00\u626b\u96f7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4e00\u3001\u6211\u4eec\u8981\u505a\u51fa\u4e00\u4e2a\u4ec0\u4e48\u6837\u7684\u626b\u96f7\u5148\u660e\u786e\u76ee\u6807&#xff0c;\u514d\u5f97\u5199\u7740\u5199\u7740\u8dd1\u504f&#xff1a;\u68cb\u76d8 9\u00d79&#xff0c;\u5171 10 \u9897\u96f7&#xff08;\u7b80\u5355\u96be\u5ea6&#xff09;\u3002\u73a9\u5bb6\u8f93\u5165\u5750\u6807 (\u884c, \u5217)&#xff0c;\u63ed\u5f00\u90a3\u4e00\u683c\u3002\u5982\u679c\u90a3\u683c\u5468\u56f4\u6709\u96f7&#xff0c;\u663e\u793a\u6570\u5b57 \u5468\u56f4 8 \u683c\u91cc\u7684\u96f7\u6570&#xff1b;\u5982\u679c\u662f 0 \u9897\u96f7&#xff0c;\u5c31\u81ea\u52a8\u628a\u5468\u56f4\u4e5f\u63ed\u5f00&#xff08;\u8fde\u9501\u5c55\u5f00&#xff09;\u3002\u6240\u6709\u975e\u96f7\u683c\u5b50\u90fd\u88ab\u63ed\u5f00 \u80dc\u5229&#xff1b;\u8e29\u5230\u96f7 \u5931\u8d25\u3002\u9996\u51fb\u4fdd\u62a4&amp;#xff1a\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/89857.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-03T15:32:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260803153250-6a70b4a2bd3f4.png\" \/>\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=\"7 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/89857.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/89857.html\",\"name\":\"\u4ece\u96f6\u5199\u4e00\u4e2a\u80fd\u73a9\u7684 C \u8bed\u8a00\u626b\u96f7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-03T15:32:53+00:00\",\"dateModified\":\"2026-08-03T15:32:53+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/89857.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/89857.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/89857.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4ece\u96f6\u5199\u4e00\u4e2a\u80fd\u73a9\u7684 C \u8bed\u8a00\u626b\u96f7\"}]},{\"@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":"\u4ece\u96f6\u5199\u4e00\u4e2a\u80fd\u73a9\u7684 C \u8bed\u8a00\u626b\u96f7 - \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\/89857.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4ece\u96f6\u5199\u4e00\u4e2a\u80fd\u73a9\u7684 C \u8bed\u8a00\u626b\u96f7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4e00\u3001\u6211\u4eec\u8981\u505a\u51fa\u4e00\u4e2a\u4ec0\u4e48\u6837\u7684\u626b\u96f7\u5148\u660e\u786e\u76ee\u6807&#xff0c;\u514d\u5f97\u5199\u7740\u5199\u7740\u8dd1\u504f&#xff1a;\u68cb\u76d8 9\u00d79&#xff0c;\u5171 10 \u9897\u96f7&#xff08;\u7b80\u5355\u96be\u5ea6&#xff09;\u3002\u73a9\u5bb6\u8f93\u5165\u5750\u6807 (\u884c, \u5217)&#xff0c;\u63ed\u5f00\u90a3\u4e00\u683c\u3002\u5982\u679c\u90a3\u683c\u5468\u56f4\u6709\u96f7&#xff0c;\u663e\u793a\u6570\u5b57 \u5468\u56f4 8 \u683c\u91cc\u7684\u96f7\u6570&#xff1b;\u5982\u679c\u662f 0 \u9897\u96f7&#xff0c;\u5c31\u81ea\u52a8\u628a\u5468\u56f4\u4e5f\u63ed\u5f00&#xff08;\u8fde\u9501\u5c55\u5f00&#xff09;\u3002\u6240\u6709\u975e\u96f7\u683c\u5b50\u90fd\u88ab\u63ed\u5f00 \u80dc\u5229&#xff1b;\u8e29\u5230\u96f7 \u5931\u8d25\u3002\u9996\u51fb\u4fdd\u62a4&amp;#xff1a","og_url":"https:\/\/www.wsisp.com\/helps\/89857.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-03T15:32:53+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260803153250-6a70b4a2bd3f4.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"7 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/89857.html","url":"https:\/\/www.wsisp.com\/helps\/89857.html","name":"\u4ece\u96f6\u5199\u4e00\u4e2a\u80fd\u73a9\u7684 C \u8bed\u8a00\u626b\u96f7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-03T15:32:53+00:00","dateModified":"2026-08-03T15:32:53+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/89857.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/89857.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/89857.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4ece\u96f6\u5199\u4e00\u4e2a\u80fd\u73a9\u7684 C \u8bed\u8a00\u626b\u96f7"}]},{"@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\/89857","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=89857"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/89857\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/89852"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=89857"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=89857"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=89857"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=89857"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}