{"id":111544,"date":"2026-10-01T11:21:54","date_gmt":"2026-10-01T03:21:54","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/111544.html"},"modified":"2026-10-01T11:21:54","modified_gmt":"2026-10-01T03:21:54","slug":"c11-%ef%bc%9a%e5%8f%b3%e5%80%bc%e5%bc%95%e7%94%a8%e7%9a%84%e4%bd%9c%e7%94%a8%ef%bc%8c%e5%bc%95%e7%94%a8%e6%8a%98%e5%8f%a0%e5%92%8c%e5%ae%8c%e7%be%8e%e8%bd%ac%e5%8f%91","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/111544.html","title":{"rendered":"C++11 \uff1a\u53f3\u503c\u5f15\u7528\u7684\u4f5c\u7528\uff0c\u5f15\u7528\u6298\u53e0\u548c\u5b8c\u7f8e\u8f6c\u53d1"},"content":{"rendered":"<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"-toc\" style=\"margin-left:0px\">\n<p id=\"%E4%B8%80.%E5%8F%B3%E5%80%BC%E5%BC%95%E7%94%A8%E7%9A%84%E4%BD%9C%E7%94%A8-toc\" style=\"margin-left:0px\">\u4e00.\u53f3\u503c\u5f15\u7528\u7684\u4f5c\u7528<\/p>\n<p id=\"1.1%E4%B8%BA%E4%BB%80%E4%B9%88%E8%A6%81%E5%BC%95%E5%85%A5%E5%8F%B3%E5%80%BC%E5%BC%95%E7%94%A8%EF%BC%9F-toc\" style=\"margin-left:40px\">1.1\u4e3a\u4ec0\u4e48\u8981\u5f15\u5165\u53f3\u503c\u5f15\u7528&#xff1f;<\/p>\n<p id=\"%E4%BA%8C.%E7%B1%BB%E5%9E%8B%E5%88%86%E7%B1%BB%EF%BC%88%E4%BA%86%E8%A7%A3%EF%BC%89-toc\" style=\"margin-left:0px\">\u4e8c.\u7c7b\u578b\u5206\u7c7b&#xff08;\u4e86\u89e3&#xff09;<\/p>\n<p id=\"%E4%B8%89.%E5%BC%95%E7%94%A8%E6%8A%98%E5%8F%A0-toc\" style=\"margin-left:0px\">\u4e09.\u5f15\u7528\u6298\u53e0<\/p>\n<p id=\"%E5%9B%9B.%E5%AE%8C%E7%BE%8E%E8%BD%AC%E5%8F%91-toc\" style=\"margin-left:0px\">\u56db.\u5b8c\u7f8e\u8f6c\u53d1<\/p>\n<hr id=\"hr-toc\" \/>\n<h2 id=\"%E4%B8%80.%E5%8F%B3%E5%80%BC%E5%BC%95%E7%94%A8%E7%9A%84%E4%BD%9C%E7%94%A8\">\u4e00.\u53f3\u503c\u5f15\u7528\u7684\u4f5c\u7528<\/h2>\n<p>\u56de\u987e\u5de6\u503c\u5f15\u7528\u7684\u4f5c\u7528&#xff1a;<\/p>\n<li>\u5145\u5f53\u522b\u540d&#xff0c;\u907f\u514d\u62f7\u8d1d&#xff0c;\u76f4\u63a5\u7ed1\u5b9a\u5de6\u503c&#xff0c;\u64cd\u4f5c\u540c\u4e00\u5757\u5185\u5b58&#xff1b;<\/li>\n<li>\u5141\u8bb8\u4fee\u6539\u539f\u59cb\u5bf9\u8c61&#xff1b;<\/li>\n<li>\u51fd\u6570\u53ef\u4ee5\u5411\u5916\u5e26\u51fa\u4fee\u6539\u7ed3\u679c&#xff08;\u8f93\u51fa\u578b\u53c2\u6570&#xff09;&#xff1b;<\/li>\n<li>\u4f5c\u4e3a\u8fd4\u56de\u503c&#xff0c;\u4f7f\u8868\u8fbe\u5f0f\u6210\u4e3a\u5de6\u503c&#xff0c;\u652f\u6301\u8fde\u7eed\u8d4b\u503c&#xff08;\u5982 operator[]&#xff09;&#xff1b;<\/li>\n<h3 id=\"1.1%E4%B8%BA%E4%BB%80%E4%B9%88%E8%A6%81%E5%BC%95%E5%85%A5%E5%8F%B3%E5%80%BC%E5%BC%95%E7%94%A8%EF%BC%9F\">1.1\u4e3a\u4ec0\u4e48\u8981\u5f15\u5165\u53f3\u503c\u5f15\u7528&#xff1f;<\/h3>\n<p>\u901a\u8fc7\u91cd\u8f7d\u533a\u5206\u5de6\u53f3\u503c&#xff0c;\u9488\u5bf9\u5373\u5c06\u9500\u6bc1\u7684\u53f3\u503c\u5b9e\u73b0\u79fb\u52a8\u8bed\u4e49&#xff0c;\u8f6c\u79fb\u8d44\u6e90\u800c\u4e0d\u62f7\u8d1d\u6570\u636e&#xff0c;\u6d88\u9664\u4e0d\u5fc5\u8981\u7684\u5185\u5b58\u590d\u5236\u5f00\u9500\u3002<\/p>\n<p>\u6bd4\u5982&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"808\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001032144-6abdd1c8c10b6.png\" width=\"934\" \/><\/p>\n<p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\u4f20\u503c\u8fd4\u56de\u9700\u8981\u521b\u5efa\u4e34\u65f6\u5bf9\u8c61&#xff0c;\u7136\u540e\u518d\u62f7\u8d1d\u5230\u5916\u9762&#xff0c;\u8fd9\u4f1a\u9020\u6210\u4e24\u6b21\u6784\u9020&#xff0c;\u5bfc\u81f4\u8d44\u6e90\u6d6a\u8d39&#xff0c;\u90a3\u4e48\u5c31\u6709\u540c\u5b66\u8bf4\u4e86&#xff0c;\u73b0\u5728\u7f16\u8bd1\u5668\u90fd\u4f18\u5316\u4e86&#xff0c;\u6784\u9020\u51cf\u5c11\u4e86&#xff0c;\u8d44\u6e90\u6d6a\u8d39\u5c31\u5c11\u4e86&#xff0c;\u8fd8\u6709\u5fc5\u8981\u7528\u5230\u53f3\u503c\u5f15\u7528\u5417&#xff1f;\u6211\u4eec\u5148\u4e86\u89e3\u4e3a\u4ec0\u4e48\u7f16\u8bd1\u5668\u8981\u4f18\u5316<\/p>\n<p>\u4f20\u7edf\u53ea\u6709\u5de6\u503c\u5f15\u7528\u4f20\u503c\u4f20\u53c2\u4e2d\u4e3a\u4e86\u907f\u514d\u9020\u6210\u8d44\u6e90&#xff0c;\u901a\u5e38\u7528\u4e0b\u9762\u8fd9\u79cd\u65b9\u6cd5\u6765\u5199&#xff1a;<\/p>\n<p>\u5f62\u53c2\u7528\u5f15\u7528\u6765\u63a5\u6536&#xff0c;\u6539\u53d8\u5f62\u53c2\u7684\u540c\u65f6\u5c31\u53ef\u4ee5\u6539\u53d8\u5916\u9762\u5143\u7d20\u4e86&#xff0c;\u4f46\u662f\u8fd9\u91cc\u7f3a\u5c11\u53ef\u8bfb\u6027&#xff0c;\u6240\u4ee5\u7f16\u8bd1\u5668\u8981\u8fdb\u884c\u4f18\u5316\u6765\u89e3\u51b3\u8be5\u95ee\u9898<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"974\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001032145-6abdd1c900b32.png\" width=\"1502\" \/><\/p>\n<p>\u518d\u8bb2\u4e4b\u524d\u6211\u4eec\u5148\u6765\u4e86\u89e3\u4e00\u4e0b\u4ec0\u4e48\u662f<span style=\"color:#fe2c24\">\u62f7\u8d1d\u6784\u9020&#xff0c;\u62f7\u8d1d\u8d4b\u503c&#xff0c;\u79fb\u52a8\u6784\u9020\u548c\u79fb\u52a8\u8d4b\u503c<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"2062\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001032145-6abdd1c96244c.png\" width=\"1361\" \/><\/p>\n<table>\n<tr>\u51fd\u6570\u51fd\u6570\u7b7e\u540d\u65f6\u673a\u6570\u636e\u6e90\u7c7b\u578b\u6838\u5fc3\u884c\u4e3a<\/tr>\n<tbody>\n<tr>\n<td>\u62f7\u8d1d\u6784\u9020<\/td>\n<td>string(const string&amp; s)<\/td>\n<td>\u521b\u5efa\u65b0\u5bf9\u8c61&#xff08;\u521d\u59cb\u5316\u9636\u6bb5&#xff09;<\/td>\n<td>\u5de6\u503c \/const \u5de6\u503c<\/td>\n<td>\u6df1\u62f7\u8d1d&#xff0c;\u65b0\u5efa\u5185\u5b58\u590d\u5236\u5b57\u7b26<\/td>\n<\/tr>\n<tr>\n<td>\u79fb\u52a8\u6784\u9020<\/td>\n<td>string(string&amp;&amp; s)<\/td>\n<td>\u521b\u5efa\u65b0\u5bf9\u8c61&#xff08;\u521d\u59cb\u5316\u9636\u6bb5&#xff09;<\/td>\n<td>\u53f3\u503c&#xff08;\u4e34\u65f6\u3001std::move&#xff09;<\/td>\n<td>\u8d44\u6e90\u8f6c\u79fb&#xff0c;swap&#xff0c;\u4e0d\u62f7\u8d1d\u6570\u636e<\/td>\n<\/tr>\n<tr>\n<td>\u62f7\u8d1d\u8d4b\u503c<\/td>\n<td>string&amp; operator&#061;(const string&amp; s)<\/td>\n<td>\u5bf9\u8c61\u5df2\u5b58\u5728&#xff0c;\u8d4b\u503c\u8986\u76d6<\/td>\n<td>\u5de6\u503c \/const \u5de6\u503c<\/td>\n<td>\u91ca\u653e\u81ea\u8eab\u65e7\u8d44\u6e90&#xff0c;\u6df1\u62f7\u8d1d\u65b0\u6570\u636e<\/td>\n<\/tr>\n<tr>\n<td>\u79fb\u52a8\u8d4b\u503c<\/td>\n<td>string&amp; operator&#061;(string&amp;&amp; s)<\/td>\n<td>\u5bf9\u8c61\u5df2\u5b58\u5728&#xff0c;\u8d4b\u503c\u8986\u76d6<\/td>\n<td>\u53f3\u503c&#xff08;\u4e34\u65f6\u3001std::move&#xff09;<\/td>\n<td>swap \u8f6c\u79fb\u8d44\u6e90&#xff0c;\u65e0\u6570\u636e\u62f7\u8d1d<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"color:#fe2c24\">\u603b\u7ed3&#xff1a;\u62f7\u8d1d\u6784\u9020\u548c\u62f7\u8d1d\u8d4b\u503c\u9700\u8981\u6d88\u8017\u8d44\u6e90&#xff0c;\u79fb\u52a8\u6784\u9020\u548c\u79fb\u52a8\u8d4b\u503c\u4e0d\u9700\u8981\u6d88\u8017\u8d44\u6e90<\/span><\/p>\n<p>\u7ed9\u51fa\u4e0b\u5217\u4ee3\u7801\u662f\u4e3a\u4e86\u548c\u5e93\u91cc\u505a\u533a\u5206&#xff0c;\u53ef\u5e2e\u52a9\u6211\u4eec\u770b\u51fa\u8c03\u7528\u4e86\u90a3\u4e9b\u6784\u9020<\/p>\n<p>namespace Jam<br \/>\n{<br \/>\n    class string<br \/>\n    {<br \/>\n    public:<br \/>\n        typedef char* iterator;<br \/>\n        typedef const char* const_iterator;<\/p>\n<p>        iterator begin()<br \/>\n        {<br \/>\n            return _str;<br \/>\n        }<br \/>\n        iterator end()<br \/>\n        {<br \/>\n            return _str &#043; _size;<br \/>\n        }<\/p>\n<p>        const_iterator begin() const<br \/>\n        {<br \/>\n            return _str;<br \/>\n        }<\/p>\n<p>        const_iterator end() const<br \/>\n        {<br \/>\n            return _str &#043; _size;<br \/>\n        }<\/p>\n<p>        string(const char* str &#061; &#034;&#034;)<br \/>\n            :_size(strlen(str))<br \/>\n            , _capacity(_size)<br \/>\n        {<br \/>\n            \/\/cout &lt;&lt; &#034;string(char* str)-\u6784\u9020&#034; &lt;&lt; endl;<br \/>\n            _str &#061; new char[_capacity &#043; 1];<br \/>\n            strcpy(_str, str);<br \/>\n        }<\/p>\n<p>        void swap(string&amp; s)<br \/>\n        {<br \/>\n            ::swap(_str, s._str);<br \/>\n            ::swap(_size, s._size);<br \/>\n            ::swap(_capacity, s._capacity);<br \/>\n        }<\/p>\n<p>        \/\/ \u62f7\u8d1d\u6784\u9020<br \/>\n        string(const string&amp; s)<br \/>\n        {<br \/>\n            \/\/cout &lt;&lt; &#034;string(const string&amp; s) &#8212; \u62f7\u8d1d\u6784\u9020&#034; &lt;&lt; endl;<\/p>\n<p>            reserve(s._capacity);<br \/>\n            for (auto ch : s)<br \/>\n            {<br \/>\n                push_back(ch);<br \/>\n            }<br \/>\n        }<\/p>\n<p>        \/\/ \u79fb\u52a8\u6784\u9020<br \/>\n        string(string&amp;&amp; s)<br \/>\n        {<br \/>\n            \/\/cout &lt;&lt; &#034;string(string&amp;&amp; s) &#8212; \u79fb\u52a8\u6784\u9020&#034; &lt;&lt; endl;<br \/>\n            swap(s);<br \/>\n        }<\/p>\n<p>        string&amp; operator&#061;(const string&amp; s)<br \/>\n        {<br \/>\n            \/\/cout &lt;&lt; &#034;string&amp; operator&#061;(const string&amp; s) &#8212; \u62f7\u8d1d\u8d4b\u503c&#034; &lt;&lt; endl;<br \/>\n            if (this !&#061; &amp;s)<br \/>\n            {<br \/>\n                _str[0] &#061; &#039;\\\\0&#039;;<br \/>\n                _size &#061; 0;<\/p>\n<p>                reserve(s._capacity);<br \/>\n                for (auto ch : s)<br \/>\n                {<br \/>\n                    push_back(ch);<br \/>\n                }<br \/>\n            }<\/p>\n<p>            return *this;<br \/>\n        }<\/p>\n<p>        \/\/ \u79fb\u52a8\u8d4b\u503c<br \/>\n        string&amp; operator&#061;(string&amp;&amp; s)<br \/>\n        {<br \/>\n            \/\/cout &lt;&lt; &#034;string&amp; operator&#061;(string&amp;&amp; s) &#8212; \u79fb\u52a8\u8d4b\u503c&#034; &lt;&lt; endl;<br \/>\n            swap(s);<br \/>\n            return *this;<br \/>\n        }<\/p>\n<p>        ~string()<br \/>\n        {<br \/>\n            \/\/cout &lt;&lt; &#034;~string() &#8212; \u6790\u6784&#034; &lt;&lt; endl;<br \/>\n            delete[] _str;<br \/>\n            _str &#061; nullptr;<br \/>\n        }<\/p>\n<p>        char&amp; operator[](size_t pos)<br \/>\n        {<br \/>\n            assert(pos &lt; _size);<br \/>\n            return _str[pos];<br \/>\n        }<\/p>\n<p>        void reserve(size_t n)<br \/>\n        {<br \/>\n            if (n &gt; _capacity)<br \/>\n            {<br \/>\n                char* tmp &#061; new char[n &#043; 1];<br \/>\n                if (_str)<br \/>\n                {<br \/>\n                    strcpy(tmp, _str);<br \/>\n                    delete[] _str;<br \/>\n                }<br \/>\n                _str &#061; tmp;<br \/>\n                _capacity &#061; n;<br \/>\n            }<br \/>\n        }<\/p>\n<p>        void push_back(char ch)<br \/>\n        {<br \/>\n            if (_size &gt;&#061; _capacity)<br \/>\n            {<br \/>\n                size_t newcapacity &#061; _capacity &#061;&#061; 0 ? 4 : _capacity * 2;<br \/>\n                reserve(newcapacity);<br \/>\n            }<\/p>\n<p>            _str[_size] &#061; ch;<br \/>\n            &#043;&#043;_size;<br \/>\n            _str[_size] &#061; &#039;\\\\0&#039;;<br \/>\n        }<\/p>\n<p>        string&amp; operator&#043;&#061;(char ch)<br \/>\n        {<br \/>\n            push_back(ch);<br \/>\n            return *this;<br \/>\n        }<\/p>\n<p>        const char* c_str() const<br \/>\n        {<br \/>\n            return _str;<br \/>\n        }<\/p>\n<p>        size_t size() const<br \/>\n        {<br \/>\n            return _size;<br \/>\n        }<br \/>\n    private:<br \/>\n        char* _str &#061; nullptr;<br \/>\n        size_t _size &#061; 0;<br \/>\n        size_t _capacity &#061; 0;<br \/>\n    };<\/p>\n<p>    \/\/ \u4f20\u503c\u8fd4\u56de\u9700\u8981\u62f7\u8d1d<br \/>\n    string addStrings(string num1, string num2,string&amp; str) {<br \/>\n        \/\/string str;<br \/>\n        int end1 &#061; num1.size() &#8211; 1, end2 &#061; num2.size() &#8211; 1;<br \/>\n        \/\/ \u8fdb\u4f4d<br \/>\n        int next &#061; 0;<br \/>\n        while (end1 &gt;&#061; 0 || end2 &gt;&#061; 0)<br \/>\n        {<br \/>\n            int val1 &#061; end1 &gt;&#061; 0 ? num1[end1&#8211;] &#8211; &#039;0&#039; : 0;<br \/>\n            int val2 &#061; end2 &gt;&#061; 0 ? num2[end2&#8211;] &#8211; &#039;0&#039; : 0;<br \/>\n            int ret &#061; val1 &#043; val2 &#043; next;<br \/>\n            next &#061; ret \/ 10;<br \/>\n            ret &#061; ret % 10;<br \/>\n            str &#043;&#061; (&#039;0&#039; &#043; ret);<br \/>\n        }<br \/>\n        if (next &#061;&#061; 1)<br \/>\n            str &#043;&#061; &#039;1&#039;;<br \/>\n        reverse(str.begin(), str.end());<\/p>\n<p>        return str;<br \/>\n    }<br \/>\n} <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"370\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001032146-6abdd1cab87a7.png\" width=\"1097\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1194\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001032146-6abdd1caeb430.png\" width=\"1863\" \/><\/p>\n<p>\u6ce8&#xff1a;<\/p>\n<p>\u56fe\u4e00\u662f\u5728Linux\u4e0a\u4e0d\u5e26\u4f18\u5316\u8fd0\u884c\u7684\u7ed3\u679c&#xff0c;\u56fe\u4e8c\u662f\u4e00\u4ee3\u7f16\u8bd1\u5668\u4f18\u5316\u7684\u7ed3\u679c&#xff0c;\u56fe\u4e09\u662f\u4e8c\u4ee3\u7f16\u8bd1\u5668\u4f18\u5316\u540e\u7684\u7ed3\u679c<\/p>\n<p>\u7ea2\u8272\u6846&#xff1a;\u5916\u90e8\u4f20\u5165\u51fd\u6570\u65f6\u9700\u8981\u521b\u5efa\u4e34\u65f6\u5bf9\u8c61\u8c03\u7528\u6784\u9020\u7136\u540e\u8fdb\u884c\u62f7\u8d1d\u6784\u9020&#xff0c;\u6211\u4eec\u53ef\u4ee5\u770b\u51fa\u7f16\u8bd1\u5668\u4f18\u5316\u540e\u76f4\u63a5\u5408\u4e8c\u4e3a\u4e00\u6ca1\u6709\u62f7\u8d1d\u6784\u9020\u4e86<\/p>\n<p>\u7eff\u8272\u6846&#xff1a;\u51fd\u6570\u91cc\u9762\u4e34\u65f6\u53d8\u91cf\u7684\u6784\u9020<\/p>\n<p>\u84dd\u8272\u6846&#xff1a;\u4f20\u503c\u8fd4\u56de\u65f6\u8c03\u7528\u7684\u662f\u6784\u9020\u51fd\u6570\u521b\u5efa\u4e34\u65f6\u5bf9\u8c61&#xff0c;\u7136\u540e\u518d\u8fdb\u884c\u62f7\u8d1d\u6784\u9020&#xff0c;\u540e\u9762\u53ef\u4ee5\u770b\u51fa\u4e0d\u65ad\u88ab\u4f18\u5316&#xff0c;\u751a\u81f3\u6700\u540e\u53ea\u521b\u5efa\u4e86\u4e34\u65f6\u5bf9\u8c61&#xff0c;\u91cc\u9762\u7684\u5c40\u90e8\u5bf9\u8c61\u90fd\u6ca1\u6709\u521b\u5efa<\/p>\n<p><span style=\"color:#fe2c24\">\u53f3\u503c\u5f15\u7528\u6709\u79fb\u52a8\u6784\u9020\u7684\u573a\u666f&#xff1a;<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"812\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001032147-6abdd1cbc857b.png\" width=\"1535\" \/><\/p>\n<p>\u901a\u8fc7\u89c2\u5bdf\u6700\u540e\u4e00\u5f20\u56fe&#xff0c;\u6709\u4eba\u5c31\u4f1a\u8bf4&#xff0c;\u65e2\u7136\u7f16\u8bd1\u5668\u90fd\u4f18\u5316\u4e86&#xff0c;\u6700\u540e\u53ea\u5269\u6784\u9020&#xff0c;\u90a3\u8fd8\u8981\u79fb\u52a8\u6784\u9020\u5e72\u4ec0\u4e48&#xff1f;<\/p>\n<p>1.\u4e0d\u540c\u7f16\u8bd1\u5668\u5bf9\u4f18\u5316\u4e5f\u4e0d\u7edf\u4e00&#xff0c;\u6709\u4e9b\u7f16\u8bd1\u5668\u4f18\u5316&#xff0c;\u6709\u4e9b\u7f16\u8bd1\u5668\u4e0d\u4f18\u5316&#xff0c;\u6240\u4ee5\u8fd8\u662f\u6709\u5fc5\u8981\u7528\u5230\u79fb\u52a8\u6784\u9020\u7684<\/p>\n<p>2.\u4e0b\u9762\u7684\u79fb\u52a8\u8d4b\u503c\u53ef\u4ee5\u4f53\u73b0\u51fa\u53f3\u503c\u5f15\u7528\u7684\u4ef7\u503c<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"325\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001032148-6abdd1cc21860.png\" width=\"1124\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1232\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001032148-6abdd1cc4c557.png\" width=\"1721\" \/><\/p>\n<p>\u6ce8&#xff1a;<\/p>\n<p>\u8fd9\u91cc\u6211\u4eec\u53ef\u4ee5\u770b\u51fa\u867d\u7136\u7f16\u8bd1\u5668\u6709\u4f18\u5316&#xff0c;\u4f46\u662f\u8fd8\u662f\u4f1a\u6709\u62f7\u8d1d\u8d4b\u503c\u8fd9\u79cd\u60c5\u51b5&#xff0c;\u6211\u4eec\u6765\u770b\u4e00\u4e0b\u6709\u79fb\u52a8\u8d4b\u503c\u7684\u60c5\u51b5<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"316\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001032149-6abdd1cd26ec9.png\" width=\"1108\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1290\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001032149-6abdd1cd519b4.png\" width=\"1550\" \/><\/p>\n<p>\u867d\u7136\u8fd9\u91cc\u6700\u540e\u4e5f\u6709\u79fb\u52a8\u8d4b\u503c&#xff0c;\u4f46\u662f\u76f8\u6bd4\u8f83\u4e8e\u62f7\u8d1d\u8d4b\u503c&#xff0c;\u79fb\u52a8\u8d4b\u503c\u4e0d\u6d88\u8017\u8d44\u6e90&#xff0c;\u6240\u4ee5\u8fd8\u662f\u6709\u4ef7\u503c\u7684<\/p>\n<p><span style=\"color:#fe2c24\">\u6df1\u62f7\u8d1d\u7684\u81ea\u5b9a\u4e49\u7c7b\u578b&#xff1a;\u5982 vector\/string\/map&#8230;. \u5b9e\u73b0\u79fb\u52a8\u6784\u9020\u548c\u79fb\u52a8\u8d4b\u503c\u662f\u6709\u5f88\u5927\u7684\u4ef7\u503c\u7684<\/span><\/p>\n<p><span style=\"color:#fe2c24\">\u6d45\u62f7\u8d1d\u7684\u81ea\u5b9a\u4e49\u7c7b\u578b&#xff1a;\u5982 Date\/pair&lt;int, int&gt;&#8230;.\u4e0d\u9700\u8981\u5b9e\u73b0\u79fb\u52a8\u6784\u9020\u548c\u79fb\u52a8\u8d4b\u503c\u3002<\/span><\/p>\n<h2 id=\"%E4%BA%8C.%E7%B1%BB%E5%9E%8B%E5%88%86%E7%B1%BB%EF%BC%88%E4%BA%86%E8%A7%A3%EF%BC%89\">\u4e8c.\u7c7b\u578b\u5206\u7c7b&#xff08;\u4e86\u89e3&#xff09;<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"801\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001032150-6abdd1ce51eb3.png\" width=\"1093\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1671\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001032150-6abdd1ceb157d.png\" width=\"1127\" \/><\/p>\n<h2 id=\"%E4%B8%89.%E5%BC%95%E7%94%A8%E6%8A%98%E5%8F%A0\">\u4e09.\u5f15\u7528\u6298\u53e0<\/h2>\n<p>\u51fa\u73b0\u573a\u666f&#xff1a;<\/p>\n<p>\u53ea\u6709\u6a21\u677f \/ \u4e07\u80fd\u5f15\u7528&#xff08;T&amp;&amp;&#xff09;\u63a8\u5bfc\u7684\u65f6\u5019\u624d\u4f1a\u53d1\u751f\u5f15\u7528\u6298\u53e0&#xff01; \u666e\u901a\u4ee3\u7801\u624b\u52a8\u5199 int&amp; &amp;&amp; \u76f4\u63a5\u7f16\u8bd1\u62a5\u9519&#xff0c;\u4e0d\u5b58\u5728\u6298\u53e0\u3002<\/p>\n<p>\u5f53\u7c7b\u578b\u63a8\u5bfc\u4ea7\u751f\u5f15\u7528\u53e0\u52a0\u65f6&#xff0c;\u9075\u5faa&#xff1a;<\/p>\n<p>\u53ea\u8981\u5b58\u5728\u5de6\u503c\u5f15\u7528 &amp;&#xff0c;\u7ed3\u679c\u6700\u7ec8\u5c31\u662f\u5de6\u503c\u5f15\u7528 &amp;&#xff1b; \u53ea\u6709\u4e24\u4e2a\u90fd\u662f\u53f3\u503c\u5f15\u7528 &amp;&amp;&#xff0c;\u7ed3\u679c\u624d\u662f\u53f3\u503c\u5f15\u7528 &amp;&amp;<\/p>\n<li>T&amp; &amp; \u2192 T&amp;<\/li>\n<li>T&amp; &amp;&amp; \u2192 T&amp;<\/li>\n<li>T&amp;&amp; &amp; \u2192 T&amp;<\/li>\n<li>T&amp;&amp; &amp;&amp;\u2192 T&amp;&amp;<\/li>\n<p>\u53e3\u8bc0&#xff1a;\u5de6\u503c\u5f15\u7528\u4f20\u67d3&#xff0c;\u9047 &amp; \u5f97 &amp;&#xff1b;\u5168 &amp;&amp; \u624d\u662f &amp;&amp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"2509\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001032151-6abdd1cf830d6.png\" width=\"981\" \/><\/p>\n<p><span style=\"color:#fe2c24\">\u4e07\u80fd\u6a21\u677f&#xff1a;<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"571\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001032152-6abdd1d09b977.png\" width=\"1514\" \/><\/p>\n<p>template&lt;class T&gt;<br \/>\nvoid Function(T&amp;&amp; t)<br \/>\n{<br \/>\n    int a &#061; 0;<br \/>\n    T x &#061; a;<br \/>\n    \/\/x&#043;&#043;; \/\/ \u90e8\u5206\u573a\u666f\u4e0bT\u5e26const&#xff0c;\u6253\u5f00\u4f1a\u62a5\u9519<br \/>\n}<br \/>\nint main()<br \/>\n{<br \/>\n    \/\/ \u573a\u666f1&#xff1a;\u4f20\u5165\u53f3\u503c 10<br \/>\n    Function(10);<br \/>\n    \/\/ 10\u662f\u7eaf\u53f3\u503c \u2192 T\u63a8\u5bfc\u4e3a int<br \/>\n    \/\/ T&amp;&amp; &#061; int&amp;&amp; \u2192 \u5b9e\u4f8b\u5316&#xff1a;void Function(int&amp;&amp; t)<\/p>\n<p>    \/\/ \u573a\u666f2&#xff1a;\u4f20\u5165\u666e\u901a\u5de6\u503c\u53d8\u91cf a<br \/>\n    int a;<br \/>\n    Function(a);<br \/>\n    \/\/ a\u662f\u5de6\u503c \u2192 T\u63a8\u5bfc\u4e3a int&amp;<br \/>\n    \/\/ T&amp;&amp; &#061; int&amp; &amp;&amp; \u2192\u3010\u5f15\u7528\u6298\u53e0\u3011\u2192 int&amp;<br \/>\n    \/\/ \u5b9e\u4f8b\u5316&#xff1a;void Function(int&amp; t)<\/p>\n<p>    \/\/ \u573a\u666f3&#xff1a;std::move(a) \u4ea1\u503c&#xff08;\u53f3\u503c&#xff09;<br \/>\n    Function(std::move(a));<br \/>\n    \/\/ move(a)\u662f\u53f3\u503c \u2192 T\u63a8\u5bfc\u4e3a int<br \/>\n    \/\/ T&amp;&amp; &#061; int&amp;&amp; \u2192 void Function(int&amp;&amp; t)<\/p>\n<p>    \/\/ \u573a\u666f4&#xff1a;const\u5de6\u503c const int b<br \/>\n    const int b &#061; 8;<br \/>\n    Function(b);<br \/>\n    \/\/ const\u5de6\u503c \u2192 T\u63a8\u5bfc\u4e3a const int&amp;<br \/>\n    \/\/ T&amp;&amp; &#061; const int&amp; &amp;&amp; \u2192 \u6298\u53e0 \u2192 const int&amp;<br \/>\n    \/\/ \u5b9e\u4f8b\u5316 void Function(const int&amp; t)<br \/>\n    \/\/ T &#061; const int&amp;&#xff0c;\u6240\u4ee5 T x &#061; a; \u5f97\u5230 const int&amp; x&#xff1b;x\u4e0d\u53ef\u4fee\u6539&#xff0c;x&#043;&#043;\u7f16\u8bd1\u62a5\u9519<\/p>\n<p>    \/\/ \u573a\u666f5&#xff1a;std::move(b) const\u53f3\u503c<br \/>\n    Function(std::move(b));<br \/>\n    \/\/ move(const\u53d8\u91cf) \u662fconst\u53f3\u503c<br \/>\n    \/\/ T\u63a8\u5bfc\u4e3a const int<br \/>\n    \/\/ T&amp;&amp; &#061; const int&amp;&amp;<br \/>\n    \/\/ T &#061; const int&#xff0c;T x &#061; a \u2192 const int x&#xff1b;\u4f9d\u7136\u4e0d\u80fdx&#043;&#043;<br \/>\n    return 0;<br \/>\n}<\/p>\n<p>\u4e07\u80fd\u5f15\u7528\u63a8\u5bfc\u89c4\u5f8b&#xff08;\u80cc\u8bf5&#xff09;<\/p>\n<p>\u8c03\u7528 Function(arg)<\/p>\n<li>arg \u662f\u975e const \u5de6\u503c \u2192 T &#061; \u7c7b\u578b&amp; \u2192 \u6298\u53e0 \u2192 \u53c2\u6570 \u7c7b\u578b&amp;&#xff08;\u5de6\u503c\u5f15\u7528&#xff09;<\/li>\n<li>arg \u662f const \u5de6\u503c \u2192 T &#061; const \u7c7b\u578b&amp; \u2192 \u6298\u53e0 \u2192 \u53c2\u6570 const \u7c7b\u578b&amp;<\/li>\n<li>arg \u662f\u53f3\u503c&#xff08;\u7eaf\u53f3\u503c \/std::move \u4ea1\u503c&#xff09; \u2192 T &#061; \u7c7b\u578b \u2192 \u53c2\u6570 \u7c7b\u578b&amp;&amp;<\/li>\n<li>arg \u662f const \u53f3\u503c \u2192 T &#061; const \u7c7b\u578b \u2192 \u53c2\u6570 const \u7c7b\u578b&amp;&amp;<\/li>\n<p><span style=\"color:#fe2c24\">\u4f20\u5de6\u503c&#xff0c;T \u63a8\u5bfc\u6210\u5f15\u7528\u7c7b\u578b&#xff1b;\u4f20\u53f3\u503c&#xff0c;T \u63a8\u5bfc\u6210\u666e\u901a\u503c\u7c7b\u578b\u3002<\/span><\/p>\n<h2 id=\"%E5%9B%9B.%E5%AE%8C%E7%BE%8E%E8%BD%AC%E5%8F%91\">\u56db.\u5b8c\u7f8e\u8f6c\u53d1<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1574\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001032152-6abdd1d0d613d.png\" width=\"1367\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u5f55 \u4e00.\u53f3\u503c\u5f15\u7528\u7684\u4f5c\u7528<br \/>\n1.1\u4e3a\u4ec0\u4e48\u8981\u5f15\u5165\u53f3\u503c\u5f15\u7528&#xff1f;<br \/>\n\u4e8c.\u7c7b\u578b\u5206\u7c7b&#xff08;\u4e86\u89e3&#xff09;<br \/>\n\u4e09.\u5f15\u7528\u6298\u53e0<br \/>\n\u56db.\u5b8c\u7f8e\u8f6c\u53d1 \u4e00.\u53f3\u503c\u5f15\u7528\u7684\u4f5c\u7528<br \/>\n\u56de\u987e\u5de6\u503c\u5f15\u7528\u7684\u4f5c\u7528&#xff1a;<br \/>\n\u5145\u5f53\u522b\u540d&#xff0c;\u907f\u514d\u62f7\u8d1d&#xff0c;\u76f4\u63a5\u7ed1\u5b9a\u5de6\u503c&#xff0c;\u64cd\u4f5c\u540c\u4e00\u5757\u5185\u5b58&#xff1b;\u5141\u8bb8\u4fee\u6539\u539f\u59cb\u5bf9\u8c61&#xff1b;\u51fd\u6570\u53ef\u4ee5\u5411\u5916\u5e26\u51fa\u4fee\u6539\u7ed3\u679c&#xff08;\u8f93\u51fa\u578b\u53c2\u6570&#xff09;&#xff1b;\u4f5c\u4e3a\u8fd4\u56de\u503c&#xff0c;\u4f7f\u8868\u8fbe\u5f0f\u6210\u4e3a\u5de6\u503c&amp;<\/p>\n","protected":false},"author":2,"featured_media":111529,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"topic":[],"class_list":["post-111544","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>C++11 \uff1a\u53f3\u503c\u5f15\u7528\u7684\u4f5c\u7528\uff0c\u5f15\u7528\u6298\u53e0\u548c\u5b8c\u7f8e\u8f6c\u53d1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/111544.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"C++11 \uff1a\u53f3\u503c\u5f15\u7528\u7684\u4f5c\u7528\uff0c\u5f15\u7528\u6298\u53e0\u548c\u5b8c\u7f8e\u8f6c\u53d1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u76ee\u5f55 \u4e00.\u53f3\u503c\u5f15\u7528\u7684\u4f5c\u7528 1.1\u4e3a\u4ec0\u4e48\u8981\u5f15\u5165\u53f3\u503c\u5f15\u7528&#xff1f; \u4e8c.\u7c7b\u578b\u5206\u7c7b&#xff08;\u4e86\u89e3&#xff09; \u4e09.\u5f15\u7528\u6298\u53e0 \u56db.\u5b8c\u7f8e\u8f6c\u53d1 \u4e00.\u53f3\u503c\u5f15\u7528\u7684\u4f5c\u7528 \u56de\u987e\u5de6\u503c\u5f15\u7528\u7684\u4f5c\u7528&#xff1a; \u5145\u5f53\u522b\u540d&#xff0c;\u907f\u514d\u62f7\u8d1d&#xff0c;\u76f4\u63a5\u7ed1\u5b9a\u5de6\u503c&#xff0c;\u64cd\u4f5c\u540c\u4e00\u5757\u5185\u5b58&#xff1b;\u5141\u8bb8\u4fee\u6539\u539f\u59cb\u5bf9\u8c61&#xff1b;\u51fd\u6570\u53ef\u4ee5\u5411\u5916\u5e26\u51fa\u4fee\u6539\u7ed3\u679c&#xff08;\u8f93\u51fa\u578b\u53c2\u6570&#xff09;&#xff1b;\u4f5c\u4e3a\u8fd4\u56de\u503c&#xff0c;\u4f7f\u8868\u8fbe\u5f0f\u6210\u4e3a\u5de6\u503c&amp;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/111544.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-01T03:21:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001032144-6abdd1c8c10b6.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/111544.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/111544.html\",\"name\":\"C++11 \uff1a\u53f3\u503c\u5f15\u7528\u7684\u4f5c\u7528\uff0c\u5f15\u7528\u6298\u53e0\u548c\u5b8c\u7f8e\u8f6c\u53d1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-01T03:21:54+00:00\",\"dateModified\":\"2026-10-01T03:21:54+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/111544.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/111544.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/111544.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"C++11 \uff1a\u53f3\u503c\u5f15\u7528\u7684\u4f5c\u7528\uff0c\u5f15\u7528\u6298\u53e0\u548c\u5b8c\u7f8e\u8f6c\u53d1\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"C++11 \uff1a\u53f3\u503c\u5f15\u7528\u7684\u4f5c\u7528\uff0c\u5f15\u7528\u6298\u53e0\u548c\u5b8c\u7f8e\u8f6c\u53d1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/111544.html","og_locale":"zh_CN","og_type":"article","og_title":"C++11 \uff1a\u53f3\u503c\u5f15\u7528\u7684\u4f5c\u7528\uff0c\u5f15\u7528\u6298\u53e0\u548c\u5b8c\u7f8e\u8f6c\u53d1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u76ee\u5f55 \u4e00.\u53f3\u503c\u5f15\u7528\u7684\u4f5c\u7528 1.1\u4e3a\u4ec0\u4e48\u8981\u5f15\u5165\u53f3\u503c\u5f15\u7528&#xff1f; \u4e8c.\u7c7b\u578b\u5206\u7c7b&#xff08;\u4e86\u89e3&#xff09; \u4e09.\u5f15\u7528\u6298\u53e0 \u56db.\u5b8c\u7f8e\u8f6c\u53d1 \u4e00.\u53f3\u503c\u5f15\u7528\u7684\u4f5c\u7528 \u56de\u987e\u5de6\u503c\u5f15\u7528\u7684\u4f5c\u7528&#xff1a; \u5145\u5f53\u522b\u540d&#xff0c;\u907f\u514d\u62f7\u8d1d&#xff0c;\u76f4\u63a5\u7ed1\u5b9a\u5de6\u503c&#xff0c;\u64cd\u4f5c\u540c\u4e00\u5757\u5185\u5b58&#xff1b;\u5141\u8bb8\u4fee\u6539\u539f\u59cb\u5bf9\u8c61&#xff1b;\u51fd\u6570\u53ef\u4ee5\u5411\u5916\u5e26\u51fa\u4fee\u6539\u7ed3\u679c&#xff08;\u8f93\u51fa\u578b\u53c2\u6570&#xff09;&#xff1b;\u4f5c\u4e3a\u8fd4\u56de\u503c&#xff0c;\u4f7f\u8868\u8fbe\u5f0f\u6210\u4e3a\u5de6\u503c&amp;","og_url":"https:\/\/www.wsisp.com\/helps\/111544.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-01T03:21:54+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001032144-6abdd1c8c10b6.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/111544.html","url":"https:\/\/www.wsisp.com\/helps\/111544.html","name":"C++11 \uff1a\u53f3\u503c\u5f15\u7528\u7684\u4f5c\u7528\uff0c\u5f15\u7528\u6298\u53e0\u548c\u5b8c\u7f8e\u8f6c\u53d1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-01T03:21:54+00:00","dateModified":"2026-10-01T03:21:54+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/111544.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/111544.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/111544.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"C++11 \uff1a\u53f3\u503c\u5f15\u7528\u7684\u4f5c\u7528\uff0c\u5f15\u7528\u6298\u53e0\u548c\u5b8c\u7f8e\u8f6c\u53d1"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/111544","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=111544"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/111544\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/111529"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=111544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=111544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=111544"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=111544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}