{"id":9,"date":"2023-07-01T17:35:43","date_gmt":"2023-07-01T09:35:43","guid":{"rendered":"https:\/\/www.buguiling.com\/?p=9"},"modified":"2024-07-01T18:15:28","modified_gmt":"2024-07-01T10:15:28","slug":"%e5%a0%86%e5%92%8c%e6%a0%88%e7%9a%84%e5%8c%ba%e5%88%ab","status":"publish","type":"post","link":"https:\/\/www.buguiling.com\/index.php\/2023\/07\/01\/%e5%a0%86%e5%92%8c%e6%a0%88%e7%9a%84%e5%8c%ba%e5%88%ab\/","title":{"rendered":"\u5806\u548c\u6808\u7684\u533a\u522b"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u5806\u548c\u6808\u7684\u533a\u522b<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><br>1&nbsp; &nbsp; &nbsp; &nbsp; \u9884\u5907\u77e5\u8bc6\u2014\u7a0b\u5e8f\u7684\u5185\u5b58\u5206\u914d<\/h3>\n\n\n\n<p>\u4e00\u4e2a\u7531c\/C++\u7f16\u8bd1\u7684\u7a0b\u5e8f\u5360\u7528\u7684\u5185\u5b58\u5206\u4e3a\u4ee5\u4e0b\u51e0\u4e2a\u90e8\u5206<\/p>\n\n\n\n<p>u&nbsp; &nbsp; &nbsp; &nbsp;1\u3001\u6808\u533a\uff08stack\uff09\u2014&nbsp; &nbsp;\u7531\u7f16\u8bd1\u5668\u81ea\u52a8\u5206\u914d\u91ca\u653e (\u7531\u7f16\u8bd1\u5668\u5728\u9700\u8981\u7684\u65f6\u5019\u5206\u914d\uff0c\u5728\u4e0d\u9700\u8981\u7684\u65f6\u5019\u81ea\u52a8\u6e05\u9664) \u3002\u5b58\u653e\u51fd\u6570\u7684\u53c2\u6570\u503c\uff0c\u5c40\u90e8\u53d8\u91cf\u7684\u503c\u7b49\u3002\u5176\u64cd\u4f5c\u65b9\u5f0f\u7c7b\u4f3c\u4e8e\u6570\u636e\u7ed3\u6784\u4e2d\u7684\u6808\u3002<\/p>\n\n\n\n<p>u&nbsp; &nbsp; &nbsp; &nbsp;2\u3001\u5806\u533a\uff08heap\uff09 \u2014&nbsp; &nbsp;\u4e00\u822c\u7531\u7a0b\u5e8f\u5458\u5206\u914d\u91ca\u653e\uff08\u7531new\u5206\u914d\u7684\u5185\u5b58\u5757\uff0c\u4ed6\u4eec\u7684\u91ca\u653e\u7f16\u8bd1\u5668\u4e0d\u53bb\u7ba1\uff0c\u7531\u6211\u4eec\u7684\u5e94\u7528\u7a0b\u5e8f\u53bb\u63a7\u5236\uff0c\u4e00\u822c\u4e00\u4e2anew\u5c31\u8981\u5bf9\u5e94\u4e00\u4e2adelete\uff09(c\u4e2d\u7528malloc\uff0cc++\u4e2d\u7528new)\uff0c \u82e5\u7a0b\u5e8f\u5458\u4e0d\u91ca\u653e\uff0c\u7a0b\u5e8f\u7ed3\u675f\u65f6\u53ef\u80fd\u7531OS\u56de\u6536 \u3002\u6ce8\u610f\u5b83\u4e0e\u6570\u636e\u7ed3\u6784\u4e2d\u7684\u5806\u662f\u4e24\u56de\u4e8b\uff0c\u5206\u914d\u65b9\u5f0f\u5012\u662f\u7c7b\u4f3c\u4e8e\u94fe\u8868\uff0c\u5475\u5475\u3002<\/p>\n\n\n\n<p>u&nbsp; &nbsp; &nbsp; &nbsp;\u81ea\u7531\u5b58\u50a8\u533a\uff0c\u5c31\u662f\u90a3\u4e9b\u7531malloc\u7b49\u5206\u914d\u7684\u5185\u5b58\u5757\uff0c\u4ed6\u548c\u5806\u662f\u5341\u5206\u76f8\u4f3c\u7684\uff0c\u4e0d\u8fc7\u5b83\u662f\u7528free\u6765\u7ed3\u675f\u81ea\u5df1\u7684\u751f\u547d\u7684\u3002<\/p>\n\n\n\n<p>u&nbsp; &nbsp; &nbsp; &nbsp;3\u3001\u5168\u5c40\u533a\uff08\u9759\u6001\u533a\uff09\uff08static\uff09\u2014\uff0c\u5168\u5c40\u53d8\u91cf\u548c\u9759\u6001\u53d8\u91cf\u7684\u5b58\u50a8\u662f\u653e\u5728\u4e00\u5757\u7684\uff0c\u521d\u59cb\u5316\u7684\u5168\u5c40\u53d8\u91cf\u548c\u9759\u6001\u53d8\u91cf\u5728\u4e00\u5757\u533a\u57df\uff0c \u672a\u521d\u59cb\u5316\u7684\u5168\u5c40\u53d8\u91cf\u548c\u672a\u521d\u59cb\u5316\u7684\u9759\u6001\u53d8\u91cf\u5728\u76f8\u90bb\u7684\u53e6\u4e00\u5757\u533a\u57df\u3002\u5728C++\u91cc\u9762\u6ca1\u6709\u8fd9\u4e2a\u533a\u5206\u4e86\uff0c\u4ed6\u4eec\u5171\u540c\u5360\u7528\u540c\u4e00\u5757\u5185\u5b58\u533a\u3002 &#8211; \u7a0b\u5e8f\u7ed3\u675f\u540e\u6709\u7cfb\u7edf\u91ca\u653e<\/p>\n\n\n\n<p>u&nbsp; &nbsp; &nbsp; &nbsp;4\u3001\u6587\u5b57\u5e38\u91cf\u533a&nbsp; \u2014\u5e38\u91cf\u5b57\u7b26\u4e32\u5c31\u662f\u653e\u5728\u8fd9\u91cc\u7684\uff0c\u4e0d\u5141\u8bb8\u4fee\u6539\u3002 \u7a0b\u5e8f\u7ed3\u675f\u540e\u7531\u7cfb\u7edf\u91ca\u653e<\/p>\n\n\n\n<p>u&nbsp; &nbsp; &nbsp; &nbsp;5\u3001\u7a0b\u5e8f\u4ee3\u7801\u533a\u2014\u5b58\u653e\u51fd\u6570\u4f53\u7684\u4e8c\u8fdb\u5236\u4ee3\u7801\u3002&nbsp;<\/p>\n\n\n\n<p>l&nbsp; &nbsp; &nbsp; &nbsp; \u66f4\u6539\u5806\u6808\u5927\u5c0f\u7684\u8bbe\u7f6e\uff1a<\/p>\n\n\n\n<p>\u5728VC6\u4e0b\u9762\uff0c\u9ed8\u8ba4\u7684\u6808\u7a7a\u95f4\u5927\u5c0f\u662f1M\uff08\u597d\u50cf\u662f\uff0c\u8bb0\u4e0d\u6e05\u695a\u4e86\uff09\u3002\u5f53\u7136\uff0c\u6211\u4eec\u53ef\u4ee5\u4fee\u6539\uff1a<\/p>\n\n\n\n<p>&nbsp; &nbsp; \u6253\u5f00\u5de5\u7a0b\uff0c\u4f9d\u6b21\u64cd\u4f5c\u83dc\u5355\u5982\u4e0b\uff1aProject-&gt;Setting-&gt;Link\uff0c\u5728Category \u4e2d\u9009\u4e2dOutput\uff0c\u7136\u540e\u5728Reserve\u4e2d\u8bbe\u5b9a\u5806\u6808\u7684\u6700\u5927\u503c\u548ccommit\u3002<\/p>\n\n\n\n<p>\u6ce8\u610f\uff1areserve\u6700\u5c0f\u503c\u4e3a4Byte\uff1bcommit\u662f\u4fdd\u7559\u5728\u865a\u62df\u5185\u5b58\u7684\u9875\u6587\u4ef6\u91cc\u9762\uff0c\u5b83\u8bbe\u7f6e\u7684\u8f83\u5927\u4f1a\u4f7f\u6808\u5f00\u8f9f\u8f83\u5927\u7684\u503c\uff0c\u53ef\u80fd\u589e\u52a0\u5185\u5b58\u7684\u5f00\u9500\u548c\u542f\u52a8\u65f6\u95f4\u3002<\/p>\n\n\n\n<p>1.1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u4f8b\u5b50\u7a0b\u5e8f<br>\u8fd9\u662f\u4e00\u4e2a\u524d\u8f88\u5199\u7684\uff0c\u975e\u5e38\u8be6\u7ec6<\/p>\n\n\n\n<p>\/\/main.cpp<\/p>\n\n\n\n<p>int a = 0; \u5168\u5c40\u521d\u59cb\u5316\u533a<\/p>\n\n\n\n<p>char *p1; \u5168\u5c40\u672a\u521d\u59cb\u5316\u533a<\/p>\n\n\n\n<p>main()<\/p>\n\n\n\n<p>{<\/p>\n\n\n\n<p>int b; \u6808<\/p>\n\n\n\n<p>char s[] = &#8220;abc&#8221;; \u6808<\/p>\n\n\n\n<p>char *p2; \u6808<\/p>\n\n\n\n<p>char *p3 = &#8220;123456&#8221;; 123456\/0\u5728\u5e38\u91cf\u533a\uff0cp3\u5728\u6808\u4e0a\u3002<\/p>\n\n\n\n<p>static int c =0\uff1b \u5168\u5c40\uff08\u9759\u6001\uff09\u521d\u59cb\u5316\u533a<\/p>\n\n\n\n<p>p1 = (char *)malloc(10);<\/p>\n\n\n\n<p>p2 = (char *)malloc(20);<\/p>\n\n\n\n<p>\u5206\u914d\u5f97\u6765\u5f9710\u548c20\u5b57\u8282\u7684\u533a\u57df\u5c31\u5728\u5806\u533a\u3002<\/p>\n\n\n\n<p>strcpy(p1, &#8220;123456&#8221;); 123456\/0\u653e\u5728\u5e38\u91cf\u533a\uff0c\u7f16\u8bd1\u5668\u53ef\u80fd\u4f1a\u5c06\u5b83\u4e0ep3\u6240\u6307\u5411\u7684&#8221;123456&#8243;\u4f18\u5316\u6210\u4e00\u4e2a\u5730\u65b9\u3002<\/p>\n\n\n\n<p>}&nbsp;<\/p>\n\n\n\n<p>2 \u5806\u548c\u6808\u7684\u7406\u8bba\u77e5\u8bc6<\/p>\n\n\n\n<p>2.1&nbsp; &nbsp; &nbsp; \u7533\u8bf7\u65b9\u5f0f<br>stack:<\/p>\n\n\n\n<p>\u7531\u7cfb\u7edf\u81ea\u52a8\u5206\u914d\u3002 \u4f8b\u5982\uff0c\u58f0\u660e\u5728\u51fd\u6570\u4e2d\u4e00\u4e2a\u5c40\u90e8\u53d8\u91cf int b; \u7cfb\u7edf\u81ea\u52a8\u5728\u6808\u4e2d\u4e3ab\u5f00\u8f9f\u7a7a\u95f4<\/p>\n\n\n\n<p>heap:<\/p>\n\n\n\n<p>\u9700\u8981\u7a0b\u5e8f\u5458\u81ea\u5df1\u7533\u8bf7\uff0c\u5e76\u6307\u660e\u5927\u5c0f\uff0c\u5728c\u4e2dmalloc\u51fd\u6570<\/p>\n\n\n\n<p>\u5982p1 = (char *)malloc(10);<\/p>\n\n\n\n<p>\u5728C++\u4e2d\u7528new\u8fd0\u7b97\u7b26<\/p>\n\n\n\n<p>\u5982p2 = (char *)malloc(10);<\/p>\n\n\n\n<p>\u4f46\u662f\u6ce8\u610fp1\u3001p2\u672c\u8eab\u662f\u5728\u6808\u4e2d\u7684\u3002<\/p>\n\n\n\n<p>2.2&nbsp; &nbsp; &nbsp; \u7533\u8bf7\u540e\u7cfb\u7edf\u7684\u54cd\u5e94<br>\u6808<\/p>\n\n\n\n<p>\u53ea\u8981\u6808\u7684\u5269\u4f59\u7a7a\u95f4\u5927\u4e8e\u6240\u7533\u8bf7\u7a7a\u95f4\uff0c\u7cfb\u7edf\u5c06\u4e3a\u7a0b\u5e8f\u63d0\u4f9b\u5185\u5b58\uff0c\u5426\u5219\u5c06\u62a5\u5f02\u5e38\u63d0\u793a\u6808\u6ea2\u51fa\u3002<\/p>\n\n\n\n<p>\u5806<\/p>\n\n\n\n<p>\u9996\u5148\u5e94\u8be5\u77e5\u9053\u64cd\u4f5c\u7cfb\u7edf\u6709\u4e00\u4e2a\u8bb0\u5f55\u7a7a\u95f2\u5185\u5b58\u5730\u5740\u7684\u94fe\u8868\uff0c\u5f53\u7cfb\u7edf\u6536\u5230\u7a0b\u5e8f\u7684\u7533\u8bf7\u65f6\uff0c<\/p>\n\n\n\n<p>\u4f1a\u904d\u5386\u8be5\u94fe\u8868\uff0c\u5bfb\u627e\u7b2c\u4e00\u4e2a\u7a7a\u95f4\u5927\u4e8e\u6240\u7533\u8bf7\u7a7a\u95f4\u7684\u5806\u7ed3\u70b9\uff0c\u7136\u540e\u5c06\u8be5\u7ed3\u70b9\u4ece\u7a7a\u95f2\u7ed3\u70b9\u94fe\u8868\u4e2d\u5220\u9664\uff0c\u5e76\u5c06\u8be5\u7ed3\u70b9\u7684\u7a7a\u95f4\u5206\u914d\u7ed9\u7a0b\u5e8f\uff0c\u53e6\u5916\uff0c\u5bf9\u4e8e\u5927\u591a\u6570\u7cfb\u7edf\uff0c\u4f1a\u5728\u8fd9\u5757\u5185\u5b58\u7a7a\u95f4\u4e2d\u7684\u9996\u5730\u5740\u5904\u8bb0\u5f55\u672c\u6b21\u5206\u914d\u7684\u5927\u5c0f\uff0c\u8fd9\u6837\uff0c\u4ee3\u7801\u4e2d\u7684delete\u8bed\u53e5\u624d\u80fd\u6b63\u786e\u7684\u91ca\u653e\u672c\u5185\u5b58\u7a7a\u95f4\u3002\u53e6\u5916\uff0c\u7531\u4e8e\u627e\u5230\u7684\u5806\u7ed3\u70b9\u7684\u5927\u5c0f\u4e0d\u4e00\u5b9a\u6b63\u597d\u7b49\u4e8e\u7533\u8bf7\u7684\u5927\u5c0f\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u7684\u5c06\u591a\u4f59\u7684\u90a3\u90e8\u5206\u91cd\u65b0\u653e\u5165\u7a7a\u95f2\u94fe\u8868\u4e2d\u3002<\/p>\n\n\n\n<p>2.3&nbsp; &nbsp; &nbsp; \u7533\u8bf7\u5927\u5c0f\u7684\u9650\u5236<br>\u6808<\/p>\n\n\n\n<p>\u5728Windows\u4e0b,\u6808\u662f\u5411\u4f4e\u5730\u5740\u6269\u5c55\u7684\u6570\u636e\u7ed3\u6784\uff0c\u662f\u4e00\u5757\u8fde\u7eed\u7684\u5185\u5b58\u7684\u533a\u57df\u3002\u8fd9\u53e5\u8bdd\u7684\u610f\u601d\u662f\u6808\u9876\u7684\u5730\u5740\u548c\u6808\u7684\u6700\u5927\u5bb9\u91cf\u662f\u7cfb\u7edf\u9884\u5148\u89c4\u5b9a\u597d\u7684\uff0c\u5728WINDOWS\u4e0b\uff0c\u6808\u7684\u5927\u5c0f\u662f2M\uff08\u4e5f\u6709\u7684\u8bf4\u662f1M\uff0c\u603b\u4e4b\u662f\u4e00\u4e2a\u7f16\u8bd1\u65f6\u5c31\u786e\u5b9a\u7684\u5e38\u6570\uff09\uff0c\u5982\u679c\u7533\u8bf7\u7684\u7a7a\u95f4\u8d85\u8fc7\u6808\u7684\u5269\u4f59\u7a7a\u95f4\u65f6\uff0c\u5c06\u63d0\u793aoverflow\u3002\u56e0\u6b64\uff0c\u80fd\u4ece\u6808\u83b7\u5f97\u7684\u7a7a\u95f4\u8f83\u5c0f\u3002<\/p>\n\n\n\n<p>\u5806<\/p>\n\n\n\n<p>\u5806\u662f\u5411\u9ad8\u5730\u5740\u6269\u5c55\u7684\u6570\u636e\u7ed3\u6784\uff0c\u662f\u4e0d\u8fde\u7eed\u7684\u5185\u5b58\u533a\u57df\u3002\u8fd9\u662f\u7531\u4e8e\u7cfb\u7edf\u662f\u7528\u94fe\u8868\u6765\u5b58\u50a8\u7684\u7a7a\u95f2\u5185\u5b58\u5730\u5740\u7684\uff0c\u81ea\u7136\u662f\u4e0d\u8fde\u7eed\u7684\uff0c\u800c\u94fe\u8868\u7684\u904d\u5386\u65b9\u5411\u662f\u7531\u4f4e\u5730\u5740\u5411\u9ad8\u5730\u5740\u3002\u5806\u7684\u5927\u5c0f\u53d7\u9650\u4e8e\u8ba1\u7b97\u673a\u7cfb\u7edf\u4e2d\u6709\u6548\u7684\u865a\u62df\u5185\u5b58\u3002\u7531\u6b64\u53ef\u89c1\uff0c\u5806\u83b7\u5f97\u7684\u7a7a\u95f4\u6bd4\u8f83\u7075\u6d3b\uff0c\u4e5f\u6bd4\u8f83\u5927\u3002<\/p>\n\n\n\n<p>2.4&nbsp; &nbsp; &nbsp; \u7533\u8bf7\u6548\u7387\u7684\u6bd4\u8f83\uff1a<br>\u6808\u7531\u7cfb\u7edf\u81ea\u52a8\u5206\u914d\uff0c\u901f\u5ea6\u8f83\u5feb\u3002\u4f46\u7a0b\u5e8f\u5458\u662f\u65e0\u6cd5\u63a7\u5236\u7684\u3002<\/p>\n\n\n\n<p>\u5806\u662f\u7531new\u5206\u914d\u7684\u5185\u5b58\uff0c\u4e00\u822c\u901f\u5ea6\u6bd4\u8f83\u6162\uff0c\u800c\u4e14\u5bb9\u6613\u4ea7\u751f\u5185\u5b58\u788e\u7247,\u4e0d\u8fc7\u7528\u8d77\u6765\u6700\u65b9\u4fbf.<\/p>\n\n\n\n<p>\u53e6\u5916\uff0c\u5728WINDOWS\u4e0b\uff0c\u6700\u597d\u7684\u65b9\u5f0f\u662f\u7528VirtualAlloc\u5206\u914d\u5185\u5b58\uff0c\u4ed6\u4e0d\u662f\u5728\u5806\uff0c\u4e5f\u4e0d\u662f\u5728\u6808\u662f\u76f4\u63a5\u5728\u8fdb\u7a0b\u7684\u5730\u5740\u7a7a\u95f4\u4e2d\u4fdd\u7559\u4e00\u5feb\u5185\u5b58\uff0c\u867d\u7136\u7528\u8d77\u6765\u6700\u4e0d\u65b9\u4fbf\u3002\u4f46\u662f\u901f\u5ea6\u5feb\uff0c\u4e5f\u6700\u7075\u6d3b\u3002<\/p>\n\n\n\n<p>2.5&nbsp; &nbsp; &nbsp; \u5806\u548c\u6808\u4e2d\u7684\u5b58\u50a8\u5185\u5bb9<br>\u6808\uff1a \u5728\u51fd\u6570\u8c03\u7528\u65f6\uff0c\u7b2c\u4e00\u4e2a\u8fdb\u6808\u7684\u662f\u4e3b\u51fd\u6570\u4e2d\u540e\u7684\u4e0b\u4e00\u6761\u6307\u4ee4\uff08\u51fd\u6570\u8c03\u7528\u8bed\u53e5\u7684\u4e0b\u4e00\u6761\u53ef\u6267\u884c\u8bed\u53e5\uff09\u7684\u5730\u5740\uff0c\u7136\u540e\u662f\u51fd\u6570\u7684\u5404\u4e2a\u53c2\u6570\uff0c\u5728\u5927\u591a\u6570\u7684C\u7f16\u8bd1\u5668\u4e2d\uff0c\u53c2\u6570\u662f\u7531\u53f3\u5f80\u5de6\u5165\u6808\u7684\uff0c\u7136\u540e\u662f\u51fd\u6570\u4e2d\u7684\u5c40\u90e8\u53d8\u91cf\u3002\u6ce8\u610f\u9759\u6001\u53d8\u91cf\u662f\u4e0d\u5165\u6808\u7684\u3002<\/p>\n\n\n\n<p>\u5f53\u672c\u6b21\u51fd\u6570\u8c03\u7528\u7ed3\u675f\u540e\uff0c\u5c40\u90e8\u53d8\u91cf\u5148\u51fa\u6808\uff0c\u7136\u540e\u662f\u53c2\u6570\uff0c\u6700\u540e\u6808\u9876\u6307\u9488\u6307\u5411\u6700\u5f00\u59cb\u5b58\u7684\u5730\u5740\uff0c\u4e5f\u5c31\u662f\u4e3b\u51fd\u6570\u4e2d\u7684\u4e0b\u4e00\u6761\u6307\u4ee4\uff0c\u7a0b\u5e8f\u7531\u8be5\u70b9\u7ee7\u7eed\u8fd0\u884c\u3002<\/p>\n\n\n\n<p>\u5806\uff1a\u4e00\u822c\u662f\u5728\u5806\u7684\u5934\u90e8\u7528\u4e00\u4e2a\u5b57\u8282\u5b58\u653e\u5806\u7684\u5927\u5c0f\u3002\u5806\u4e2d\u7684\u5177\u4f53\u5185\u5bb9\u6709\u7a0b\u5e8f\u5458\u5b89\u6392\u3002<\/p>\n\n\n\n<p>2.6&nbsp; &nbsp; &nbsp; \u5b58\u53d6\u6548\u7387\u7684\u6bd4\u8f83<br>char s1[] = &#8220;aaaaaaaaaaaaaaa&#8221;;<\/p>\n\n\n\n<p>char *s2 = &#8220;bbbbbbbbbbbbbbbbb&#8221;;<\/p>\n\n\n\n<p>aaaaaaaaaaa\u662f\u5728\u8fd0\u884c\u65f6\u523b\u8d4b\u503c\u7684\uff1b<\/p>\n\n\n\n<p>\u800cbbbbbbbbbbb\u662f\u5728\u7f16\u8bd1\u65f6\u5c31\u786e\u5b9a\u7684\uff1b<\/p>\n\n\n\n<p>\u4f46\u662f\uff0c\u5728\u4ee5\u540e\u7684\u5b58\u53d6\u4e2d\uff0c\u5728\u6808\u4e0a\u7684\u6570\u7ec4\u6bd4\u6307\u9488\u6240\u6307\u5411\u7684\u5b57\u7b26\u4e32(\u4f8b\u5982\u5806)\u5feb\u3002<\/p>\n\n\n\n<p>\u6bd4\u5982\uff1a<\/p>\n\n\n\n<p>#include<\/p>\n\n\n\n<p>void main()<\/p>\n\n\n\n<p>{<\/p>\n\n\n\n<p>char a = 1;<\/p>\n\n\n\n<p>char c[] = &#8220;1234567890&#8221;;<\/p>\n\n\n\n<p>char *p =&#8221;1234567890&#8243;;<\/p>\n\n\n\n<p>a = c[1];<\/p>\n\n\n\n<p>a = p[1];<\/p>\n\n\n\n<p>return;<\/p>\n\n\n\n<p>}<\/p>\n\n\n\n<p>\u5bf9\u5e94\u7684\u6c47\u7f16\u4ee3\u7801<\/p>\n\n\n\n<p>10: a = c[1];<\/p>\n\n\n\n<p>00401067 8A 4D F1 mov cl,byte ptr [ebp-0Fh]<\/p>\n\n\n\n<p>0040106A 88 4D FC mov byte ptr [ebp-4],cl<\/p>\n\n\n\n<p>11: a = p[1];<\/p>\n\n\n\n<p>0040106D 8B 55 EC mov edx,dword ptr [ebp-14h]<\/p>\n\n\n\n<p>00401070 8A 42 01 mov al,byte ptr [edx+1]<\/p>\n\n\n\n<p>00401073 88 45 FC mov byte ptr [ebp-4],al<\/p>\n\n\n\n<p>\u7b2c\u4e00\u79cd\u5728\u8bfb\u53d6\u65f6\u76f4\u63a5\u5c31\u628a\u5b57\u7b26\u4e32\u4e2d\u7684\u5143\u7d20\u8bfb\u5230\u5bc4\u5b58\u5668cl\u4e2d\uff0c\u800c\u7b2c\u4e8c\u79cd\u5219\u8981\u5148\u628a\u6307\u9488\u503c\u8bfb\u5230edx\u4e2d\uff0c\u5728\u6839\u636eedx\u8bfb\u53d6\u5b57\u7b26\uff0c\u663e\u7136\u6162\u4e86\u3002<\/p>\n\n\n\n<p>2.7&nbsp; &nbsp; &nbsp; \u5c0f\u7ed3\uff1a<br>\u5806\u548c\u6808\u7684\u533a\u522b\u53ef\u4ee5\u7528\u5982\u4e0b\u7684\u6bd4\u55bb\u6765\u770b\u51fa\uff1a<\/p>\n\n\n\n<p>\u4f7f\u7528\u6808\u5c31\u8c61\u6211\u4eec\u53bb\u996d\u9986\u91cc\u5403\u996d\uff0c\u53ea\u7ba1\u70b9\u83dc\uff08\u53d1\u51fa\u7533\u8bf7\uff09\u3001\u4ed8\u94b1\u3001\u548c\u5403\uff08\u4f7f\u7528\uff09\uff0c\u5403\u9971\u4e86\u5c31\u8d70\uff0c\u4e0d\u5fc5\u7406\u4f1a\u5207\u83dc\u3001\u6d17\u83dc\u7b49\u51c6\u5907\u5de5\u4f5c\u548c\u6d17\u7897\u3001\u5237\u9505\u7b49\u626b\u5c3e\u5de5\u4f5c\uff0c\u4ed6\u7684\u597d\u5904\u662f\u5feb\u6377\uff0c\u4f46\u662f\u81ea\u7531\u5ea6\u5c0f\u3002<\/p>\n\n\n\n<p>\u4f7f\u7528\u5806\u5c31\u8c61\u662f\u81ea\u5df1\u52a8\u624b\u505a\u559c\u6b22\u5403\u7684\u83dc\u80b4\uff0c\u6bd4\u8f83\u9ebb\u70e6\uff0c\u4f46\u662f\u6bd4\u8f83\u7b26\u5408\u81ea\u5df1\u7684\u53e3\u5473\uff0c\u800c\u4e14\u81ea\u7531\u5ea6\u5927\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5806\u548c\u6808\u7684\u533a\u522b 1&nbsp; &nbsp; &nbsp; &nbsp; \u9884\u5907\u77e5\u8bc6\u2014\u7a0b\u5e8f\u7684\u5185\u5b58\u5206\u914d \u4e00\u4e2a\u7531c\/C &hellip; <a href=\"https:\/\/www.buguiling.com\/index.php\/2023\/07\/01\/%e5%a0%86%e5%92%8c%e6%a0%88%e7%9a%84%e5%8c%ba%e5%88%ab\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201c\u5806\u548c\u6808\u7684\u533a\u522b\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/www.buguiling.com\/index.php\/wp-json\/wp\/v2\/posts\/9"}],"collection":[{"href":"https:\/\/www.buguiling.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.buguiling.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.buguiling.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.buguiling.com\/index.php\/wp-json\/wp\/v2\/comments?post=9"}],"version-history":[{"count":1,"href":"https:\/\/www.buguiling.com\/index.php\/wp-json\/wp\/v2\/posts\/9\/revisions"}],"predecessor-version":[{"id":10,"href":"https:\/\/www.buguiling.com\/index.php\/wp-json\/wp\/v2\/posts\/9\/revisions\/10"}],"wp:attachment":[{"href":"https:\/\/www.buguiling.com\/index.php\/wp-json\/wp\/v2\/media?parent=9"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.buguiling.com\/index.php\/wp-json\/wp\/v2\/categories?post=9"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.buguiling.com\/index.php\/wp-json\/wp\/v2\/tags?post=9"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}