{"id":317,"date":"2006-09-08T17:20:07","date_gmt":"2006-09-08T09:20:07","guid":{"rendered":"https:\/\/t.n-years.com\/?p=317"},"modified":"2021-01-06T19:36:41","modified_gmt":"2021-01-06T11:36:41","slug":"%e8%81%8c%e4%b8%9ac%e8%af%ad%e6%b3%95%e3%80%81%e8%af%ad%e4%b9%89%e5%ad%a6%e4%b9%a0%e5%bf%83%e5%be%97%ef%bc%88%e4%b8%80%ef%bc%89%ef%bc%8dthinkinginc","status":"publish","type":"post","link":"https:\/\/t.n-years.com\/?p=317","title":{"rendered":"[\u804c\u4e1a]c++\u8bed\u6cd5\u3001\u8bed\u4e49\u5b66\u4e60\u5fc3\u5f97\uff08\u4e00\uff09\uff0dthinking in c++"},"content":{"rendered":"<p><P style=\"MARGIN: 0cm 0cm 0pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\">c++<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8bed\u6cd5\u3001\u8bed\u4e49\u5b66\u4e60\u5fc3\u5f97\uff08\u4e00\uff09\uff0d<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">thinking&nbsp;in&nbsp;c++<BR><BR>&nbsp;&nbsp;c<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8bed\u8a00\u662f\u9762\u5411\u8fc7\u7a0b\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u800c<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">c++<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u662f\u9762\u5411\u5bf9\u8c61\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u540e\u8005\u5b8c\u5168\u517c\u5bb9\u524d\u8005\u3002\u5bf9\u4e8e\u521d\u5b66\u8005\u6765\u8bf4\uff0c\u5bf9\u4e8e\u4e60\u60ef\u4f7f\u7528<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">c<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u7f16\u5199\u7a0b\u5e8f\u7684\u4eba\u6765\u8bf4\uff0c\u4f3c\u4e4e\u5bdf\u89c9\u4e0d\u5230\u4e0e<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">c++<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u7684\u533a\u522b\uff0c\u5199\u5f97\u597d\u7684<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">c<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u7a0b\u5e8f\u4e5f\u53ef\u80fd\u4e0e<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">c++<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5ab2\u7f8e\uff0c\u4f46\u662f\u65e0\u8bba\u662f\u5728\u4e60\u60ef\u4e0a\u8fd8\u662f\u5728\u601d\u7ef4\u4e0a\u90fd\u81ea\u89c9\u4e0d\u81ea\u89c9\u5730\u505c\u7559\u5728\u521d\u7ea7<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">c<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8bed\u8a00\u7684\u6c34\u5e73\uff0c\u5982\u4f55\u4ece\u6839\u672c\u4e0a\uff0c\u5185\u5fc3\u6df1\u5904\u610f\u8bc6\u5230\u81ea\u5df1\u662f\u5728\u7528<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">c++<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff0c\u81ea\u5df1\u7684\u601d\u60f3\u662f<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">c++<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u7684\uff0c\u90a3\u4e48<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">thinking&nbsp;in&nbsp;c++<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5c31\u662f\u8fd9\u6837\u4e00\u672c\u6700\u597d\u7684\u5723\u7ecf\u3002<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">&nbsp;&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5176\u5b9e\u5b66\u4e60\u4efb\u4f55\u8bed\u8a00\u6216\u8005\u65b0\u7684\u6280\u672f\u90fd\u6709\u7740\u4e00\u5957\u65b9\u6cd5\u5b66\u5728\u91cc\u9762\uff0c\u6309\u7167\u9ad8\u4e2d\u751f\u590d\u4e60\u5907\u8003\u7684\u89c4\u5f8b\u4e00\u6837\uff0c\u5236\u5b9a\u8ba1\u5212\uff0c\u638c\u63e1\u65b9\u6cd5\uff0c\u65e5\u79ef\u6708\u7d2f\u3002\u6240\u4ee5\u5b83\u9996\u5148\u544a\u8bc9\u6211\u4eec\u4ec0\u4e48\u662f<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">oop<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff0c\u5982\u4f55\u5c06\u8fc7\u7a0b\u7f16\u7a0b\u8f6c\u6362\u5230<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">oop<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6a21\u578b\u4e2d\uff0c\u800c\u6211\u4eec\u5728\u8fd9\u79cd\u8f6c\u53d8\u8fc7\u7a0b\u5f53\u4e2d\u5e94\u5f53\u5177\u6709\u4ec0\u4e48\u6001\u5ea6\uff0c\u91c7\u7528\u4ec0\u4e48\u6837\u7684\u65b9\u6cd5\u5b66\u6765\u6307\u5bfc\u6211\u4eec\uff0c\u4fc3\u8fdb\u6211\u4eec\uff0c\u9010\u6b65\u6539\u8fdb\u601d\u60f3\u548c\u65b9\u6cd5\u3002\u800c\u6211\u5c06\u9488\u5bf9<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">c<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4e0e<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">c++<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u7684\u4e0d\u540c\u4ee5\u53ca<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">c++<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6240\u7279\u6709\u7684\u4e1c\u897f\u8c08\u8c08\u6211\u7684\u5fc3\u5f97\u4f53\u4f1a\uff01<\/SPAN><SPAN lang=EN-US><BR><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff08<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">1<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff09<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">c<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u7684<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">struct<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4e0e<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">c++<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u7684<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">class<BR>&nbsp;&nbsp;&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6211\u4eec\u5728<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">c<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4e2d\u4f7f\u7528\u6700\u591a\u7684\u5c31\u662f<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">struct<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff0c\u5728<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">struct<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4e2d\u6709\u6570\u636e\u6210\u5458\uff0c\u5f53\u7136\u4e5f\u53ef\u4ee5\u6709\u5176\u4ed6\u7ed3\u6784\u4f53\u7684\u5b58\u5728\uff0c\u4e5f\u53ef\u4ee5\u7528\u4f5c\u94fe\u8868\u3002\u5728<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">c++<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">struct<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6539\u9020\uff0c\u4f7f\u4e4b\u5177\u6709\u51fd\u6570\u6210\u5458\uff0c\u7528\u6765\u521d\u59cb\u5316\u6570\u636e\u6210\u5458\uff0c\u90a3\u4e48\u8fd9\u5c31\u662f<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">class<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u7684\u96cf\u5f62\uff0c\u5f15\u5bfc\u7740\u6211\u4eec\u8d70\u5411<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">oop<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u3002<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">&nbsp;&nbsp;&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u7136\u800c\u5728<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">c<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4e2d<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">struct<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4e00\u822c\u4f5c\u4e3a\u5168\u5c40\u53d8\u91cf\uff0c\u5230<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">c++<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4e2d\u4e5f\u662f\u5982\u6b64\uff0c\u4f46\u662f\u5982\u4f55\u8bbf\u95ee\u7f16\u8bd1\u5355\u5143\uff08\u67d0\u4e00\u4e2a<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">cpp<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6587\u4ef6\uff09\u4e2d\u7684\u79c1\u6709\u53d8\u91cf\u5462\uff1f\u8fd9\u5c06\u65e0\u6cd5\u63a7\u5236\uff0c\u6240\u4ee5<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">struct<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5728<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">c++<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4e2d\u7684\u4f7f\u7528\u53d7\u5230\u9650\u5236<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">&nbsp;&nbsp;&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u53e6\u5916\u5728<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">c++<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4e2d<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">struct<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4e2d\u7684\u6570\u636e\u6210\u5458\u9ed8\u8ba4\u90fd\u662f\u516c\u5171\u53d8\u91cf\uff0c\u800c\u5177\u6709\u5c01\u88c5\u7279\u6027\u7684<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">class<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4e2d\u7684\u6570\u636e\u6210\u5458\u9ed8\u8ba4\u90fd\u662f\u79c1\u6709\u53d8\u91cf\uff0c\u56e0\u6b64\u6211\u4eec\u5728\u4f7f\u7528\u7684\u65f6\u5019\u9700\u8981\u6ce8\u660e\u3001\u58f0\u660e\u8fd9\u70b9\u3002<\/SPAN><SPAN lang=EN-US><BR><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff08<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">2<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff09<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">c++<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u7684\u6784\u9020\u51fd\u6570\u4e0e\u6790\u6784\u51fd\u6570\u7684\u4f7f\u7528\u987a\u5e8f<\/SPAN><SPAN lang=EN-US><BR><v:shapetype coordsize=\"21600,21600\" o:spt=\"75\" o:preferrelative=\"t\" path=\"m@4@5l@4@11@9@11@9@5xe\" filled=\"f\" stroked=\"f\"><v:stroke joinstyle=\"miter\"><\/v:stroke><v:formulas><v:f eqn=\"if lineDrawn pixelLineWidth 0\"><\/v:f><v:f eqn=\"sum @0 1 0\"><\/v:f><v:f eqn=\"sum 0 0 @1\"><\/v:f><v:f eqn=\"prod @2 1 2\"><\/v:f><v:f eqn=\"prod @3 21600 pixelWidth\"><\/v:f><v:f eqn=\"prod @3 21600 pixelHeight\"><\/v:f><v:f eqn=\"sum @0 0 1\"><\/v:f><v:f eqn=\"prod @6 1 2\"><\/v:f><v:f eqn=\"prod @7 21600 pixelWidth\"><\/v:f><v:f eqn=\"sum @8 21600 0\"><\/v:f><v:f eqn=\"prod @7 21600 pixelHeight\"><\/v:f><v:f eqn=\"sum @10 21600 0\"><\/v:f><\/v:formulas><v:path o:extrusionok=\"f\" gradientshapeok=\"t\" o:connecttype=\"rect\"><\/v:path><o:lock v:ext=\"edit\" aspectratio=\"t\"><\/o:lock><\/v:shapetype><v:shape style=\"WIDTH: 14.25pt; HEIGHT: 14.25pt; mso-wrap-distance-left: 1.5pt; mso-wrap-distance-top: 1.5pt; mso-wrap-distance-right: 1.5pt; mso-wrap-distance-bottom: 1.5pt\" alt=\"\" type=\"#_x0000_t75\"><v:imagedata src=\"file:\/\/\/C:DOCUME~1GOLDEN~1LOCALS~1Tempmsohtml101clip_image001.gif\" o:href=\"http:\/\/www.blogcn.com\/images\/em\/2\/2.gif\"><\/v:imagedata><\/v:shape><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u65e2\u7136\u6211\u4eec\u5df2\u7ecf\u77e5\u9053<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">class<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u662f\u5bf9\u8c61\u7684\u6a21\u677f\uff0c\u5c5e\u4e8e\u540c\u4e00\u4e2a\u7c7b\u7684\u4e0d\u540c\u5bf9\u8c61\u5177\u6709\u76f8\u540c\u7684\u5c5e\u6027\uff0c\u4f46\u662f\u53ef\u4ee5\u6709\u4e0d\u540c\u4e8e\u5176\u4ed6\u4e2a\u4f53\u7684\u5c5e\u6027\u503c\u3002\u90a3\u4e48\u6211\u4eec\u5728\u58f0\u660e\u4e00\u4e2a\u5bf9\u8c61\u65f6\uff0c\u8ba9\u5176\u5177\u6709\u4e0d\u540c\u7684\u5c5e\u6027\u503c\uff1a\u521d\u59cb\u5316\u4e9b\u6570\u636e\u6210\u5458\uff1b\u800c\u5f53\u6211\u4eec\u7ed3\u675f\u4f7f\u7528\u5bf9\u8c61\u7684\u65f6\u5019\u6ce8\u9500\u8be5\u5bf9\u8c61\uff1a\u6e05\u9664\u5176\u4e2d\u4e00\u4e9b\u6570\u636e\u6210\u5458\u6240\u5360\u636e\u7684\u5185\u5b58\u3002<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">&nbsp;&nbsp;&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u901a\u5e38\u6211\u4eec\u4f1a\u5206\u522b\u4f7f\u7528\u6784\u9020\u51fd\u6570\u548c\u6790\u6784\u51fd\u6570\u6765\u5b8c\u6210\u4e0a\u9762\u529f\u80fd\u3002\u90a3\u4e48\u7f16\u8bd1\u5668\u662f\u5982\u4f55\u8bc6\u522b\u6784\u9020\u51fd\u6570\u548c\u6790\u6784\u51fd\u6570\u7684\u5462\uff1f\u6211\u4eec\u4e0d\u5f97\u4e0d\u8bbe\u8ba1\u6784\u9020\u51fd\u6570\u548c\u6790\u6784\u51fd\u6570\u7684\u540d\u79f0\u4e0e\u7c7b\u540d\u76f8\u540c\u3002\u4f46\u662f\u5047\u5982\u6211\u4eec\u5e0c\u671b\u4f7f\u7528\u4e0d\u540c\u7684\u65b9\u6cd5\u6765\u540c\u65f6\u8fbe\u5230\u521d\u59cb\u5316\u6210\u5458\u53d8\u91cf\u5462\uff1f\u6211\u4eec\u4e5f\u5c31\u4e0d\u5f97\u4e0d\u8bbe\u8ba1\u6784\u9020\u51fd\u6570\u7684\u91cd\u8f7d\uff08\u540e\u9762\u8c08\u5230\uff09\u3002<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">&nbsp;&nbsp;&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u7531\u4e8e\u5bf9\u8c61\u4e0e\u5bf9\u8c61\u4e4b\u95f4\u53ef\u80fd\u5b58\u5728\u4e00\u5b9a\u4f9d\u8d56\u6027\uff0c\u52a0\u5165\u5bf9\u8c61<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">A<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u662f\u5bf9\u8c61<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">B<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u7684\u4e00\u4e2a\u7ec4\u6210\u90e8\u5206\uff0c\u90a3\u4e48\u6211\u4eec\u5728\u521d\u59cb\u5316<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">B<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u7684\u65f6\u5019\uff0c\u5fc5\u987b\u9996\u5148\u521d\u59cb\u5316<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">A<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff0c\u6211\u4eec\u5728\u6e05\u9664\u5b8c<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">B<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6240\u5360\u636e\u5185\u5b58\u4e4b\u540e\u624d\u80fd\u6e05\u9664<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">A<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6240\u5360\u636e\u5185\u5b58\uff0c\u56e0\u6b64\u8fd9\u4e5f\u5c31\u544a\u8bc9\u6211\u4eec\u6790\u6784\u51fd\u6570\u4e0e\u6784\u9020\u51fd\u6570\u7684\u6267\u884c\u987a\u5e8f\u662f\u76f8\u53cd\u7684\u3002\u5c24\u5176\u662f\u5b58\u5728\u5bf9\u8c61\u7684\u7ec4\u5408\u7684\u65f6\u5019\uff0c\u7279\u5f81\u5c24\u5176\u660e\u663e\u3002<\/SPAN><SPAN lang=EN-US><BR><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff08<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">3<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff09\u6784\u9020\u51fd\u6570\u7684\u91cd\u8f7d\u4e0e\u7f3a\u7701\u53c2\u6570\u7684\u4f7f\u7528<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">&nbsp;&nbsp;&nbsp;&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4e3a\u4e86\u7c7b\u6210\u5458\u53d8\u91cf\u7684\u521d\u59cb\u5316\u7684\u591a\u6837\u6027\uff0c\u6211\u4eec\u8003\u8651\u6784\u9020\u51fd\u6570\u91cd\u8f7d\uff0c\u4f46\u662f\u7f16\u8bd1\u5668\u662f\u5982\u4f55\u533a\u5206\u6784\u9020\u51fd\u6570\u7684\u5462\uff1f\u5927\u5bb6\u77e5\u9053\u6784\u9020\u51fd\u6570\u6ca1\u6709\u8fd4\u56de\u503c\uff0c\u6211\u4eec\u53ea\u80fd\u4ece\u51fd\u6570\u7684\u53c2\u6570\u591a\u5c11\u4ee5\u53ca\u53c2\u6570\u7684\u7c7b\u578b\u6765\u533a\u5206\u4e86\uff08\u63a8\u5e7f\u51fa\u53bb\u5c31\u662f\u4e0d\u540c\u901a\u8fc7\u8fd4\u56de\u503c\u6765\u533a\u5206\u91cd\u8f7d\u51fd\u6570\uff09\uff0c\u8fd9\u5b9e\u8d28\u4e0a\u662f\u7f16\u8bd1\u7a0b\u5e8f\u5728\u7f16\u8bd1\u65f6\u7f16\u8bd1\u6210\u7c7b\u4f3c\u4e8e<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">_f_int_int<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u7684\u5185\u90e8\u8fde\u63a5\u6807\u8bc6\uff0c\uff08\u4e0e<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">c<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4e0d\u540c\uff0c\u4ee5\u540e\u5c06\u4f1a\u63d0\u5230\u7f16\u8bd1\u95ee\u9898\uff09\u3002<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">&nbsp;&nbsp;&nbsp;&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4f46\u662f\u5f80\u5f80\u5176\u4e2d\u4e00\u4e2a\u6784\u9020\u51fd\u6570\u53ea\u662f\u53e6\u5916\u4e00\u4e2a\u6784\u9020\u51fd\u6570\u7684\u4e00\u4e2a\u7279\u4f8b\uff0c\u56e0\u6b64<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">c++<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u63d0\u4f9b\u7f3a\u7701\u53c2\u6570\u6765\u5b9e\u73b0\u4e0d\u540c\u6784\u9020\u51fd\u6570\u7684\u7edf\u4e00\u8c03\u7528\uff0c\u5373\u5728\u67d0\u6784\u9020\u51fd\u6570\u53c2\u6570\u8868\u4e2d\u52a0\u5165\u7f3a\u7701\u53c2\u6570\uff0c\u5373\u4f7f\u7528\u6237\u6ca1\u6709\u8f93\u5165\u8be5\u53c2\u6570\uff0c\u4e5f\u4f1a\u81ea\u52a8\u52a0\u8f7d\u4e00\u4e2a\u9ed8\u8ba4\u7684\u53c2\u6570\u503c\uff0c\u63a9\u9970\u4e86\u6784\u9020\u51fd\u6570\u7684\u5dee\u5f02\u3002\u7531\u4e8e\u7f16\u8bd1\u5668\u5728\u52a0\u8f7d\u51fd\u6570\u65f6\uff0c\u4ece\u53f3\u5f80\u5de6\u538b\u5165\u53c2\u6570\u8868\uff0c\u56e0\u6b64\u7f3a\u7701\u53c2\u6570\u4e00\u822c\u653e\u5728\u53c2\u6570\u5217\u8868\u53f3\u8fb9\uff08\u5373\u62ec\u53f7\u53f3\u8fb9\uff0c\u800c\u4e0d\u80fd\u5b58\u5728\u95f4\u9694\u751a\u81f3\u7f6e\u4e8e\u5de6\u8fb9\uff09\uff0c\uff08\u63a8\u5e7f\u5f00\u53bb\uff0c\u6240\u6709\u7684\u51fd\u6570\u5728\u4f7f\u7528\u7f3a\u7701\u53c2\u6570\u65f6\u5747\u8981\u6ce8\u610f\u8fd9\u4e00\u70b9\uff1a\u4f4d\u7f6e\uff09\u3002<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">&nbsp;&nbsp;&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u53e6\u5916\u5728\u6784\u9020\u51fd\u6570\u4e4b\u524d\u5f80\u5f80\u8981\u9996\u5148\u521d\u59cb\u5316\u5e38\u91cf\u6210\u5458\u53d8\u91cf\uff0c\u4ed6\u4eec\u7684\u521d\u59cb\u5316\u4e0e\u4e0a\u9762\u4e0d\u4e00\u6837\uff0c\u89c1\u540e\u6587\u3002<\/SPAN><SPAN lang=EN-US><BR><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff08<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">4<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff09\u5185\u8054\u51fd\u6570<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">&nbsp;&nbsp;&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4e3a\u4e86\u52a0\u5feb\u7a0b\u5e8f\u6267\u884c\u901f\u5ea6\uff0c\u5728\u7f16\u8bd1\u65f6\uff0c<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">c++<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u7f16\u8bd1\u7a0b\u5e8f\u5f80\u5f80\u5c3d\u53ef\u80fd\u5c06\u51fd\u6570\u539f\u578b\uff0c\u53c2\u6570\uff0c<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8fd4\u56de\u503c\uff0c<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4ee5\u53ca\u51fd\u6570\u4f53\u5747\u653e\u5165\u7b26\u53f7\u8868\u4e2d\uff0c\u800c\u4e0d\u662f\u6808\u4e2d\uff0c\u65b9\u4fbf\u67e5\u627e\u548c\u8fde\u63a5\u901f\u5ea6\u3002\u90a3\u4e48\u5185\u8054\u51fd\u6570\u5c31\u662f\u5176\u4e2d\u4e00\u79cd\u8bbe\u8ba1\uff0c\u662f\u7528\u6765\u53d6\u4ee3<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">c<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8bed\u8a00\u4e2d\u5e26\u53c2\u6570\u3001\u8868\u8fbe\u5f0f\u7684\u5b8f\u6307\u4ee4<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">define<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u7684\uff08\u56e0\u4e3a<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">c<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8bed\u8a00\u4e2d\u4f7f\u7528<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">define<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6307\u4ee4\u53ef\u80fd\u5e26\u6765\u4e00\u4e9b\u4e8c\u4e49\u6027\u5e76\u4e14\u4e0d\u80fd\u8bbf\u95ee\u79c1\u6709\u6210\u5458\uff09\u3002\u4f7f\u7528\u5185\u8054\u51fd\u6570\u5b9e\u8d28\u5c31\u662f\u5728\u6bcf\u6b21\u5305\u542b\u5185\u8054\u51fd\u6570\u7684\u5730\u65b9\u90fd\u91c7\u7528\u4ee3\u7801\u66ff\u6362\u7684\u65b9\u6cd5\uff0c\u5373\u5b8f\u6307\u4ee4\u66ff\u6362\u7684\u65b9\u6cd5\u3002<\/SPAN><SPAN lang=EN-US><BR><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5185\u8054\u51fd\u6570\u5e38\u4f7f\u7528<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">incline<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8fdb\u884c\u663e\u793a\u8bf4\u660e\uff0c\u56e0\u6b64\u6709\u4e24\u79cd\u65b9\u6cd5\u58f0\u660e\u548c\u5b9e\u73b0\u5185\u8054\u51fd\u6570\u3002<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">&lt;1&gt;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5728\u7c7b\u4e2d\uff0c\u76f4\u63a5\u5728\u58f0\u660e\u7684\u540c\u65f6\u5b9e\u73b0\u51fd\u6570\uff0c<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8868\u793a\u9690\u5f0f\u5b9e\u73b0\u5185\u8054\u51fd\u6570<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">&lt;2&gt;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6b63\u5e38\u58f0\u660e\uff0c\u800c\u5b9e\u73b0\u65f6\u52a0\u5165<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">incline<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8bf4\u660e\uff0c\u8868\u793a\u663e\u793a\u5b9e\u73b0\u5185\u8054\u51fd\u6570<\/SPAN><SPAN lang=EN-US><BR><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5185\u8054\u51fd\u6570\u7684\u76ee\u7684\u5c31\u662f\u4e3a\u4e86\u63d0\u9ad8\u7f16\u8bd1\u901f\u5ea6\uff0c\u6240\u4ee5\u4e0d\u80fd\u5728\u5185\u8054\u51fd\u6570\u4f53\u5185\u4f7f\u7528\u5faa\u73af\u3001<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">switch<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u7ed3\u6784\u7b49\u590d\u6742\u7684\u8bed\u53e5\uff0c\u540c\u65f6\u4e5f\u5fcc\u8bb3\u4f7f\u7528\u89c4\u6a21\u8f83\u5927\u7684\u51fd\u6570\u4f53\uff08\u9632\u6b62\u4ee3\u7801\u7684\u81a8\u80c0\u548c\u81c3\u80bf\uff09\u3002<\/SPAN><SPAN lang=EN-US><BR><BR><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff08<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">5<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff09\u5e38\u91cf\u9650\u5b9a\u7b26\u53f7<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">const<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u53ca\u5176\u4f7f\u7528<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">&nbsp;&nbsp;&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u540c\u6837\uff0c\u4e3a\u4e86\u6539\u8fdb<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">c<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8bed\u8a00\u4e2d<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">define<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6765\u5b9a\u4e49\u5e38\u91cf\u7684\u65b9\u6cd5\uff0c\u4f7f\u7528<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">const<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u9650\u5b9a\u7b26\u53f7\uff0c\u7981\u6b62\u6240\u4fee\u9970\u7684\u53d8\u91cf\u5728\u7a0b\u5e8f\u6267\u884c\u671f\u95f4\u88ab\u4fee\u6539\u3002\u56e0\u6b64\u5173\u952e\u5b57<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">const<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u80fd\u5c06\u5bf9\u8c61\u3001\u51fd\u6570\u53c2\u6570\u3001\u8fd4\u56de\u503c\u53ca\u6210\u5458\u51fd\u6570\u5b9a\u4e49\u4e3a\u5e38\u91cf\uff0c\u5e76\u80fd\u6d88\u9664\u9884\u5904\u7406\u5668\u7684\u503c\u66ff\u4ee3\u800c\u4e0d\u5bf9\u9884\u5904\u7406\u5668\u6709\u4efb\u4f55\u5f71\u54cd\u3002<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">&nbsp;&nbsp;&nbsp;c++<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4e2d<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">const<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u9ed8\u8ba4\u4e3a\u4e00\u4e2a\u5185\u90e8\u8fde\u63a5\uff0c\u5728\u5916\u90e8\u7f16\u8bd1\u5355\u5143\u662f\u4e0d\u53ef\u89c1\u7684\uff0c\u6709\u70b9\u7c7b\u4f3c\u4e0e<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">static<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u53d8\u91cf\uff08\u540e\u9762\u63d0\u5230\uff09\uff1b<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">&nbsp;&nbsp;&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u53e6\u5916<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">c++<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u7f16\u8bd1\u5668\u4e00\u822c\u4e5f\u5e76\u4e0d\u4e3a<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">const<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5206\u914d\u5b58\u50a8\u7a7a\u95f4\uff0c\u800c\u662f\u5c06\u5176\u653e\u5165\u7b26\u53f7\u8868\u4e2d\uff0c\u4ee5\u52a0\u5feb\u7f16\u8bd1\u901f\u5ea6\uff0c\u5f53<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">const<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u88ab\u4f7f\u7528\u65f6\uff0c\u5f80\u5f80\u8fdb\u884c\u5e38\u6570\u6298\u53e0\u3002<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">&nbsp;&nbsp;&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5728\u4f7f\u7528<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">const<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u65f6\u5c24\u5176\u8981\u6ce8\u610f\u5e38\u6570\u6307\u9488\u4e0e\u6307\u5411\u5e38\u6570\u7684\u6307\u9488\u7684\u533a\u522b\u3002\u987e\u540d\u601d\u4e49\u5e38\u6570\u6307\u9488\u610f\u5473\u7740\u8be5\u6307\u9488\u4e0d\u662f\u4e00\u4e2a\u666e\u901a\u6307\u9488\uff0c\u800c\u603b\u6307\u5411\u540c\u4e00\u4e2a\u5730\u5740\uff0c\u4e0d\u80fd\u66f4\u6362\u8001\u5bb6\uff0c\u4f46\u662f\u5bb6\u91cc\u9762\u7684\u6446\u8bbe\u53d8\u5316\u4e86\uff0c\u5b83\u662f\u7ba1\u4e0d\u7740\u7684\uff1b\u6307\u5411\u5e38\u6570\u7684\u6307\u9488\u610f\u5473\u7740\u8be5\u6307\u9488\u8fd8\u662f\u4e00\u4e2a\u666e\u901a\u6307\u9488\uff0c\u53ea\u4e0d\u8fc7\u6070\u597d\u3001\u5076\u7136\u6307\u5411\u4e00\u4e2a\u4e0d\u80fd\u88ab\u6539\u53d8\u7684\u5e38\u6570\u800c\u5df2\uff0c\u6211\u4eec\u5f53\u7136\u53ef\u4ee5\u6539\u53d8\u8be5\u6307\u9488\u6240\u6307\u5411\u7684\u5730\u5740\u3002\u90a3\u4e48\u600e\u4e48\u6837\u58f0\u660e\u5462\uff1f<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">&nbsp;&nbsp;&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4e8b\u5b9e\u4e0a<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">const&nbsp;int*&nbsp;a;&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4e0e<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">int&nbsp;const*&nbsp;a<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u90fd\u662f\u4e00\u4e2a\u610f\u601d\uff0c\u800c<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">int*&nbsp;const&nbsp;a<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u662f\u53e6\u5916\u4e00\u4e2a\u610f\u601d\uff0c\u5927\u5bb6\u5b50\u4e2a\u63e3\u6469\u3002<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4f46\u662f\u8fd9\u53c8\u4e0e\u58f0\u660e\u6307\u9488\u7684\u65b9\u6cd5\u548c\u4e60\u60ef\u6709\u70b9\u51fa\u5165\uff0c\u56e0\u6b64\u6211\u8981\u8bf4\u660e\u4e24\u70b9\u3002<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">&lt;1&gt;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4e00\u822c\u800c\u8a00\u6211\u4eec\u58f0\u660e\u6307\u9488\u65f6<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">,<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u63a8\u8350\u7528<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">int&nbsp;*a,<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u800c\u4e0d\u5e38\u7528<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">int*&nbsp;a;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u56e0\u4e3a\u6211\u4eec\u5728\u4f7f\u7528<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">int*&nbsp;a,&nbsp;b<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u65f6\u4f1a\u7ed9\u4eba\u4e00\u79cd\u4e8c\u4e49\u6027\uff1a<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">a,&nbsp;b<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u90fd\u662f\u6307\u9488\uff0c\u8fd8\u662f\u53ea\u6709<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">a<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u624d\u662f\u6307\u9488\u5462\uff1f\u5982\u679c\u6211\u4eec\u4f7f\u7528<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">int&nbsp;*a,&nbsp;b<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u65f6\u90a3\u4e48\u5c31\u4e0d\u4f1a\u5e26\u6765\u4efb\u4f55\u7406\u89e3\u4e0a\u7684\u9ebb\u70e6\uff0c\u56e0\u6b64\u7279\u522b\u6ce8\u610f\u8fd9\u70b9\u3002<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">&lt;2&gt;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u66f4\u4e3a\u65e0\u5948\u7684\u662f\u5728\u6211\u4eec\u58f0\u660e\u8fd4\u56de\u51fd\u6570\u662f\u5e38\u6570\u65f6\uff0c\u53c8\u4e0d\u5f97\u4e0d\u5c06<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">const<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u7f6e\u4e8e\u51fd\u6570\u539f\u578b\u5c3e\u90e8\uff0c\u56e0\u4e3a\u5982\u679c\u653e\u5728\u524d\u9762\uff0c\u5c31\u8868\u793a\u8fd4\u56de\u503c\u4e3a\u5e38\u6570\u4e86\u3002<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">&nbsp;&nbsp;&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6240\u4ee5<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">c++<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8fd8\u662f\u6709\u5176\u4e0d\u89c4\u8303\u6027\u7684\uff0c\u4f46\u662f\u6211\u4eec\u5fc5\u987b\u7406\u89e3\u5b83\u3002<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">&nbsp;&nbsp;&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5728<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">class<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4e2d\uff0c<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">const<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5982\u4f55\u4f7f\u7528\u5462\uff1f<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">&nbsp;&nbsp;&nbsp;const<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5e76\u4e0d\u5c5e\u4e8e\u7c7b\u7684\uff0c\u800c\u662f\u5c5e\u4e8e\u6bcf\u4e00\u4e2a\u5bf9\u8c61\u7684\uff0c\u610f\u5473\u7740\u5728\u8fd9\u4e2a\u5bf9\u8c61\u5bff\u547d\u671f\u5185\uff0c\u8fd9\u662f\u4e00\u4e2a\u5e38\u91cf\uff0c\u56e0\u6b64\u5c5e\u4e8e\u540c\u4e00\u7c7b\u7684\u4e0d\u540c\u7684\u5bf9\u8c61\u53ef\u4ee5\u5177\u6709\u4e0d\u540c\u7684\u5c5e\u6027\u503c\uff0c\u4f46\u662f\u53c8\u4e0d\u80fd\u5728\u58f0\u660e\u7684\u65f6\u5019\u8d4b\u503c\uff08\u4e0e\u4e0d\u5728\u7c7b\u4e2d\u5b8c\u5168\u76f8\u53cd\uff09\u3002\u56e0\u6b64\u6211\u4eec\u5fc5\u987b\u5728\u6784\u9020\u51fd\u6570\u5f00\u59cb\u4e4b\u524d\u5c31\u521d\u59cb\u5316\u3002<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">&nbsp;&nbsp;&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u90a3\u4e48\u5728<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">class<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4e2d\u7684<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">const<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6210\u5458\u53d8\u91cf\u5982\u4f55\u521d\u59cb\u5316\u5462\uff1f\u5f80\u5f80\u6211\u4eec\u4f7f\u7528\u79f0\u4e4b\u4e3a<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">\u201c<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6784\u9020\u51fd\u6570\u521d\u59cb\u5316\u8868\u8fbe\u5f0f\u8868<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">\u201d<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u7684\u65b9\u5f0f\u6765\u5b9e\u73b0\u521d\u59cb\u5316\u3002<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">&nbsp;&nbsp;&nbsp;class<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4e2d\u7684<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">const<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6210\u5458\u51fd\u6570\u53c8\u662f\u5e72\u4ec0\u4e48\u7684\u5462\uff1f\u4e00\u822c\u800c\u8a00\u4e0d\u4fee\u6539\u6210\u5458\u53d8\u91cf\u7684\u6210\u5458\u51fd\u6570\u90fd\u5c3d\u91cf\u58f0\u660e\u4e3a<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">const<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6210\u5458\u51fd\u6570\uff0c\u540c\u65f6\u4e5f\u53ef\u4ee5\u4f9b<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">const<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5bf9\u8c61\u4f7f\u7528\u3002\u540c\u65f6\u6211\u8981\u8bf4\u660e\u7684\u662f<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">:<BR>&lt;1&gt;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4e0d\u80fd\u4fee\u6539\u6210\u5458\u53d8\u91cf<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">&lt;2&gt;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6784\u9020\u51fd\u6570\u4e0d\u53ef\u907f\u514d\u5730\u8981\u4fee\u6539\u6210\u5458\u53d8\u91cf\uff0c\u56e0\u6b64\u4e0d\u80fd\u6210\u4e3a\u5e38\u6570\u6210\u5458\u51fd\u6570\u3002<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">&lt;3&gt;const<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5bf9\u8c61\u662f\u4e00\u4e2a\u7a33\u5b9a\u7684\u5bf9\u8c61\uff0c\u4e00\u822c\u4e0d\u4fee\u6539\u5176\u5185\u90e8\u6210\u5458\u3002<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">&nbsp;&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8c08\u5230\u8fd9\u91cc\uff0c\u6211\u4eec\u53ef\u80fd\u8981\u95ee\uff0c<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">&lt;1&gt;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5982\u4f55\u4f7f\u5f97\u4e00\u4e2a\u53d8\u91cf\u53ef\u4ee5\u5728\u58f0\u660e\u65f6\u5c31\u8d4b\u503c\uff0c\u800c\u4e14\u4f5c\u4e3a\u5e38\u6570\uff0c\u65b9\u4fbf\u6211\u4eec\u4f7f\u7528\u6570\u7ec4\uff1f<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u90a3\u5176\u5b9e\u7b54\u6848\u5c31\u662f<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">enum<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u53d8\u91cf<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">&lt;2&gt;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5982\u4f55\u4fdd\u8bc1\u4e00\u4e2a\u53d8\u91cf\u53ef\u4ee5\u88ab\u5e38\u6570\u5bf9\u8c61\u6539\u53d8\u5462\uff1f<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u7b54\u6848\u5c31\u662f\u7528<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">mutable<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4ee3\u66ff<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">const<BR>&lt;3&gt;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5982\u4f55\u4f7f\u5f97\u4e00\u4e2a\u53d8\u91cf\u5c5e\u4e8e\u7c7b\u7684\uff0c\u5c5e\u4e8e\u5404\u5bf9\u8c61\u5171\u4eab\u7684\u5462\uff1f\u7b54\u6848\u4e5f\u5f88\u7b80\u5355\uff0c\u5c31\u662f<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">static<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u53d8\u91cf<\/SPAN><SPAN lang=EN-US><BR><BR><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff08<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">6<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff09\u771f\u6b63\u7684\u5e38\u91cf\u53ef\u4ee5\u4f7f\u7528\u679a\u4e3e<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">enum<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6765\u5b9e\u73b0\u3002<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">enum<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u53d8\u91cf\u540c\u6837\u4e0d\u5360\u7528\u5b58\u50a8\u7a7a\u95f4\uff0c\u4e5f\u653e\u5728\u7b26\u53f7\u8868\u4e2d\uff0c\u5728\u7f16\u8bd1\u65f6\u4f1a\u88ab\u5168\u90e8\u6c42\u503c<\/SPAN><SPAN lang=EN-US><BR><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4f7f\u7528\u65b9\u6cd5\u89c1\uff1a<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">&nbsp;<BR>&lt;1&gt;enum&nbsp;{size&nbsp;=&nbsp;100};&nbsp;int&nbsp;array[size]<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff1b<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">&lt;2&gt;enum&nbsp;{one=1;&nbsp;two=2;three;four};&nbsp;int&nbsp;array[three]<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff1b<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u63a8\u7406\u6c42\u804c<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">three=3<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff1b<\/SPAN><SPAN lang=EN-US><BR><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4f46\u662f\u4f7f\u7528<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">enum<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff0c\u7f16\u8bd1\u5668\u6709\u5b89\u5168\u6027\u68c0\u67e5\uff0c\u56e0\u6b64<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">enum<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4e0e<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">int<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4e4b\u95f4\u4e0d\u80fd\u4e92\u76f8\u8f6c\u6362\u3002<\/SPAN><SPAN lang=EN-US><BR><BR><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff08<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">7<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff09<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">mutable<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4fee\u9970\u7b26\u53f7<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">&nbsp;<BR><\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5982<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">&nbsp;classname&nbsp;{mutable&nbsp;a&nbsp;=&nbsp;100;}&nbsp;classname&nbsp;const&nbsp;object;&nbsp;object.a&nbsp;=&nbsp;200;<BR><BR><\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff08<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">8<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff09<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">volatile<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4fee\u9970\u7b26\u53f7\uff0c\u4e0e<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">const<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4f7f\u7528\u5b8c\u5168\u76f8\u540c<\/SPAN><SPAN lang=EN-US><BR><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4f46\u662f\u5176\u610f\u4e49\u662f\uff1a\u5728\u7f16\u8bd1\u5668\u8ba4\u8bc6\u7684\u8303\u56f4\u5916\uff0c\u8fd9\u4e2a\u6570\u636e\u53ef\u4ee5\u88ab\u6539\u53d8<\/SPAN><SPAN lang=EN-US><BR><BR><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff08<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">9<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff09<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">static<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u53d8\u91cf<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">&lt;1&gt;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5b58\u653e\u533a\u95f4\u4e0e\u53ef\u89c1\u6027<\/SPAN><SPAN lang=EN-US><BR><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u9759\u6001\u53d8\u91cf\u5b58\u653e\u4e8e\u9759\u6001\u5b58\u50a8\u533a\uff0c<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u800c\u4e34\u65f6\u53d8\u91cf\u5b58\u653e\u4e8e\u975e\u52a8\u6001\u5b58\u50a8\u533a\u6808<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u3001\u5806\u4e2d\u3002<\/SPAN><SPAN lang=EN-US><BR><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5168\u5c40\u53d8\u91cf<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">static&nbsp;:&nbsp;&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u672c\u5730\u6587\u4ef6\u5168\u5c40\u53ef\u89c1\u6027\uff1b<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">extern&nbsp;:&nbsp;&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u672c\u5730\u6587\u4ef6\u3001\u5916\u90e8\u6587\u4ef6\u5168\u5c40\u5747\u53ef\u89c1<\/SPAN><SPAN lang=EN-US><BR><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4e34\u65f6\u53d8\u91cf<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">auto&nbsp;&nbsp;&nbsp;:&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u9ed8\u8ba4\u4e3a\u8be5\u7c7b\u578b\uff0c\u56e0\u6b64\u57fa\u672c\u65e0\u7528\uff1b<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">register&nbsp;:&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u52a0\u5feb\u53d8\u91cf\u8bbf\u95ee\u901f\u5ea6\uff0c<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u63d0\u9ad8\u6548\u7387\uff0c<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4f46\u662f\u5bc4\u5b58\u5668\u6570\u91cf\u53ca\u5176\u6709\u9650\uff1b<\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\">&lt;2&gt;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u51fd\u6570\u5185<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">static<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u53d8\u91cf\uff1a\u53ea\u9700\u8981\u521d\u59cb\u5316\u4e00\u6b21\uff0c\u4e0b\u6b21\u53ef\u4ee5\u968f\u65f6\u6539\u53d8\uff0c\u5f53\u7136\u5bf9\u4e8e\u5185\u90e8\u7c7b\u578b\u53d8\u91cf\u53ef\u4ee5\u4e0d\u521d\u59cb\u5316\uff0c\u7f16\u8bd1\u5668\u4f1a\u81ea\u52a8\u8d4b\u521d\u503c\uff0c\u901a\u5e38\u4e3a<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">0&nbsp;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u3001<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">'\\0'<BR>&lt;3&gt;<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u7c7b\u5185<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">static<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6210\u5458\u53d8\u91cf\uff1a\u5c5e\u4e8e\u7c7b\u7684\uff0c\u53ef\u4ee5\u4f9b\u5404\u5bf9\u8c61\u5171\u4eab\uff0c\u56e0\u6b64\u4e5f\u53ea\u9700\u8981\u521d\u59cb\u5316\u4e00\u6b21\u3002\u9700\u8981\u8bf4\u660e\u7684\u662f\uff1a<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">&nbsp;&nbsp;&nbsp;<BR>this<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6307\u9488\u4e0d\u5c5e\u4e8e\u7c7b\u7684\uff0c\u800c\u662f\u5c5e\u4e8e\u5bf9\u8c61\u7684\uff0c\u7528\u6765\u6307\u5411\u5bf9\u8c61\u81ea\u8eab\u7684\u9690\u5f0f\u5e38\u6570\u6307\u9488\uff0c<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">class<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5185\u90e8\u5404\u975e\u9759\u6001\u6210\u5458\u51fd\u6570\u4e4b\u95f4\u76f8\u4e92\u8c03\u7528\u65f6\u9ed8\u8ba4\u9690\u5f0f\u5730\u4f7f\u7528\u4e86<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">this<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5e38\u6570\u6307\u9488\uff0c\u90a3\u4e48\u4e5f\u5c31\u610f\u5473\u7740\u9759\u6001\u6210\u5458\u51fd\u6570\u4e0d\u80fd\u4f7f\u7528<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\">this<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6307\u9488\uff0c\u56e0\u6b64\u4e0d\u80fd\u8bbf\u95ee\u975e\u9759\u6001\u6210\u5458\u51fd\u6570\u6216\u975e\u9759\u6001\u6210\u5458\u53d8\u91cf\u3002<\/SPAN><\/P><\/p>\n","protected":false},"excerpt":{"rendered":"<p>c++\u8bed\u6cd5\u3001\u8bed\u4e49\u5b66\u4e60\u5fc3\u5f97\uff08\u4e00\uff09\uff0dthinking&nbsp;in&nbsp;c++&nbsp;&nbsp;c\u8bed&#8230; <\/p>\n<div class=\"read-more navbutton\"><a href=\"https:\/\/t.n-years.com\/?p=317\">\u9605\u8bfb\u66f4\u591a<i class=\"fa fa-angle-double-right\"><\/i><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-317","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/t.n-years.com\/index.php?rest_route=\/wp\/v2\/posts\/317","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/t.n-years.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/t.n-years.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/t.n-years.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/t.n-years.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=317"}],"version-history":[{"count":1,"href":"https:\/\/t.n-years.com\/index.php?rest_route=\/wp\/v2\/posts\/317\/revisions"}],"predecessor-version":[{"id":2542,"href":"https:\/\/t.n-years.com\/index.php?rest_route=\/wp\/v2\/posts\/317\/revisions\/2542"}],"wp:attachment":[{"href":"https:\/\/t.n-years.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=317"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/t.n-years.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=317"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/t.n-years.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}