{"id":306,"date":"2013-01-19T14:25:00","date_gmt":"2013-01-19T06:25:00","guid":{"rendered":"http:\/\/nike0good.jp1.rpvhost.net\/211"},"modified":"2013-01-19T14:25:00","modified_gmt":"2013-01-19T06:25:00","slug":"static","status":"publish","type":"post","link":"https:\/\/nike0good.com\/?p=306","title":{"rendered":"Static"},"content":{"rendered":"<div class=\"mod-top\" style=\"margin-bottom:30px; font-family:arial,\u5b8b\u4f53,sans-serif; font-size:14px; line-height:24px\">\n<div class=\"card-summary nslog-area\" style=\"line-height:1.8; margin-bottom:25px\">\n<div class=\"card-summary-content\" style=\"overflow:hidden\">\n<p style=\"text-indent:0px; margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px\">\n<span style=\"text-indent:30px; line-height:24px\"><span style=\"white-space:pre\"><\/span><\/span><\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n\u9759\u6001\u53d8\u91cf\u4f5c\u7528\u8303\u56f4\u5728\u4e00\u4e2a\u6587\u4ef6\u5185\uff0c\u7a0b\u5e8f\u5f00\u59cb\u65f6\u5206\u914d\u7a7a\u95f4\uff0c\u7ed3\u675f\u65f6\u91ca\u653e\u7a7a\u95f4\uff0c\u9ed8\u8ba4\u521d\u59cb\u5316\u4e3a0\uff0c\u4f7f\u7528\u65f6\u53ef\u4ee5\u6539\u53d8\u5176&#20540;\u3002<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp; &nbsp; \u9759\u6001\u53d8\u91cf\u6216\u9759\u6001\u51fd\u6570\u53ea\u6709\u672c\u6587\u4ef6\u5185\u7684\u4ee3\u7801\u624d\u80fd\u8bbf\u95ee\u5b83\uff0c\u5b83\u7684\u540d\u5b57\u5728\u5176\u5b83\u6587\u4ef6\u4e2d\u4e0d\u53ef\u89c1\u3002<br \/>\n<strong>\u7528\u6cd51\uff1a\u51fd\u6570\u5185\u90e8\u58f0\u660e\u7684static\u53d8\u91cf\uff0c\u53ef\u4f5c\u4e3a\u5bf9\u8c61\u95f4\u7684\u4e00\u79cd\u901a\u4fe1\u673a\u5236<\/strong><br \/>\n&nbsp; &nbsp; \u5982\u679c\u4e00\u5c40\u90e8\u53d8\u91cf\u88ab\u58f0\u660e\u4e3astatic\uff0c\u90a3\u4e48\u5c06\u53ea\u6709\u552f\u4e00\u7684\u4e00\u4e2a\u9759\u6001\u5206\u914d\u7684\u5bf9\u8c61\uff0c\u5b83\u88ab\u7528\u4e8e\u5728\u8be5\u51fd\u6570\u7684\u6240\u6709\u8c03\u7528\u4e2d\u8868\u793a\u8fd9\u4e2a\u53d8\u91cf\u3002\u8fd9\u4e2a\u5bf9\u8c61\u5c06\u53ea\u5728\u6267\u884c\u7ebf\u7a0b\u7b2c\u4e00\u6b21\u5230\u8fbe\u5b83\u7684\u5b9a\u4e49\u4f7f\u521d\u59cb\u5316\u3002<br \/>\n<strong>\u7528\u6cd52\uff1a\u5c40\u90e8\u9759\u6001\u5bf9\u8c61<\/strong><br \/>\n&nbsp; &nbsp; \u5bf9\u4e8e\u5c40\u90e8\u9759\u6001\u5bf9\u8c61\uff0c\u6784\u9020\u51fd\u6570\u662f\u5728\u63a7\u5236\u7ebf\u7a0b\u7b2c\u4e00\u6b21\u901a\u8fc7\u8be5\u5bf9\u8c61\u7684\u5b9a\u4e49\u65f6\u8c03\u7528\u3002\u5728\u7a0b\u5e8f\u7ed3\u675f\u65f6\uff0c\u5c40\u90e8\u9759\u6001\u5bf9\u8c61\u7684\u6790\u6784\u51fd\u6570\u5c06\u6309\u7167\u4ed6\u4eec\u88ab\u6784\u9020\u7684\u76f8\u53cd\u987a\u5e8f\u9010\u4e00\u8c03\u7528\uff0c\u6ca1\u6709\u89c4\u5b9a\u786e\u5207\u65f6\u95f4\u3002<br \/>\n<strong>&nbsp;\u7528\u6cd53\uff1a\u9759\u6001\u6210\u5458\u548c\u9759\u6001\u6210\u5458\u51fd\u6570<\/strong><br \/>\n&nbsp;&nbsp;\u5982\u679c\u4e00\u4e2a\u53d8\u91cf\u662f\u7c7b\u7684\u4e00\u90e8\u5206\uff0c\u4f46\u5374\u4e0d\u662f\u8be5\u7c7b\u7684\u5404\u4e2a\u5bf9\u8c61\u7684\u4e00\u90e8\u5206\uff0c\u5b83\u5c31\u88ab\u6210\u4e3a\u662f\u4e00\u4e2astatic\u9759\u6001\u6210\u5458\u3002\u4e00\u4e2astatic\u6210\u5458\u53ea\u6709\u552f\u4e00\u7684\u4e00\u4efd\u526f\u672c\uff0c\u800c\u4e0d\u50cf\u5e38\u89c4\u7684\u975estatic\u6210\u5458\u90a3\u6837\u5728\u6bcf\u4e2a\u5bf9\u8c61\u91cc\u5404\u6709\u4e00\u4efd\u526f\u672c\u3002\u540c\u7406\uff0c\u4e00\u4e2a\u9700\u8981\u8bbf\u95ee\u7c7b\u6210\u5458\uff0c\u800c\u4e0d\u9700\u8981\u9488\u5bf9\u7279\u5b9a\u5bf9\u8c61\u53bb\u8c03\u7528\u7684\u51fd\u6570\uff0c\u4e5f\u88ab\u79f0\u4e3a\u4e00\u4e2astatic\u6210\u5458\u51fd\u6570\u3002<br \/>\n\u7c7b\u7684\u9759\u6001\u6210\u5458\u51fd\u6570\u53ea\u80fd\u8bbf\u95ee\u7c7b\u7684\u9759\u6001\u6210\u5458(\u53d8\u91cf\u6216\u51fd\u6570)\u3002<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;&nbsp;&nbsp; \u8fdb\u4e00\u6b65\u8be6\u7ec6\u89e3\u91ca\u5982\u4e0b\uff1a<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n1.\u5148\u6765\u4ecb\u7ecd\u5b83\u7684\u7b2c\u4e00\u6761\u4e5f\u662f\u6700\u91cd\u8981\u7684\u4e00\u6761\uff1a\u9690\u85cf<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;&nbsp;&nbsp;&nbsp; \u5f53\u6211\u4eec\u540c\u65f6\u7f16\u8bd1\u591a\u4e2a\u6587\u4ef6\u65f6\uff0c\u6240\u6709\u672a\u52a0static\u524d\u7f00\u7684\u5168\u5c40\u53d8\u91cf\u548c\u51fd\u6570\u90fd\u5177\u6709\u5168\u5c40\u53ef\u89c1\u6027\u3002\u4e3a\u7406\u89e3\u8fd9\u53e5\u8bdd\uff0c\u6211\u4e3e\u4f8b\u6765\u8bf4\u660e\u3002\u6211\u4eec\u8981\u540c\u65f6\u7f16\u8bd1\u4e24\u4e2a\u6e90\u6587\u4ef6\uff0c\u4e00\u4e2a\u662fa.c\uff0c\u53e6\u4e00\u4e2a\u662fmain.c. \u4e0b\u9762\u662fa.c\u7684\u5185\u5bb9:<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\nchar a = 'A'; \/\/ global variable<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\nvoid msg() { printf(&quot;Hellon&quot;); }<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;&nbsp;&nbsp; \u4e0b\u9762\u662fmain.c\u7684\u5185\u5bb9\uff1a<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\nint main(void) {&nbsp;<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;&nbsp;&nbsp; extern char a; \/\/ extern variable must be declared before use<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;&nbsp;&nbsp; printf(&quot;%c &quot;, a);<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;&nbsp;&nbsp; (void)msg();<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;&nbsp;&nbsp; return 0;&nbsp; }<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;&nbsp;&nbsp; \u7a0b\u5e8f\u7684\u8fd0\u884c\u7ed3\u679c\u662f\uff1a<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\nA Hello<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;&nbsp;&nbsp;&nbsp;\u4f60\u53ef\u80fd\u4f1a\u95ee\uff1a\u4e3a\u4ec0\u4e48\u5728a.c\u4e2d\u5b9a\u4e49\u7684\u5168\u5c40\u53d8\u91cfa\u548c\u51fd\u6570msg\u80fd\u5728main.c\u4e2d\u4f7f\u7528\uff1f\u524d\u9762\u8bf4\u8fc7\uff0c\u6240\u6709\u672a\u52a0static\u524d\u7f00\u7684\u5168\u5c40\u53d8\u91cf\u548c\u51fd\u6570\u90fd\u5177\u6709\u5168\u5c40\u53ef\u89c1\u6027\uff0c\u5176\u5b83\u7684\u6e90\u6587\u4ef6\u4e5f\u80fd\u8bbf\u95ee\u3002\u6b64\u4f8b\u4e2d\uff0ca\u662f\u5168\u5c40\u53d8\u91cf\uff0cmsg\u662f\u51fd\u6570\uff0c\u5e76\u4e14\u90fd\u6ca1\u6709\u52a0static\u524d\u7f00\uff0c\u56e0\u6b64\u5bf9\u4e8e\u53e6\u5916\u7684\u6e90\u6587\u4ef6main.c\u662f\u53ef\u89c1\u7684\u3002<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n\u5982\u679c\u52a0\u4e86static\uff0c\u5c31\u4f1a\u5bf9\u5176\u5b83\u6e90\u6587\u4ef6\u9690\u85cf\u3002\u4f8b\u5982\u5728a\u548cmsg\u7684\u5b9a\u4e49\u524d\u52a0\u4e0astatic\uff0cmain.c\u5c31\u770b\u4e0d\u5230\u5b83\u4eec\u4e86\u3002\u5229\u7528\u8fd9\u4e00\u7279\u6027\u53ef\u4ee5\u5728\u4e0d\u540c\u7684\u6587\u4ef6\u4e2d\u5b9a\u4e49\u540c\u540d\u51fd\u6570\u548c\u540c\u540d\u53d8\u91cf\uff0c\u800c\u4e0d\u5fc5\u62c5\u5fc3\u547d\u540d\u51b2\u7a81\u3002Static\u53ef\u4ee5\u7528\u4f5c\u51fd\u6570\u548c\u53d8\u91cf\u7684\u524d\u7f00\uff0c\u5bf9\u4e8e\u51fd\u6570\u6765\u8bb2\uff0cstatic\u7684\u4f5c\u7528\u4ec5\u9650\u4e8e\u9690\u85cf\uff0c\u800c\u5bf9\u4e8e\u53d8\u91cf\uff0cstatic\u8fd8\u6709\u4e0b\u9762\u4e24\u4e2a\u4f5c\u7528\u3002<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n2. static\u7684\u7b2c\u4e8c\u4e2a\u4f5c\u7528\u662f\u4fdd\u6301\u53d8\u91cf\u5185\u5bb9\u7684\u6301\u4e45<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;&nbsp;&nbsp;&nbsp;\u5b58\u50a8\u5728\u9759\u6001\u6570\u636e\u533a\u7684\u53d8\u91cf\u4f1a\u5728\u7a0b\u5e8f\u521a\u5f00\u59cb\u8fd0\u884c\u65f6\u5c31\u5b8c\u6210\u521d\u59cb\u5316\uff0c\u4e5f\u662f\u552f\u4e00\u7684\u4e00\u6b21\u521d\u59cb\u5316\u3002\u5171\u6709\u4e24\u79cd\u53d8\u91cf\u5b58\u50a8\u5728\u9759\u6001\u5b58\u50a8\u533a\uff1a\u5168\u5c40\u53d8\u91cf\u548cstatic\u53d8\u91cf\uff0c\u53ea\u4e0d\u8fc7\u548c\u5168\u5c40\u53d8\u91cf\u6bd4\u8d77\u6765\uff0cstatic\u53ef\u4ee5\u63a7\u5236\u53d8\u91cf\u7684\u53ef\u89c1\u8303\u56f4\uff0c\u8bf4\u5230\u5e95static\u8fd8\u662f\u7528\u6765\u9690\u85cf\u7684\u3002\u867d\u7136\u8fd9\u79cd\u7528\u6cd5\u4e0d\u5e38\u89c1\uff0c\u4f46\u6211\u8fd8\u662f\u4e3e\u4e00\u4e2a\u4f8b\u5b50\u3002<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n#include \uff1cstdio.h\uff1e<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;int fun(void){<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\nstatic int count = 10; \/\/ \u4e8b\u5b9e\u4e0a\u6b64\u8d4b&#20540;\u8bed\u53e5\u4ece\u6765\u6ca1\u6709\u6267\u884c\u8fc7<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;return count--;<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;}<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;int count = 1;<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\nint main(void) {<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\nprintf(&quot;globalttlocal staticn&quot;);<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;for(; count \uff1c= 10; &#43;&#43;count)<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;&nbsp;&nbsp; printf(&quot;%dtt%dn&quot;, count, fun());<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;return 0; }<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;&nbsp;&nbsp; \u7a0b\u5e8f\u7684\u8fd0\u884c\u7ed3\u679c\u662f\uff1a<\/p>\n<p align=\"center\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\nglobal local static<br \/>\n1&nbsp; 10<br \/>\n2&nbsp;&nbsp; 9<br \/>\n3&nbsp;&nbsp; 8<br \/>\n4&nbsp;&nbsp; 7<br \/>\n5&nbsp;&nbsp; 6<br \/>\n6&nbsp;&nbsp; 5<br \/>\n7&nbsp;&nbsp; 4<br \/>\n8&nbsp;&nbsp; 3<br \/>\n9&nbsp;&nbsp; 2<br \/>\n10&nbsp;&nbsp;1<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n3. static\u7684\u7b2c\u4e09\u4e2a\u4f5c\u7528\u662f\u9ed8\u8ba4\u521d\u59cb\u5316\u4e3a0.\u5176\u5b9e\u5168\u5c40\u53d8\u91cf\u4e5f\u5177\u5907\u8fd9\u4e00\u5c5e\u6027\uff0c\u56e0\u4e3a\u5168\u5c40\u53d8\u91cf\u4e5f\u5b58\u50a8\u5728\u9759\u6001\u6570\u636e\u533a<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n<span style=\"color:#ff0000\">\u6ce8\u610f:<\/span><\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n<span style=\"color:#ff0000\"><\/span><\/p>\n<pre name=\"code\" class=\"cpp\">#include&lt;cstdio&gt;\n#include&lt;iostream&gt;\n#include&lt;cstdlib&gt;\n#include&lt;cstring&gt;\nusing namespace std;\nint&amp; hash(int x)\n{\n\tstatic int t=x*2;\n\treturn t;\n}\nint main()\n{\n\thash(2);\n\thash(3);\n\tcout&lt;&lt;hash(2)&lt;&lt;hash(3);\n\n\treturn 0;\n}<\/pre>\n<p>\n\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u8fd4\u56de&#20540;\u4e3a4\uff0c4.<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n<span style=\"color:#ff0000\">hash(2) \u548c &nbsp;hash(3) \u8868\u793a\u540c\u4e00\u4e2a\u51fd\u6570.<\/span><\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n<span style=\"color:#ff0000\">\u60f3\u5199hash\u8fd8\u662f\u8001\u8001\u5b9e\u5b9e\u7528Map\u5427~<\/span><\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n\n<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;&nbsp;&nbsp;&nbsp;\u5728\u9759\u6001\u6570\u636e\u533a\uff0c\u5185\u5b58\u4e2d\u6240\u6709\u7684\u5b57\u8282\u9ed8\u8ba4&#20540;\u90fd\u662f0x00\uff0c\u67d0\u4e9b\u65f6\u5019\u8fd9\u4e00\u7279\u70b9\u53ef\u4ee5\u51cf\u5c11\u7a0b\u5e8f\u5458\u7684\u5de5\u4f5c\u91cf\u3002\u6bd4\u5982\u521d\u59cb\u5316\u4e00\u4e2a\u7a00\u758f\u77e9\u9635\uff0c\u6211\u4eec\u53ef\u4ee5\u4e00\u4e2a\u4e00\u4e2a\u5730\u628a\u6240\u6709\u5143\u7d20\u90fd\u7f6e0\uff0c\u7136\u540e\u628a\u4e0d\u662f0\u7684\u51e0\u4e2a\u5143\u7d20\u8d4b&#20540;\u3002\u5982\u679c\u5b9a\u4e49\u6210\u9759\u6001\u7684\uff0c\u5c31\u7701\u53bb\u4e86\u4e00\u5f00\u59cb\u7f6e0\u7684\u64cd\u4f5c\u3002\u518d\u6bd4\u5982\u8981\u628a\u4e00\u4e2a\u5b57\u7b26\u6570\u7ec4\u5f53\u5b57\u7b26\u4e32\u6765\u7528\uff0c\u4f46\u53c8\u89c9\u5f97\u6bcf\u6b21\u5728\u5b57\u7b26\u6570\u7ec4\u672b\u5c3e\u52a0\u2018\u0000\u2019\u592a\u9ebb\u70e6\u3002\u5982\u679c\u628a\u5b57\u7b26\u4e32\u5b9a\u4e49\u6210\u9759\u6001\u7684\uff0c\u5c31\u7701\u53bb\u4e86\u8fd9\u4e2a\u9ebb\u70e6\uff0c\u56e0\u4e3a\u90a3\u91cc\u672c\u6765\u5c31\u662f\u2018\u0000\u2019\u3002\u4e0d\u59a8\u505a\u4e2a\u5c0f\u5b9e\u9a8c\u9a8c\u8bc1\u4e00\u4e0b\u3002<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n#include \uff1cstdio.h\uff1e<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;int a;<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\nint main(void){<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\nint i;<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\nstatic char str[10];<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\nprintf(&quot;integer: %d; string: (begin)%s(end)&quot;, a, str);<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;return 0;<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;}<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;&nbsp;&nbsp; \u7a0b\u5e8f\u7684\u8fd0\u884c\u7ed3\u679c\u5982\u4e0binteger\uff1a 0\uff1b string\uff1a \uff08begin\uff09\uff08end\uff09<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;&nbsp;&nbsp; \u6700\u540e\u5bf9static\u7684\u4e09\u6761\u4f5c\u7528\u505a\u4e00\u53e5\u8bdd\u603b\u7ed3\u3002\u9996\u5148static\u7684\u6700\u4e3b\u8981\u529f\u80fd\u662f\u9690\u85cf\uff0c\u5176\u6b21\u56e0\u4e3astatic\u53d8\u91cf\u5b58\u653e\u5728\u9759\u6001\u5b58\u50a8\u533a\uff0c\u6240\u4ee5\u5b83\u5177\u5907\u6301\u4e45\u6027\u548c\u9ed8\u8ba4&#20540;0.<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n4. \u7528static\u58f0\u660e\u7684\u51fd\u6570\u548c\u53d8\u91cf\u5c0f\u7ed3<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;&nbsp;&nbsp; static \u58f0\u660e\u7684\u53d8\u91cf\u5728C\u8bed\u8a00\u4e2d\u6709\u4e24\u65b9\u9762\u7684\u7279\u5f81\uff1a<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n1)\u3001\u53d8\u91cf\u4f1a\u88ab\u653e\u5728\u7a0b\u5e8f\u7684\u5168\u5c40\u5b58\u50a8\u533a\u4e2d\uff0c\u8fd9\u6837\u53ef\u4ee5\u5728\u4e0b\u4e00\u6b21\u8c03\u7528\u7684\u65f6\u5019\u8fd8\u53ef\u4ee5\u4fdd\u6301\u539f\u6765\u7684\u8d4b&#20540;\u3002\u8fd9\u4e00\u70b9\u662f\u5b83\u4e0e\u5806\u6808\u53d8\u91cf\u548c\u5806\u53d8\u91cf\u7684\u533a\u522b\u3002<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n2)\u3001\u53d8\u91cf\u7528static\u544a\u77e5\u7f16\u8bd1\u5668\uff0c\u81ea\u5df1\u4ec5\u4ec5\u5728\u53d8\u91cf\u7684\u4f5c\u7528\u8303\u56f4\u5185\u53ef\u89c1\u3002\u8fd9\u4e00\u70b9\u662f\u5b83\u4e0e\u5168\u5c40\u53d8\u91cf\u7684\u533a\u522b\u3002<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;Tips:<br \/>\nA.\u82e5\u5168\u5c40\u53d8\u91cf\u4ec5\u5728\u5355\u4e2aC\u6587\u4ef6\u4e2d\u8bbf\u95ee\uff0c\u5219\u53ef\u4ee5\u5c06\u8fd9\u4e2a\u53d8\u91cf\u4fee\u6539\u4e3a\u9759\u6001\u5168\u5c40\u53d8\u91cf\uff0c\u4ee5\u964d\u4f4e\u6a21\u5757\u95f4\u7684\u8026\u5408\u5ea6\uff1b<br \/>\nB.\u82e5\u5168\u5c40\u53d8\u91cf\u4ec5\u7531\u5355\u4e2a\u51fd\u6570\u8bbf\u95ee\uff0c\u5219\u53ef\u4ee5\u5c06\u8fd9\u4e2a\u53d8\u91cf\u6539\u4e3a\u8be5\u51fd\u6570\u7684\u9759\u6001\u5c40\u90e8\u53d8\u91cf\uff0c\u4ee5\u964d\u4f4e\u6a21\u5757\u95f4\u7684\u8026\u5408\u5ea6\uff1b<br \/>\nC.\u8bbe\u8ba1\u548c\u4f7f\u7528\u8bbf\u95ee\u52a8\u6001\u5168\u5c40\u53d8\u91cf\u3001\u9759\u6001\u5168\u5c40\u53d8\u91cf\u3001\u9759\u6001\u5c40\u90e8\u53d8\u91cf\u7684\u51fd\u6570\u65f6\uff0c\u9700\u8981\u8003\u8651\u91cd\u5165\u95ee\u9898\uff1b<br \/>\nD.\u5982\u679c\u6211\u4eec\u9700\u8981\u4e00\u4e2a\u53ef\u91cd\u5165\u7684\u51fd\u6570\uff0c\u90a3\u4e48\uff0c\u6211\u4eec\u4e00\u5b9a\u8981\u907f\u514d\u51fd\u6570\u4e2d\u4f7f\u7528static\u53d8\u91cf(\u8fd9\u6837\u7684\u51fd\u6570\u88ab\u79f0\u4e3a\uff1a\u5e26\u201c\u5185\u90e8\u5b58\u50a8\u5668\u201d\u529f\u80fd\u7684\u7684\u51fd\u6570)<br \/>\nE.\u51fd\u6570\u4e2d\u5fc5\u987b\u8981\u4f7f\u7528static\u53d8\u91cf\u60c5\u51b5:\u6bd4\u5982\u5f53\u67d0\u51fd\u6570\u7684\u8fd4\u56de&#20540;\u4e3a\u6307\u9488\u7c7b\u578b\u65f6\uff0c\u5219\u5fc5\u987b\u662fstatic\u7684\u5c40\u90e8\u53d8\u91cf\u7684\u5730\u5740\u4f5c\u4e3a\u8fd4\u56de&#20540;\uff0c\u82e5\u4e3aauto\u7c7b\u578b\uff0c\u5219\u8fd4\u56de\u4e3a\u9519\u6307\u9488\u3002<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;&nbsp;&nbsp; \u51fd\u6570\u524d\u52a0static\u4f7f\u5f97\u51fd\u6570\u6210\u4e3a\u9759\u6001\u51fd\u6570\u3002\u4f46\u6b64\u5904\u201cstatic\u201d\u7684\u542b\u4e49\u4e0d\u662f\u6307\u5b58\u50a8\u65b9\u5f0f\uff0c\u800c\u662f\u6307\u5bf9\u51fd\u6570\u7684\u4f5c\u7528\u57df\u4ec5\u5c40\u9650\u4e8e\u672c\u6587\u4ef6(\u6240\u4ee5\u53c8\u79f0\u5185\u90e8\u51fd\u6570)\u3002\u4f7f\u7528\u5185\u90e8\u51fd\u6570\u7684\u597d\u5904\u662f\uff1a\u4e0d\u540c\u7684\u4eba\u7f16\u5199\u4e0d\u540c\u7684\u51fd\u6570\u65f6\uff0c\u4e0d\u7528\u62c5\u5fc3\u81ea\u5df1\u5b9a\u4e49\u7684\u51fd\u6570\uff0c\u662f\u5426\u4f1a\u4e0e\u5176\u5b83\u6587\u4ef6\u4e2d\u7684\u51fd\u6570\u540c\u540d\u3002<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n<strong>\u6269\u5c55\u5206\u6790:<\/strong><\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u672f\u8bedstatic\u6709\u7740\u4e0d\u5bfb\u5e38\u7684\u5386\u53f2.\u8d77\u521d\uff0c\u5728C\u4e2d\u5f15\u5165\u5173\u952e\u5b57static\u662f\u4e3a\u4e86\u8868\u793a\u9000\u51fa\u4e00\u4e2a\u5757\u540e\u4ecd\u7136\u5b58\u5728\u7684\u5c40\u90e8\u53d8\u91cf\u3002\u968f\u540e\uff0cstatic\u5728C\u4e2d\u6709\u4e86\u7b2c\u4e8c\u79cd\u542b\u4e49\uff1a\u7528\u6765\u8868\u793a\u4e0d\u80fd\u88ab\u5176\u5b83\u6587\u4ef6\u8bbf\u95ee\u7684\u5168\u5c40\u53d8\u91cf\u548c\u51fd\u6570\u3002\u4e3a\u4e86\u907f\u514d\u5f15\u5165\u65b0\u7684\u5173\u952e\u5b57\uff0c\u6240\u4ee5\u4ecd\u4f7f\u7528static\u5173\u952e\u5b57\u6765\u8868\u793a\u8fd9\u7b2c\u4e8c\u79cd\u542b\u4e49\u3002\u6700\u540e\uff0cC&#43;&#43;\u91cd\u7528\u4e86\u8fd9\u4e2a\u5173\u952e\u5b57\uff0c\u5e76\u8d4b\u4e88\u5b83\u4e0e\u524d\u9762\u4e0d\u540c\u7684\u7b2c\u4e09\u79cd\u542b\u4e49\uff1a\u8868\u793a\u5c5e\u4e8e\u4e00\u4e2a\u7c7b\u800c\u4e0d\u662f\u5c5e\u4e8e\u6b64\u7c7b\u7684\u4efb\u4f55\u7279\u5b9a\u5bf9\u8c61\u7684\u53d8\u91cf\u548c\u51fd\u6570(\u4e0eJava\u4e2d\u6b64\u5173\u952e\u5b57\u7684\u542b\u4e49\u76f8\u540c)\u3002<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n<strong>\u5168\u5c40\u53d8\u91cf\u3001\u9759\u6001\u5168\u5c40\u53d8\u91cf\u3001\u9759\u6001\u5c40\u90e8\u53d8\u91cf\u548c\u5c40\u90e8\u53d8\u91cf\u7684\u533a\u522b<\/strong><\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n\u53d8\u91cf\u53ef\u4ee5\u5206\u4e3a\uff1a\u5168\u5c40\u53d8\u91cf\u3001\u9759\u6001\u5168\u5c40\u53d8\u91cf\u3001\u9759\u6001\u5c40\u90e8\u53d8\u91cf\u548c\u5c40\u90e8\u53d8\u91cf\u3002<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n(1) \u6309\u5b58\u50a8\u533a\u57df\u5206\uff0c\u5168\u5c40\u53d8\u91cf\u3001\u9759\u6001\u5168\u5c40\u53d8\u91cf\u548c\u9759\u6001\u5c40\u90e8\u53d8\u91cf\u90fd\u5b58\u653e\u5728\u5185\u5b58\u7684\u9759\u6001\u5b58\u50a8\u533a\u57df\uff0c\u5c40\u90e8\u53d8\u91cf\u5b58\u653e\u5728\u5185\u5b58\u7684\u6808\u533a\u3002<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n(2) \u6309\u4f5c\u7528\u57df\u5206\uff0c&nbsp; \u5168\u5c40\u53d8\u91cf\u5728\u6574\u4e2a\u5de5\u7a0b\u6587\u4ef6\u5185\u90fd\u6709\u6548\uff1b\u9759\u6001\u5168\u5c40\u53d8\u91cf\u53ea\u5728\u5b9a\u4e49\u5b83\u7684\u6587\u4ef6\u5185\u6709\u6548\uff1b\u9759\u6001\u5c40\u90e8\u53d8\u91cf\u53ea\u5728\u5b9a\u4e49\u5b83\u7684\u51fd\u6570\u5185\u6709\u6548\uff0c\u53ea\u662f\u7a0b\u5e8f\u4ec5\u5206\u914d\u4e00\u6b21\u5185\u5b58\uff0c\u51fd\u6570\u8fd4\u56de\u540e\uff0c\u8be5\u53d8\u91cf\u4e0d\u4f1a\u6d88\u5931\uff1b\u5c40\u90e8\u53d8\u91cf\u5728\u5b9a\u4e49\u5b83\u7684\u51fd\u6570\u5185\u6709\u6548\uff0c\u4f46\u662f\u51fd\u6570\u8fd4\u56de\u540e\u5931\u6548\u3002<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;&nbsp;&nbsp;&nbsp; \u5168\u5c40\u53d8\u91cf(\u5916\u90e8\u53d8\u91cf)\u7684\u8bf4\u660e\u4e4b\u524d\u518d\u51a0\u4ee5static\u5c31\u6784\u6210\u4e86\u9759\u6001\u7684\u5168\u5c40\u53d8\u91cf\u3002\u5168\u5c40\u53d8\u91cf\u672c\u8eab\u5c31\u662f\u9759\u6001\u5b58\u50a8\u65b9\u5f0f\uff0c\u9759\u6001\u5168\u5c40\u53d8\u91cf\u5f53\u7136\u4e5f\u662f\u9759\u6001\u5b58\u50a8\u65b9\u5f0f\u3002\u8fd9\u4e24\u8005\u5728\u5b58\u50a8\u65b9\u5f0f\u4e0a\u5e76\u65e0\u4e0d\u540c\u3002\u8fd9\u4e24\u8005\u7684\u533a\u522b\u867d\u5728\u4e8e\u975e\u9759\u6001\u5168\u5c40\u53d8\u91cf\u7684\u4f5c\u7528\u57df\u662f\u6574\u4e2a\u6e90\u7a0b\u5e8f\uff0c\u5f53\u4e00\u4e2a\u6e90\u7a0b\u5e8f\u7531\u591a\u4e2a\u6e90\u6587\u4ef6\u7ec4\u6210\u65f6\uff0c\u975e\u9759\u6001\u7684\u5168\u5c40\u53d8\u91cf\u5728\u5404\u4e2a\u6e90\u6587\u4ef6\u4e2d\u90fd\u662f\u6709\u6548\u7684\u3002 \u800c\u9759\u6001\u5168\u5c40\u53d8\u91cf\u5219\u9650\u5236\u4e86\u5176\u4f5c\u7528\u57df\uff0c\u5373\u53ea\u5728\u5b9a\u4e49\u8be5\u53d8\u91cf\u7684\u6e90\u6587\u4ef6\u5185\u6709\u6548\uff0c\u5728\u540c\u4e00\u6e90\u7a0b\u5e8f\u7684\u5176\u5b83\u6e90\u6587\u4ef6\u4e2d\u4e0d\u80fd\u4f7f\u7528\u5b83\u3002\u7531\u4e8e\u9759\u6001\u5168\u5c40\u53d8\u91cf\u7684\u4f5c\u7528\u57df\u5c40\u9650\u4e8e\u4e00\u4e2a\u6e90\u6587\u4ef6\u5185\uff0c\u53ea\u80fd\u4e3a\u8be5\u6e90\u6587\u4ef6\u5185\u7684\u51fd\u6570\u516c\u7528\uff0c\u56e0\u6b64\u53ef\u4ee5\u907f\u514d\u5728\u5176\u5b83\u6e90\u6587\u4ef6\u4e2d\u5f15\u8d77\u9519\u8bef\u3002<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;&nbsp;&nbsp; \u4ece\u4ee5\u4e0a\u5206\u6790\u53ef\u4ee5\u770b\u51fa\uff0c \u628a\u5c40\u90e8\u53d8\u91cf\u6539\u53d8\u4e3a\u9759\u6001\u53d8\u91cf\u540e\u662f\u6539\u53d8\u4e86\u5b83\u7684\u5b58\u50a8\u65b9\u5f0f\u5373\u6539\u53d8\u4e86\u5b83\u7684\u751f\u5b58\u671f\u3002\u628a\u5168\u5c40\u53d8\u91cf\u6539\u53d8\u4e3a\u9759\u6001\u53d8\u91cf\u540e\u662f\u6539\u53d8\u4e86\u5b83\u7684\u4f5c\u7528\u57df\uff0c \u9650\u5236\u4e86\u5b83\u7684\u4f7f\u7528\u8303\u56f4\u3002<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n(1) static \u51fd\u6570\u4e0e\u666e\u901a\u51fd\u6570\u4f5c\u7528\u57df\u4e0d\u540c\u3002\u4ec5\u5728\u672c\u6587\u4ef6\u3002\u53ea\u5728\u5f53\u524d\u6e90\u6587\u4ef6\u4e2d\u4f7f\u7528\u7684\u51fd\u6570\u5e94\u8be5\u8bf4\u660e\u4e3a\u5185\u90e8\u51fd\u6570(static)\uff0c\u5185\u90e8\u51fd\u6570\u5e94\u8be5\u5728\u5f53\u524d\u6e90\u6587\u4ef6\u4e2d\u8bf4\u660e\u548c\u5b9a\u4e49\u3002\u5bf9\u4e8e\u53ef\u5728\u5f53\u524d\u6e90\u6587\u4ef6\u4ee5\u5916\u4f7f\u7528\u7684\u51fd\u6570\uff0c\u5e94\u8be5\u5728\u4e00\u4e2a\u5934\u6587\u4ef6\u4e2d\u8bf4\u660e\uff0c\u8981\u4f7f\u7528\u8fd9\u4e9b\u51fd\u6570\u7684\u6e90\u6587\u4ef6\u8981\u5305\u542b\u8fd9\u4e2a\u5934\u6587\u4ef6<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n(2) static\u5168\u5c40\u53d8\u91cf\u4e0e\u666e\u901a\u7684\u5168\u5c40\u53d8\u91cf\u6709\u4ec0\u4e48\u533a\u522b\uff1astatic\u5168\u5c40\u53d8\u91cf\u53ea\u521d\u59cb\u5316\u4e00\u6b21\uff0c\u9632\u6b62\u5728\u5176\u4ed6\u6587\u4ef6\u5355\u5143\u4e2d\u88ab\u5f15\u7528;<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n(3) static\u5c40\u90e8\u53d8\u91cf\u548c\u666e\u901a\u5c40\u90e8\u53d8\u91cf\u6709\u4ec0\u4e48\u533a\u522b\uff1astatic\u5c40\u90e8\u53d8\u91cf\u53ea\u88ab\u521d\u59cb\u5316\u4e00\u6b21\uff0c\u4e0b\u4e00\u6b21\u4f9d\u636e\u4e0a\u4e00\u6b21\u7ed3\u679c&#20540;\uff1b<br \/>\n(4) static\u51fd\u6570\u4e0e\u666e\u901a\u51fd\u6570\u6709\u4ec0\u4e48\u533a\u522b\uff1astatic\u51fd\u6570\u5728\u5185\u5b58\u4e2d\u53ea\u6709\u4e00\u4efd\uff0c\u666e\u901a\u51fd\u6570\u5728\u6bcf\u4e2a\u88ab\u8c03\u7528\u4e2d\u7ef4\u6301\u4e00\u4efd\u62f7\u8d1d.<br \/>\n(5) \u5168\u5c40\u53d8\u91cf\u548c\u9759\u6001\u53d8\u91cf\u5982\u679c\u6ca1\u6709\u624b\u5de5\u521d\u59cb\u5316\uff0c\u5219\u7531\u7f16\u8bd1\u5668\u521d\u59cb\u5316\u4e3a0\u3002\u5c40\u90e8\u53d8\u91cf\u7684&#20540;\u4e0d\u53ef\u77e5\u3002<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n5. C&#43;&#43;\u7684static<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;&nbsp;&nbsp; C&#43;&#43;\u7684static\u6709\u4e24\u79cd\u7528\u6cd5\uff1a\u9762\u5411\u8fc7\u7a0b\u7a0b\u5e8f\u8bbe\u8ba1\u7684static\u548c\u9762\u5411\u5bf9\u8c61\u7a0b\u5e8f\u8bbe\u8ba1\u4e2d\u7684static\u3002\u524d\u8005\u5e94\u7528\u4e8e\u666e\u901a\u53d8\u91cf\u548c\u51fd\u6570\uff0c\u4e0d\u6d89\u53ca\u7c7b\uff1b\u540e\u8005\u4e3b\u8981\u8bf4\u660estatic\u5728\u7c7b\u4e2d\u7684\u4f5c\u7528\u3002<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n<strong>(1)\u3001\u9762\u5411\u8fc7\u7a0b\u8bbe\u8ba1\u4e2d\u7684static<\/strong><\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n1)\u3001\u9759\u6001\u5168\u5c40\u53d8\u91cf<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n\u5728\u5168\u5c40\u53d8\u91cf\u524d\uff0c\u52a0\u4e0a\u5173\u952e\u5b57static\uff0c\u8be5\u53d8\u91cf\u5c31\u88ab\u5b9a\u4e49\u6210\u4e3a\u4e00\u4e2a\u9759\u6001\u5168\u5c40\u53d8\u91cf\u3002\u6211\u4eec\u5148\u4e3e\u4e00\u4e2a\u9759\u6001\u5168\u5c40\u53d8\u91cf\u7684\u4f8b\u5b50\uff0c\u5982\u4e0b\uff1a&nbsp;<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n\/\/Example&nbsp;1<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n#include&nbsp;&lt;iostream.h&gt;<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\nvoid&nbsp;fn();<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\nstatic&nbsp;int&nbsp;n;&nbsp;\/\/\u5b9a\u4e49\u9759\u6001\u5168\u5c40\u53d8\u91cf<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\nvoid&nbsp;main()<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n{<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;n=20;<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;cout&lt;&lt;n&lt;&lt;endl;<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;fn();<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n}<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\nvoid&nbsp;fn()<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n{<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;n&#43;&#43;;<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;cout&lt;&lt;n&lt;&lt;endl;<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n}<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;&nbsp;&nbsp; \u9759\u6001\u5168\u5c40\u53d8\u91cf\u6709\u4ee5\u4e0b\u7279\u70b9\uff1a&nbsp;&nbsp;<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;i )&nbsp; \u8be5\u53d8\u91cf\u5728\u5168\u5c40\u6570\u636e\u533a\u5206\u914d\u5185\u5b58\uff1b<br \/>\n&nbsp; ii )&nbsp; \u672a\u7ecf\u521d\u59cb\u5316\u7684\u9759\u6001\u5168\u5c40\u53d8\u91cf\u4f1a\u88ab\u7a0b\u5e8f\u81ea\u52a8\u521d\u59cb\u5316\u4e3a0\uff08\u81ea\u52a8\u53d8\u91cf\u7684&#20540;\u662f\u968f\u673a\u7684\uff0c\u9664\u975e\u5b83\u88ab\u663e\u5f0f\u521d\u59cb\u5316\uff09\uff1b&nbsp;&nbsp;&nbsp;<br \/>\n&nbsp; iii ) \u9759\u6001\u5168\u5c40\u53d8\u91cf\u5728\u58f0\u660e\u5b83\u7684\u6574\u4e2a\u6587\u4ef6\u90fd\u662f\u53ef\u89c1\u7684\uff0c\u800c\u5728\u6587\u4ef6\u4e4b\u5916\u662f\u4e0d\u53ef\u89c1\u7684\uff1b<\/p>\n<p style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;&nbsp;&nbsp; \u9759\u6001\u53d8\u91cf\u90fd\u5728\u5168\u5c40\u6570\u636e\u533a\u5206\u914d\u5185\u5b58\uff0c\u5305\u62ec\u540e\u9762\u5c06\u8981\u63d0\u5230\u7684\u9759\u6001\u5c40\u90e8\u53d8\u91cf\u3002\u5bf9\u4e8e\u4e00\u4e2a\u5b8c\u6574\u7684\u7a0b\u5e8f\uff0c\u5728\u5185\u5b58\u4e2d\u7684\u5206\u5e03\u60c5\u51b5\u5982\u4e0b\u56fe\uff1a<\/p>\n<table border=\"1\" cellpadding=\"0\" style=\"border:1px solid rgb(192,192,192); border-collapse:collapse; font-family:verdana\">\n<tbody>\n<tr>\n<td style=\"border:1px solid rgb(192,192,192); border-collapse:collapse; padding:3px; word-break:normal!important\">\n<p align=\"left\" style=\"margin:10px auto\">\u4ee3\u7801\u533a<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid rgb(192,192,192); border-collapse:collapse; padding:3px; word-break:normal!important\">\n<p align=\"left\" style=\"margin:10px auto\">\u5168\u5c40\u6570\u636e\u533a<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid rgb(192,192,192); border-collapse:collapse; padding:3px; word-break:normal!important\">\n<p align=\"left\" style=\"margin:10px auto\">\u5806\u533a<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid rgb(192,192,192); border-collapse:collapse; padding:3px; word-break:normal!important\">\n<p align=\"left\" style=\"margin:10px auto\">\u6808\u533a<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n\u3000\u3000\u4e00\u822c\u7a0b\u5e8f\u7684\u7531new\u4ea7\u751f\u7684\u52a8\u6001\u6570\u636e\u5b58\u653e\u5728\u5806\u533a\uff0c\u51fd\u6570\u5185\u90e8\u7684\u81ea\u52a8\u53d8\u91cf\u5b58\u653e\u5728\u6808\u533a\u3002\u81ea\u52a8\u53d8\u91cf\u4e00\u822c\u4f1a\u968f\u7740\u51fd\u6570\u7684\u9000\u51fa\u800c\u91ca\u653e\u7a7a\u95f4\uff0c\u9759\u6001\u6570\u636e\uff08\u5373\u4f7f\u662f\u51fd\u6570\u5185\u90e8\u7684\u9759\u6001\u5c40\u90e8\u53d8\u91cf\uff09\u4e5f\u5b58\u653e\u5728\u5168\u5c40\u6570\u636e\u533a\u3002\u5168\u5c40\u6570\u636e\u533a\u7684\u6570\u636e\u5e76\u4e0d\u4f1a\u56e0\u4e3a\u51fd\u6570\u7684\u9000\u51fa\u800c\u91ca\u653e\u7a7a\u95f4\u3002\u7ec6\u5fc3\u7684\u8bfb\u8005\u53ef\u80fd\u4f1a\u53d1\u73b0\uff0cExample&nbsp;1\u4e2d\u7684\u4ee3\u7801\u4e2d\u5c06&nbsp;<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;static&nbsp;int&nbsp;n;&nbsp;\/\/\u5b9a\u4e49\u9759\u6001\u5168\u5c40\u53d8\u91cf<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n\u6539\u4e3a&nbsp;<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;int&nbsp;n;&nbsp;\/\/\u5b9a\u4e49\u5168\u5c40\u53d8\u91cf<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;&nbsp;&nbsp; \u7a0b\u5e8f\u7167\u6837\u6b63\u5e38\u8fd0\u884c\u3002\u7684\u786e\uff0c\u5b9a\u4e49\u5168\u5c40\u53d8\u91cf\u5c31\u53ef\u4ee5\u5b9e\u73b0\u53d8\u91cf\u5728\u6587\u4ef6\u4e2d\u7684\u5171\u4eab\uff0c\u4f46\u5b9a\u4e49\u9759\u6001\u5168\u5c40\u53d8\u91cf\u8fd8\u6709\u4ee5\u4e0b\u597d\u5904\uff1a&nbsp;<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n1) \u9759\u6001\u5168\u5c40\u53d8\u91cf\u4e0d\u80fd\u88ab\u5176\u5b83\u6587\u4ef6\u6240\u7528\uff1b&nbsp;&nbsp;<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n2) \u5176\u5b83\u6587\u4ef6\u4e2d\u53ef\u4ee5\u5b9a\u4e49\u76f8\u540c\u540d\u5b57\u7684\u53d8\u91cf\uff0c\u4e0d\u4f1a\u53d1\u751f\u51b2\u7a81\uff1b&nbsp;<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n\u60a8\u53ef\u4ee5\u5c06\u4e0a\u8ff0\u793a\u4f8b\u4ee3\u7801\u6539\u4e3a\u5982\u4e0b\uff1a<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n\/\/Example&nbsp;2<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n\/\/File1<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n#include&nbsp;&lt;iostream.h&gt;<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\nvoid&nbsp;fn();<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\nstatic&nbsp;int&nbsp;n;&nbsp;\/\/\u5b9a\u4e49\u9759\u6001\u5168\u5c40\u53d8\u91cf<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\nvoid&nbsp;main()<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n{<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;n=20;<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;cout&lt;&lt;n&lt;&lt;endl;<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;fn();<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n}<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n\/\/File2<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n#include&nbsp;&lt;iostream.h&gt;<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\nextern&nbsp;int&nbsp;n;<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\nvoid&nbsp;fn()<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n{<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;n&#43;&#43;;<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;cout&lt;&lt;n&lt;&lt;endl;<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n}<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;&nbsp;&nbsp; \u7f16\u8bd1\u5e76\u8fd0\u884cExample&nbsp;2\uff0c\u60a8\u5c31\u4f1a\u53d1\u73b0\u4e0a\u8ff0\u4ee3\u7801\u53ef\u4ee5\u5206\u522b\u901a\u8fc7\u7f16\u8bd1\uff0c\u4f46\u8fd0\u884c\u65f6\u51fa\u73b0\u9519\u8bef\u3002\u8bd5\u7740\u5c06&nbsp;&nbsp;<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\nstatic&nbsp;int&nbsp;n;&nbsp;\/\/\u5b9a\u4e49\u9759\u6001\u5168\u5c40\u53d8\u91cf<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n\u6539\u4e3a&nbsp;&nbsp;<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\nint&nbsp;n;&nbsp;\/\/\u5b9a\u4e49\u5168\u5c40\u53d8\u91cf<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;&nbsp;&nbsp; \u518d\u6b21\u7f16\u8bd1\u8fd0\u884c\u7a0b\u5e8f\uff0c\u7ec6\u5fc3\u4f53\u4f1a\u5168\u5c40\u53d8\u91cf\u548c\u9759\u6001\u5168\u5c40\u53d8\u91cf\u7684\u533a\u522b\u3002&nbsp;&nbsp;<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n<strong>(2)\u3001\u9759\u6001\u5c40\u90e8\u53d8\u91cf<\/strong><\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;&nbsp;&nbsp;&nbsp; \u5728\u5c40\u90e8\u53d8\u91cf\u524d\uff0c\u52a0\u4e0a\u5173\u952e\u5b57static\uff0c\u8be5\u53d8\u91cf\u5c31\u88ab\u5b9a\u4e49\u6210\u4e3a\u4e00\u4e2a\u9759\u6001\u5c40\u90e8\u53d8\u91cf\u3002 \u6211\u4eec\u5148\u4e3e\u4e00\u4e2a\u9759\u6001\u5c40\u90e8\u53d8\u91cf\u7684\u4f8b\u5b50\uff0c\u5982\u4e0b\uff1a&nbsp;<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n\/\/Example&nbsp;3<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n#include&nbsp;&lt;iostream.h&gt;<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\nvoid&nbsp;fn();<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\nvoid&nbsp;main()<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n{<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;fn();<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;fn();<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;fn();<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n}<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\nvoid&nbsp;fn()<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n{<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;static&nbsp;n=10;<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;cout&lt;&lt;n&lt;&lt;endl;<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n&nbsp;n&#43;&#43;;<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n}<\/p>\n<p align=\"left\" style=\"margin:10px auto; font-family:verdana; font-size:14px; line-height:22px\">\n\u3000\u3000\u901a\u5e38\uff0c\u5728\u51fd\u6570\u4f53\u5185\u5b9a\u4e49\u4e86\u4e00\u4e2a\u53d8\u91cf\uff0c\u6bcf\u5f53\u7a0b\u5e8f\u8fd0\u884c\u5230\u8be5\u8bed\u53e5\u65f6\u90fd\u4f1a\u7ed9\u8be5\u5c40\u90e8\u53d8\u91cf\u5206\u914d\u6808\u5185\u5b58\u3002\u4f46\u968f\u7740\u7a0b\u5e8f\u9000\u51fa\u51fd\u6570\u4f53\uff0c\u7cfb\u7edf\u5c31\u4f1a\u6536\u56de\u6808\u5185\u5b58\uff0c\u5c40\u90e8\u53d8\u91cf\u4e5f\u76f8\u5e94\u5931\u6548\u3002\u4f46\u662f\u6709\u65f6\u5019\u6211\u4eec\u9700\u8981\u5728\u4e24\u6b21\u8c03\u7528\u4e4b\u95f4\u5bf9\u53d8\u91cf\u7684&#20540;\u8fdb\u884c\u4fdd\u5b58\u3002\u901a\u5e38\u7684\u60f3\u6cd5\u662f\u5b9a\u4e49\u4e00\u4e2a\u5168\u5c40\u53d8\u91cf\u6765\u5b9e\u73b0\u3002\u4f46\u8fd9\u6837\u4e00\u6765\uff0c\u53d8\u91cf\u5df2\u7ecf\u4e0d\u518d\u5c5e\u4e8e\u51fd\u6570\u672c\u8eab\u4e86\uff0c\u4e0d\u518d\u4ec5\u53d7\u51fd\u6570\u7684\u63a7\u5236\uff0c\u7ed9\u7a0b\u5e8f\u7684\u7ef4\u62a4\u5e26\u6765\u4e0d\u4fbf\u3002\u3000\u3000\u9759\u6001\u5c40\u90e8\u53d8\u91cf\u6b63\u597d\u53ef\u4ee5\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002\u9759\u6001\u5c40\u90e8\u53d8\u91cf\u4fdd\u5b58\u5728\u5168\u5c40\u6570\u636e\u533a\uff0c\u800c\u4e0d\u662f\u4fdd\u5b58\u5728\u6808\u4e2d\uff0c\u6bcf\u6b21\u7684&#20540;\u4fdd\u6301\u5230\u4e0b<\/p>\n<p style=\"text-indent:0px; margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px\">\n<span style=\"text-indent:30px; line-height:24px\"><br \/>\n<\/span><\/p>\n<p style=\"text-indent:0px; margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px\">\n<span style=\"text-indent:30px; line-height:24px\"><br \/>\n<\/span><\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u9759\u6001\u53d8\u91cf\u4f5c\u7528\u8303\u56f4\u5728\u4e00\u4e2a\u6587\u4ef6\u5185\uff0c\u7a0b\u5e8f\u5f00\u59cb\u65f6\u5206\u914d\u7a7a\u95f4\uff0c\u7ed3\u675f\u65f6\u91ca\u653e\u7a7a\u95f4\uff0c\u9ed8\u8ba4\u521d\u59cb\u5316\u4e3a0\uff0c\u4f7f\u7528\u65f6\u53ef\u4ee5\u6539\u53d8\u5176&#038;#2054 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","footnotes":""},"categories":[3],"tags":[29],"class_list":["post-306","post","type-post","status-publish","format-standard","hentry","category-defaultcategory","tag-c"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Static - nike0good<\/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:\/\/nike0good.com\/?p=306\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Static - nike0good\" \/>\n<meta property=\"og:description\" content=\"\u9759\u6001\u53d8\u91cf\u4f5c\u7528\u8303\u56f4\u5728\u4e00\u4e2a\u6587\u4ef6\u5185\uff0c\u7a0b\u5e8f\u5f00\u59cb\u65f6\u5206\u914d\u7a7a\u95f4\uff0c\u7ed3\u675f\u65f6\u91ca\u653e\u7a7a\u95f4\uff0c\u9ed8\u8ba4\u521d\u59cb\u5316\u4e3a0\uff0c\u4f7f\u7528\u65f6\u53ef\u4ee5\u6539\u53d8\u5176&amp;#2054 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/nike0good.com\/?p=306\" \/>\n<meta property=\"og:site_name\" content=\"nike0good\" \/>\n<meta property=\"article:published_time\" content=\"2013-01-19T06:25:00+00:00\" \/>\n<meta name=\"author\" content=\"nike0good\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"nike0good\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=306#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=306\"},\"author\":{\"name\":\"nike0good\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/#\\\/schema\\\/person\\\/4defa38da89de87e400861e73396baad\"},\"headline\":\"Static\",\"datePublished\":\"2013-01-19T06:25:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=306\"},\"wordCount\":517,\"commentCount\":0,\"keywords\":[\"C++\"],\"articleSection\":[\"DefaultCategory\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/nike0good.com\\\/?p=306#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=306\",\"url\":\"https:\\\/\\\/nike0good.com\\\/?p=306\",\"name\":\"Static - nike0good\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/#website\"},\"datePublished\":\"2013-01-19T06:25:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/#\\\/schema\\\/person\\\/4defa38da89de87e400861e73396baad\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=306#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/nike0good.com\\\/?p=306\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=306#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/nike0good.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Static\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/#website\",\"url\":\"https:\\\/\\\/nike0good.com\\\/\",\"name\":\"nike0good\",\"description\":\"\u6709\u6240\u4f5c\u4e3a\u662f\u4eba\u751f\u7684\u6700\u9ad8\u5883\u754c\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/nike0good.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/#\\\/schema\\\/person\\\/4defa38da89de87e400861e73396baad\",\"name\":\"nike0good\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8e5fa08d5c367a1a6fb5ff13bb10ed5a331f981513256951290ae42322da6854?s=96&d=identicon&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8e5fa08d5c367a1a6fb5ff13bb10ed5a331f981513256951290ae42322da6854?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8e5fa08d5c367a1a6fb5ff13bb10ed5a331f981513256951290ae42322da6854?s=96&d=identicon&r=g\",\"caption\":\"nike0good\"},\"sameAs\":[\"https:\\\/\\\/nike0good.com\"],\"url\":\"https:\\\/\\\/nike0good.com\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Static - nike0good","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:\/\/nike0good.com\/?p=306","og_locale":"zh_CN","og_type":"article","og_title":"Static - nike0good","og_description":"\u9759\u6001\u53d8\u91cf\u4f5c\u7528\u8303\u56f4\u5728\u4e00\u4e2a\u6587\u4ef6\u5185\uff0c\u7a0b\u5e8f\u5f00\u59cb\u65f6\u5206\u914d\u7a7a\u95f4\uff0c\u7ed3\u675f\u65f6\u91ca\u653e\u7a7a\u95f4\uff0c\u9ed8\u8ba4\u521d\u59cb\u5316\u4e3a0\uff0c\u4f7f\u7528\u65f6\u53ef\u4ee5\u6539\u53d8\u5176&#2054 [&hellip;]","og_url":"https:\/\/nike0good.com\/?p=306","og_site_name":"nike0good","article_published_time":"2013-01-19T06:25:00+00:00","author":"nike0good","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"nike0good","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/nike0good.com\/?p=306#article","isPartOf":{"@id":"https:\/\/nike0good.com\/?p=306"},"author":{"name":"nike0good","@id":"https:\/\/nike0good.com\/#\/schema\/person\/4defa38da89de87e400861e73396baad"},"headline":"Static","datePublished":"2013-01-19T06:25:00+00:00","mainEntityOfPage":{"@id":"https:\/\/nike0good.com\/?p=306"},"wordCount":517,"commentCount":0,"keywords":["C++"],"articleSection":["DefaultCategory"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/nike0good.com\/?p=306#respond"]}]},{"@type":"WebPage","@id":"https:\/\/nike0good.com\/?p=306","url":"https:\/\/nike0good.com\/?p=306","name":"Static - nike0good","isPartOf":{"@id":"https:\/\/nike0good.com\/#website"},"datePublished":"2013-01-19T06:25:00+00:00","author":{"@id":"https:\/\/nike0good.com\/#\/schema\/person\/4defa38da89de87e400861e73396baad"},"breadcrumb":{"@id":"https:\/\/nike0good.com\/?p=306#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/nike0good.com\/?p=306"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/nike0good.com\/?p=306#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/nike0good.com\/"},{"@type":"ListItem","position":2,"name":"Static"}]},{"@type":"WebSite","@id":"https:\/\/nike0good.com\/#website","url":"https:\/\/nike0good.com\/","name":"nike0good","description":"\u6709\u6240\u4f5c\u4e3a\u662f\u4eba\u751f\u7684\u6700\u9ad8\u5883\u754c","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/nike0good.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/nike0good.com\/#\/schema\/person\/4defa38da89de87e400861e73396baad","name":"nike0good","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/secure.gravatar.com\/avatar\/8e5fa08d5c367a1a6fb5ff13bb10ed5a331f981513256951290ae42322da6854?s=96&d=identicon&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/8e5fa08d5c367a1a6fb5ff13bb10ed5a331f981513256951290ae42322da6854?s=96&d=identicon&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8e5fa08d5c367a1a6fb5ff13bb10ed5a331f981513256951290ae42322da6854?s=96&d=identicon&r=g","caption":"nike0good"},"sameAs":["https:\/\/nike0good.com"],"url":"https:\/\/nike0good.com\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/nike0good.com\/index.php?rest_route=\/wp\/v2\/posts\/306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nike0good.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nike0good.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nike0good.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nike0good.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=306"}],"version-history":[{"count":0,"href":"https:\/\/nike0good.com\/index.php?rest_route=\/wp\/v2\/posts\/306\/revisions"}],"wp:attachment":[{"href":"https:\/\/nike0good.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nike0good.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nike0good.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}