{"id":215,"date":"2012-10-27T08:02:00","date_gmt":"2012-10-27T00:02:00","guid":{"rendered":"http:\/\/nike0good.jp1.rpvhost.net\/120"},"modified":"2012-10-27T08:02:00","modified_gmt":"2012-10-27T00:02:00","slug":"operator_overloading","status":"publish","type":"post","link":"https:\/\/nike0good.com\/?p=215","title":{"rendered":"\u8fd0\u7b97\u7b26\u91cd\u8f7d"},"content":{"rendered":"<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n\u4ec0\u4e48\u662f\u8fd0\u7b97\u7b26\u7684\u91cd\u8f7d?<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u8fd0\u7b97\u7b26\u4e0e\u7c7b\u7ed3\u5408\uff0c\u4ea7\u751f\u65b0\u7684\u542b\u4e49\u3002&nbsp;<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n\u4e3a\u4ec0\u4e48\u8981\u5f15\u5165\u8fd0\u7b97\u7b26\u91cd\u8f7d\uff1f<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u4f5c\u7528\uff1a\u4e3a\u4e86\u5b9e\u73b0\u7c7b\u7684\u591a\u6001\u6027(\u591a\u6001\u662f\u6307\u4e00\u4e2a\u51fd\u6570\u540d\u6709\u591a\u79cd\u542b\u4e49)<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n\u600e\u4e48\u5b9e\u73b0\u8fd0\u7b97\u7b26\u7684\u91cd\u8f7d\uff1f<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n\u65b9\u5f0f\uff1a\u7c7b\u7684\u6210\u5458\u51fd\u6570 \u6216 \u53cb\u5143\u51fd\u6570\uff08\u7c7b\u5916\u7684\u666e\u901a\u51fd\u6570\uff09<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n\u89c4\u5219\uff1a\u4e0d\u80fd\u91cd\u8f7d\u7684\u8fd0\u7b97\u7b26\u6709 . &nbsp;\u548c .* \u548c ?: \u548c ::&nbsp; \u548c sizeof<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n\u53cb\u5143\u51fd\u6570\u548c\u6210\u5458\u51fd\u6570\u7684\u4f7f\u7528\u573a\u5408\uff1a\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u5efa\u8bae\u4e00\u5143\u8fd0\u7b97\u7b26\u4f7f\u7528\u6210\u5458\u51fd\u6570\uff0c\u4e8c\u5143\u8fd0\u7b97\u7b26\u4f7f\u7528\u53cb\u5143\u51fd\u6570<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1\u3001\u8fd0\u7b97\u7b26\u7684\u64cd\u4f5c\u9700\u8981\u4fee\u6539\u7c7b\u5bf9\u8c61\u7684\u72b6\u6001\uff0c\u5219\u4f7f\u7528\u6210\u5458\u51fd\u6570\u3002\u5982\u9700\u8981\u505a\u5de6&#20540;\u64cd\u4f5c\u6570\u7684\u8fd0\u7b97\u7b26\uff08\u5982=\uff0c&#43;=\uff0c&#43;&#43;\uff09<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2\u3001\u8fd0\u7b97\u65f6\uff0c\u6709\u6570\u548c\u5bf9\u8c61\u7684\u6df7\u5408\u8fd0\u7b97\u65f6\uff0c\u5fc5\u987b\u4f7f\u7528\u53cb\u5143<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3\u3001\u4e8c\u5143\u8fd0\u7b97\u7b26\u4e2d\uff0c\u7b2c\u4e00\u4e2a\u64cd\u4f5c\u6570\u4e3a\u975e\u5bf9\u8c61\u65f6\uff0c\u5fc5\u987b\u4f7f\u7528\u53cb\u5143\u51fd\u6570\u3002\u5982\u8f93\u5165\u8f93\u51fa\u8fd0\u7b97\u7b26&lt;&lt;\u548c&gt;&gt;<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n\u5177\u4f53\u89c4\u5219\u5982\u4e0b\uff1a<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n<table cellspacing=\"0\" cellpadding=\"0\" width=\"573\" border=\"1\" style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px; text-align:left\">\n<tbody>\n<tr>\n<td valign=\"top\">\n<p align=\"left\">\u8fd0\u7b97\u7b26<\/p>\n<\/td>\n<td valign=\"top\">\n<p align=\"left\">\u5efa\u8bae\u4f7f\u7528<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">\n<p align=\"left\">\u6240\u6709\u4e00\u5143\u8fd0\u7b97\u7b26<\/p>\n<\/td>\n<td valign=\"top\">\n<p align=\"left\">\u6210\u5458\u51fd\u6570<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">\n<p align=\"left\">\uff1d ( ) [ ]&nbsp; -&gt;<\/p>\n<\/td>\n<td valign=\"top\">\n<p align=\"left\">\u5fc5\u987b\u662f\u6210\u5458\u51fd\u6570<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">\n<p align=\"left\">&#43;= -= \/= *= ^= &amp;= != %= &gt;&gt;= &lt;&lt;= , &#20284;\u4e4e\u5e26\u7b49\u53f7\u7684\u90fd\u5728\u8fd9\u91cc\u4e86.<\/p>\n<\/td>\n<td valign=\"top\">\n<p align=\"left\">\u6210\u5458\u51fd\u6570<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">\n<p align=\"left\">\u6240\u6709\u5176\u5b83\u4e8c\u5143\u8fd0\u7b97\u7b26, \u4f8b\u5982: \u2013,&#43;,*,\/<\/p>\n<\/td>\n<td valign=\"top\">\n<p align=\"left\">\u53cb\u5143\u51fd\u6570<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">\n<p align=\"left\">&lt;&lt; &gt;&gt;<\/p>\n<\/td>\n<td valign=\"top\">\n<p align=\"left\">\u5fc5\u987b\u662f\u53cb\u5143\u51fd\u6570<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n<strong><span style=\"color:rgb(128,0,0)\">2. \u53c2\u6570\u548c\u8fd4\u56de&#20540;<\/span><\/strong><\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp; \u5f53\u53c2\u6570\u4e0d\u4f1a\u88ab\u6539\u53d8\uff0c\u4e00\u822c\u6309const\u5f15\u7528\u6765\u4f20\u9012(\u82e5\u662f\u4f7f\u7528\u6210\u5458\u51fd\u6570\u91cd\u8f7d\uff0c\u51fd\u6570\u4e5f\u4e3aconst).<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp; \u5bf9\u4e8e\u8fd4\u56de\u6570&#20540;\u7684\u51b3\u5b9a:<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp; 1) \u5982\u679c\u8fd4\u56de&#20540;\u53ef\u80fd\u51fa\u73b0\u5728=\u53f7\u5de6\u8fb9, \u5219\u53ea\u80fd\u4f5c\u4e3a\u5de6&#20540;, \u8fd4\u56de\u975econst\u5f15\u7528\u3002<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp; 2) \u5982\u679c\u8fd4\u56de&#20540;\u53ea\u80fd\u51fa\u73b0\u5728=\u53f7\u53f3\u8fb9, \u5219\u53ea\u9700\u4f5c\u4e3a\u53f3&#20540;, \u8fd4\u56deconst\u578b\u5f15\u7528\u6216\u8005const\u578b&#20540;\u3002<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp; 3) \u5982\u679c\u8fd4\u56de&#20540;\u65e2\u53ef\u80fd\u51fa\u73b0\u5728=\u53f7\u5de6\u8fb9\u6216\u8005\u53f3\u8fb9, \u5219\u5176\u8fd4\u56de&#20540;\u987b\u4f5c\u4e3a\u5de6&#20540;, \u8fd4\u56de\u975econst\u5f15\u7528\u3002<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n\u8fd0\u7b97\u7b26\u91cd\u8f7d\u4e3e\u4f8b\uff1a<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n<span style=\"color:rgb(204,0,0)\">&#43;\u548c -\u8fd0\u7b97\u7b26\u7684\u91cd\u8f7d\uff1a<\/span><\/p>\n<div class=\"dp-highlighter bg_cpp\" style=\"font-family:Consolas,'Courier New',Courier,mono,serif; width:687.0499877929688px; overflow:auto; padding-top:1px; margin:18px 0px!important; color:rgb(51,51,51); line-height:26px\">\n<div class=\"bar\" style=\"padding-left:45px\">\n<div class=\"tools\" style=\"padding:3px 8px 10px 10px; font-size:9px; line-height:normal; font-family:Verdana,Geneva,Arial,Helvetica,sans-serif; color:silver; border-left-width:3px; border-left-style:solid; border-left-color:rgb(108,226,108)\">\n<strong>[cpp]<\/strong>&nbsp;<a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"ViewSource\" title=\"view plain\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">view<br \/>\n plain<\/a><a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"CopyToClipboard\" title=\"copy\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">copy<\/a><a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"PrintSource\" title=\"print\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">print<\/a><a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"About\" title=\"?\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">?<\/a><\/p>\n<div style=\"position:absolute; left:488px; top:1548px; width:29px; height:14px; z-index:99\">\n<\/div>\n<\/div>\n<\/div>\n<ol start=\"1\" class=\"dp-cpp\" style=\"margin:0px 0px 1px 45px!important; padding:0px; border:none; position:relative; list-style-position:initial; color:rgb(92,92,92)\">\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\"><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">class<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;Point&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">{&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\"><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">private<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">:&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"datatypes\" style=\"margin:0px; padding:0px; border:none; color:rgb(46,139,87); background-color:inherit; font-weight:bold\">int<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;x;&nbsp;&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\"><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">public<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">:&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;Point(<span class=\"datatypes\" style=\"margin:0px; padding:0px; border:none; color:rgb(46,139,87); background-color:inherit; font-weight:bold\">int<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;x1)&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;x=x1;}&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;Point(Point&amp;&nbsp;p)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;x=p.x;}&nbsp;&nbsp;<\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">const<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;Point&nbsp;operator&#43;(<\/span><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">const<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;Point&amp;&nbsp;p);<\/span><span class=\"comment\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,130,0); background-color:inherit\">\/\/\u4f7f\u7528\u6210\u5458\u51fd\u6570\u91cd\u8f7d\u52a0\u53f7\u8fd0\u7b97\u7b26<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">friend<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;<\/span><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">const<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;Point&nbsp;operator-(<\/span><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">const<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;Point&amp;&nbsp;p1,<\/span><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">const<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;Point&amp;&nbsp;p2);<\/span><span class=\"comment\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,130,0); background-color:inherit\">\/\/\u4f7f\u7528\u53cb\u5143\u51fd\u6570\u91cd\u8f7d\u51cf\u53f7\u8fd0\u7b97\u7b26<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">};&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;<\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\"><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">const<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;Point&nbsp;Point::operator&#43;(<\/span><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">const<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;Point&amp;&nbsp;p)&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">{&nbsp;&nbsp;<\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">return<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;Point(x&#43;p.x);&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">}&nbsp;&nbsp;<\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">Point&nbsp;<span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">const<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;operator-(<\/span><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">const<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;Point&amp;&nbsp;p1,<\/span><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">const<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;Point&amp;&nbsp;p2)&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">{&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">return<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;Point(p1.x-p2.x);&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">}&nbsp;&nbsp;<\/span><\/li>\n<\/ol>\n<\/div>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n\u8c03\u7528:<\/p>\n<div class=\"dp-highlighter bg_cpp\" style=\"font-family:Consolas,'Courier New',Courier,mono,serif; width:687.0499877929688px; overflow:auto; padding-top:1px; margin:18px 0px!important; color:rgb(51,51,51); line-height:26px\">\n<div class=\"bar\" style=\"padding-left:45px\">\n<div class=\"tools\" style=\"padding:3px 8px 10px 10px; font-size:9px; line-height:normal; font-family:Verdana,Geneva,Arial,Helvetica,sans-serif; color:silver; border-left-width:3px; border-left-style:solid; border-left-color:rgb(108,226,108)\">\n<strong>[cpp]<\/strong>&nbsp;<a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"ViewSource\" title=\"view plain\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">view<br \/>\n plain<\/a><a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"CopyToClipboard\" title=\"copy\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">copy<\/a><a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"PrintSource\" title=\"print\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">print<\/a><a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"About\" title=\"?\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">?<\/a><\/p>\n<div style=\"position:absolute; left:488px; top:2053px; width:29px; height:14px; z-index:99\">\n<\/div>\n<\/div>\n<\/div>\n<ol start=\"1\" class=\"dp-cpp\" style=\"margin:0px 0px 1px 45px!important; padding:0px; border:none; position:relative; list-style-position:initial; color:rgb(92,92,92)\">\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">Point&nbsp;a(1);&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">Point&nbsp;b(2);&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">a&#43;b;&nbsp;&nbsp;<span class=\"comment\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,130,0); background-color:inherit\">\/\/\u6b63\u786e\uff0c\u8c03\u7528\u6210\u5458\u51fd\u6570<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">a-b;&nbsp;&nbsp;<span class=\"comment\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,130,0); background-color:inherit\">\/\/\u6b63\u786e\uff0c\u8c03\u7528\u53cb\u5143\u51fd\u6570<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">a&#43;1;&nbsp;&nbsp;<span class=\"comment\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,130,0); background-color:inherit\">\/\/\u6b63\u786e\uff0c\u5148\u8c03\u7528\u7c7b\u578b\u8f6c\u6362\u51fd\u6570\uff0c\u628a1\u53d8\u6210\u5bf9\u8c61\uff0c\u4e4b\u540e\u8c03\u7528\u6210\u5458\u51fd\u6570<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">a-1;&nbsp;&nbsp;<span class=\"comment\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,130,0); background-color:inherit\">\/\/\u6b63\u786e\uff0c\u5148\u8c03\u7528\u7c7b\u578b\u8f6c\u6362\u51fd\u6570\uff0c\u628a1\u53d8\u6210\u5bf9\u8c61\uff0c\u4e4b\u540e\u8c03\u7528\u53cb\u5143\u51fd\u6570<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">1&#43;a;&nbsp;&nbsp;<span class=\"comment\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,130,0); background-color:inherit\">\/\/\u9519\u8bef\uff0c\u8c03\u7528\u6210\u5458\u51fd\u6570\u65f6\uff0c\u7b2c\u4e00\u4e2a\u64cd\u4f5c\u6570\u5fc5\u987b\u662f\u5bf9\u8c61\uff0c\u56e0\u4e3a\u7b2c\u4e00\u4e2a\u64cd\u4f5c\u6570\u8fd8\u6709\u8c03\u7528\u6210\u5458\u51fd\u6570\u7684\u529f\u80fd<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">1-a;&nbsp;&nbsp;<span class=\"comment\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,130,0); background-color:inherit\">\/\/\u6b63\u786e\uff0c\u5148\u7c7b\u578b\u8f6c\u6362&nbsp;\u540e\u8c03\u7528\u53cb\u5143\u51fd\u6570<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;&nbsp;<\/span><\/span><\/li>\n<\/ol>\n<\/div>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n\u603b\u7ed3\uff1a<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n1\u3001\u7531\u4e8e&#43; -\u90fd\u662f\u51fa\u73b0\u5728=\u53f7\u7684\u53f3\u8fb9\uff0c\u5982c=a&#43;b\uff0c\u5373\u4f1a\u8fd4\u56de\u4e00\u4e2a\u53f3&#20540;\uff0c\u53ef\u4ee5\u8fd4\u56deconst\u578b&#20540;<br \/>\n2\u3001\u540e\u51e0\u4e2a\u8868\u8fbe\u5f0f\u8ba8\u8bba\u7684\u5c31\u662f\uff0c\u6570\u548c\u5bf9\u8c61\u6df7\u5408\u8fd0\u7b97\u7b26\u7684\u60c5\u51b5\uff0c\u4e00\u822c\u51fa\u73b0\u8fd9\u79cd\u60c5\u51b5\uff0c\u5e38\u4f7f\u7528\u53cb\u5143\u51fd\u6570<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n3\u3001<span style=\"color:rgb(204,0,0)\">\u53cc\u76ee\u8fd0\u7b97\u7b26\u7684\u91cd\u8f7d\uff1a<\/span><\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u91cd\u8f7d\u8fd0\u7b97\u7b26\u51fd\u6570\u540d\uff1aoperator@(\u53c2\u6570\u8868)<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u9690\u5f0f\u8c03\u7528\u5f62\u5f0f\uff1aobj1&#43;obj2<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u663e\u5f0f\u8c03\u7528\u5f62\u5f0f\uff1aobj1.operator&#43;(OBJ obj2)---\u6210\u5458\u51fd\u6570<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; operator&#43;(OBJ obj1\uff0cOBJ obj2)---\u53cb\u5143\u51fd\u6570<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u6267\u884c\u65f6\uff0c\u9690\u5f0f\u8c03\u7528\u5f62\u5f0f\u548c\u663e\u5f0f\u8c03\u7528\u5f62\u5f0f\u90fd\u4f1a\u8c03\u7528\u51fd\u6570operator&#43;()<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n<span style=\"color:rgb(204,0,0)\">&#43;&#43;\u548c--\u8fd0\u7b97\u7b26\u7684\u91cd\u8f7d\uff1a<\/span><\/p>\n<div class=\"dp-highlighter bg_cpp\" style=\"font-family:Consolas,'Courier New',Courier,mono,serif; width:687.0499877929688px; overflow:auto; padding-top:1px; margin:18px 0px!important; color:rgb(51,51,51); line-height:26px\">\n<div class=\"bar\" style=\"padding-left:45px\">\n<div class=\"tools\" style=\"padding:3px 8px 10px 10px; font-size:9px; line-height:normal; font-family:Verdana,Geneva,Arial,Helvetica,sans-serif; color:silver; border-left-width:3px; border-left-style:solid; border-left-color:rgb(108,226,108)\">\n<strong>[cpp]<\/strong>&nbsp;<a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"ViewSource\" title=\"view plain\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">view<br \/>\n plain<\/a><a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"CopyToClipboard\" title=\"copy\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">copy<\/a><a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"PrintSource\" title=\"print\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">print<\/a><a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"About\" title=\"?\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">?<\/a><\/p>\n<div style=\"position:absolute; left:488px; top:2634px; width:29px; height:14px; z-index:99\">\n<\/div>\n<\/div>\n<\/div>\n<ol start=\"1\" class=\"dp-cpp\" style=\"margin:0px 0px 1px 45px!important; padding:0px; border:none; position:relative; list-style-position:initial; color:rgb(92,92,92)\">\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\"><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">class<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;Point&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">{&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\"><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">private<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">:&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"datatypes\" style=\"margin:0px; padding:0px; border:none; color:rgb(46,139,87); background-color:inherit; font-weight:bold\">int<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;x;&nbsp;&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\"><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">public<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">:&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;Point(<span class=\"datatypes\" style=\"margin:0px; padding:0px; border:none; color:rgb(46,139,87); background-color:inherit; font-weight:bold\">int<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;x1)&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;x=x1;}&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;Point&nbsp;operator&#43;&#43;();<span class=\"comment\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,130,0); background-color:inherit\">\/\/\u6210\u5458\u51fd\u6570\u5b9a\u4e49\u81ea\u589e<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">const<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;Point&nbsp;operator&#43;&#43;(<\/span><span class=\"datatypes\" style=\"margin:0px; padding:0px; border:none; color:rgb(46,139,87); background-color:inherit; font-weight:bold\">int<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;x);&nbsp;<\/span><span class=\"comment\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,130,0); background-color:inherit\">\/\/\u540e\u7f00\u53ef\u4ee5\u8fd4\u56de\u4e00\u4e2aconst\u7c7b\u578b\u7684&#20540;<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">friend<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;Point&nbsp;operator--(Point&amp;&nbsp;p);<\/span><span class=\"comment\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,130,0); background-color:inherit\">\/\/\u53cb\u5143\u51fd\u6570\u5b9a\u4e49--<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">friend<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;<\/span><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">const<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;Point&nbsp;operator--(Point&amp;&nbsp;p,<\/span><span class=\"datatypes\" style=\"margin:0px; padding:0px; border:none; color:rgb(46,139,87); background-color:inherit; font-weight:bold\">int<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;x);<\/span><span class=\"comment\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,130,0); background-color:inherit\">\/\/\u540e\u7f00\u53ef\u4ee5\u8fd4\u56de\u4e00\u4e2aconst\u7c7b\u578b\u7684&#20540;<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">};&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;<\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">Point&nbsp;Point::operator&#43;&#43;()<span class=\"comment\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,130,0); background-color:inherit\">\/\/&#43;&#43;obj<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">{&nbsp;&nbsp;<\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;x&#43;&#43;;&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">return<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;*<\/span><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">this<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">;&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">}&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\"><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">const<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;Point&nbsp;Point::operator&#43;&#43;(<\/span><span class=\"datatypes\" style=\"margin:0px; padding:0px; border:none; color:rgb(46,139,87); background-color:inherit; font-weight:bold\">int<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;x)<\/span><span class=\"comment\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,130,0); background-color:inherit\">\/\/obj&#43;&#43;<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">{&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;Point&nbsp;temp&nbsp;=&nbsp;*<span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">this<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">;&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">this<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">-&gt;x&#43;&#43;;&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">return<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;temp;&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">}&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">Point&nbsp;operator--(Point&amp;&nbsp;p)<span class=\"comment\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,130,0); background-color:inherit\">\/\/--obj<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">{&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;p.x--;&nbsp;&nbsp;<\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">return<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;p;&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,130,0); background-color:inherit\">\/\/\u524d\u7f00\u5f62\u5f0f(--obj)\u91cd\u8f7d\u7684\u65f6\u5019\u6ca1\u6709\u865a\u53c2,\u901a\u8fc7\u5f15\u7528\u8fd4\u56de*this&nbsp;\u6216&nbsp;\u81ea\u8eab\u5f15\u7528,\u4e5f\u5c31\u662f\u8fd4\u56de\u53d8\u5316\u4e4b\u540e\u7684\u6570&#20540;<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">}&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\"><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">const<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;Point&nbsp;operator--(Point&amp;&nbsp;p,<\/span><span class=\"datatypes\" style=\"margin:0px; padding:0px; border:none; color:rgb(46,139,87); background-color:inherit; font-weight:bold\">int<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;x)<\/span><span class=\"comment\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,130,0); background-color:inherit\">\/\/obj--<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">{&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;Point&nbsp;temp&nbsp;=&nbsp;p;&nbsp;&nbsp;<\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;p.x--;&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">return<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;temp;&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,130,0); background-color:inherit\">\/\/&nbsp;\u540e\u7f00\u5f62\u5f0fobj--\u91cd\u8f7d\u7684\u65f6\u5019\u6709\u4e00\u4e2aint\u7c7b\u578b\u7684\u865a\u53c2,&nbsp;\u8fd4\u56de\u539f\u72b6\u6001\u7684\u62f7\u8d1d<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">}&nbsp;&nbsp;<\/span><\/li>\n<\/ol>\n<\/div>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n\u51fd\u6570\u8c03\u7528\uff1a<\/p>\n<div class=\"dp-highlighter bg_cpp\" style=\"font-family:Consolas,'Courier New',Courier,mono,serif; width:687.0499877929688px; overflow:auto; padding-top:1px; margin:18px 0px!important; color:rgb(51,51,51); line-height:26px\">\n<div class=\"bar\" style=\"padding-left:45px\">\n<div class=\"tools\" style=\"padding:3px 8px 10px 10px; font-size:9px; line-height:normal; font-family:Verdana,Geneva,Arial,Helvetica,sans-serif; color:silver; border-left-width:3px; border-left-style:solid; border-left-color:rgb(108,226,108)\">\n<strong>[cpp]<\/strong>&nbsp;<a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"ViewSource\" title=\"view plain\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">view<br \/>\n plain<\/a><a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"CopyToClipboard\" title=\"copy\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">copy<\/a><a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"PrintSource\" title=\"print\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">print<\/a><a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"About\" title=\"?\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">?<\/a><\/p>\n<div style=\"position:absolute; left:488px; top:3409px; width:29px; height:14px; z-index:99\">\n<\/div>\n<\/div>\n<\/div>\n<ol start=\"1\" class=\"dp-cpp\" style=\"margin:0px 0px 1px 45px!important; padding:0px; border:none; position:relative; list-style-position:initial; color:rgb(92,92,92)\">\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\"><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&lt;pre&nbsp;<\/span><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">class<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">=<\/span><span class=\"string\" style=\"margin:0px; padding:0px; border:none; color:blue; background-color:inherit\">&quot;cpp&quot;<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;name=<\/span><span class=\"string\" style=\"margin:0px; padding:0px; border:none; color:blue; background-color:inherit\">&quot;code&quot;<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&gt;Point&nbsp;a(1);&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">Point&nbsp;b(2);&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">a&#43;&#43;;<span class=\"comment\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,130,0); background-color:inherit\">\/\/\u9690\u5f0f\u8c03\u7528\u6210\u5458\u51fd\u6570operator&#43;&#43;(0),\u540e\u7f00\u8868\u8fbe\u5f0f<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&#43;&#43;a;<span class=\"comment\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,130,0); background-color:inherit\">\/\/\u9690\u5f0f\u8c03\u7528\u6210\u5458\u51fd\u6570operator&#43;&#43;(),\u524d\u7f00\u8868\u8fbe\u5f0f<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">b--;<span class=\"comment\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,130,0); background-color:inherit\">\/\/\u9690\u5f0f\u8c03\u7528\u53cb\u5143\u51fd\u6570operator--(0),\u540e\u7f00\u8868\u8fbe\u5f0f<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">--b;<span class=\"comment\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,130,0); background-color:inherit\">\/\/\u9690\u5f0f\u8c03\u7528\u53cb\u5143\u51fd\u6570operator--(),\u524d\u7f00\u8868\u8fbe\u5f0f<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">cout&lt;&lt;a.operator&nbsp;&#43;&#43;(2);<span class=\"comment\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,130,0); background-color:inherit\">\/\/\u663e\u5f0f\u8c03\u7528\u6210\u5458\u51fd\u6570operator&nbsp;&#43;&#43;(2)\uff0c\u540e\u7f00\u8868\u8fbe\u5f0f<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">cout&lt;&lt;a.operator&nbsp;&#43;&#43;();<span class=\"comment\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,130,0); background-color:inherit\">\/\/\u663e\u5f0f\u8c03\u7528\u6210\u5458\u51fd\u6570operator&nbsp;&#43;&#43;()\uff0c\u524d\u7f00\u8868\u8fbe\u5f0f<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">cout&lt;&lt;operator&nbsp;--(b,2);<span class=\"comment\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,130,0); background-color:inherit\">\/\/\u663e\u5f0f\u8c03\u7528\u53cb\u5143\u51fd\u6570operator&nbsp;--(2)\uff0c\u540e\u7f00\u8868\u8fbe\u5f0f<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">cout&lt;&lt;operator&nbsp;--(b);<span class=\"comment\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,130,0); background-color:inherit\">\/\/\u663e\u5f0f\u8c03\u7528\u53cb\u5143\u51fd\u6570operator&nbsp;--()\uff0c\u524d\u7f00\u8868\u8fbe\u5f0f&nbsp;&lt;\/pre&gt;<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;&nbsp;<\/span><\/span><\/li>\n<\/ol>\n<\/div>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;\u603b\u7ed3\uff1a<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n1\u3001a&#43;&#43;<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u51fd\u6570\u8fd4\u56de\uff1atemp(\u4e34\u65f6\u53d8\u91cf)<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u51fd\u6570\u8fd4\u56de\u662f\u5426\u662fconst\u7c7b\u578b\uff1a\u8fd4\u56de\u662f\u4e00\u4e2a\u62f7\u8d1d\u540e\u7684\u4e34\u65f6\u53d8\u91cf)\uff0c\u4e0d\u80fd\u51fa\u73b0\u5728\u7b49\u53f7\u7684\u5de6\u8fb9(\u4e34\u65f6\u53d8\u91cf\u4e0d\u80fd\u505a\u5de6&#20540;)\uff0c\u51fd\u6570\u7684\u7ed3\u679c\u53ea\u80fd\u505a\u53f3&#20540;\uff0c\u5219\u8981\u8fd4\u56de\u4e00\u4e2aconst\u7c7b\u578b\u7684&#20540;<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#43;&#43;a<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u51fd\u6570\u8fd4\u56de\uff1a*this;<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u51fd\u6570\u8fd4\u56de\u662f\u5426\u662fconst\u7c7b\u578b\uff1a\u8fd4\u56de\u539f\u72b6\u6001\u7684\u672c\u8eab\uff0c\u8fd4\u56de&#20540;\u53ef\u4ee5\u505a\u5de6&#20540;\uff0c\u5373\u51fd\u6570\u7684\u7ed3\u679c\u53ef\u4ee5\u505a\u5de6&#20540;\uff0c\u5219\u8981\u8fd4\u56de\u4e00\u4e2a\u975econst\u7c7b\u578b\u7684&#20540;<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n2\u3001\u524d\u540e\u7f00\u4ec5\u4ece\u51fd\u6570\u540d(operator&#43;&#43;)\u65e0\u6cd5\u533a\u5206\uff0c\u53ea\u80fd\u6709\u53c2\u6570\u533a\u5206\uff0c\u8fd9\u91cc\u5f15\u5165\u4e00\u4e2a\u865a\u53c2\u6570int x\uff0cx\u53ef\u4ee5\u662f\u4efb\u610f\u6574\u6570\u3002<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n3\u3001<span style=\"color:rgb(204,0,0)\">\u5355\u76ee\u8fd0\u7b97\u7b26\u7684\u91cd\u8f7d\uff1a<\/span><\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u91cd\u8f7d\u8fd0\u7b97\u7b26\u51fd\u6570\u540d\uff1aoperator@(\u53c2\u6570\u8868)<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u9690\u5f0f\u8c03\u7528\u5f62\u5f0f\uff1aobj1@ &nbsp;\u6216 @obj1<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u663e\u5f0f\u8c03\u7528\u5f62\u5f0f\uff1a<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u6210\u5458\u51fd\u6570:<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; obj1.operator@( )\/\/\u524d\u7f00<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; obj1.operator@(0)\/\/\u540e\u7f00<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u53cb\u5143\u51fd\u6570:<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;operator@(OBJ obj)\/\/\u524d\u7f00<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; operator@(OBJ obj,int x)\/\/\u540e\u7f00<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6267\u884c\u65f6\uff0c\u9690\u5f0f\u8c03\u7528\u5f62\u5f0f\u548c\u663e\u5f0f\u8c03\u7528\u5f62\u5f0f\u90fd\u4f1a\u8c03\u7528\u51fd\u6570operator@()<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n<span style=\"color:rgb(204,0,0)\">&nbsp;\u91cd\u8f7d\u4e0b\u6807\u8fd0\u7b97\u7b26[ ]<\/span><\/p>\n<div class=\"dp-highlighter bg_cpp\" style=\"font-family:Consolas,'Courier New',Courier,mono,serif; width:687.0499877929688px; overflow:auto; padding-top:1px; margin:18px 0px!important; color:rgb(51,51,51); line-height:26px\">\n<div class=\"bar\" style=\"padding-left:45px\">\n<div class=\"tools\" style=\"padding:3px 8px 10px 10px; font-size:9px; line-height:normal; font-family:Verdana,Geneva,Arial,Helvetica,sans-serif; color:silver; border-left-width:3px; border-left-style:solid; border-left-color:rgb(108,226,108)\">\n<strong>[cpp]<\/strong>&nbsp;<a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"ViewSource\" title=\"view plain\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">view<br \/>\n plain<\/a><a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"CopyToClipboard\" title=\"copy\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">copy<\/a><a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"PrintSource\" title=\"print\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">print<\/a><a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"About\" title=\"?\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">?<\/a><\/p>\n<div style=\"position:absolute; left:488px; top:4492px; width:29px; height:14px; z-index:99\">\n<\/div>\n<\/div>\n<\/div>\n<ol start=\"1\" class=\"dp-cpp\" style=\"margin:0px 0px 1px 45px!important; padding:0px; border:none; position:relative; list-style-position:initial; color:rgb(92,92,92)\">\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\"><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">class<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;Point&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">{&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\"><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">private<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">:&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"datatypes\" style=\"margin:0px; padding:0px; border:none; color:rgb(46,139,87); background-color:inherit; font-weight:bold\">int<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;x[5];&nbsp;&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\"><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">public<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">:&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;Point()&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;<\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">for<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;(<\/span><span class=\"datatypes\" style=\"margin:0px; padding:0px; border:none; color:rgb(46,139,87); background-color:inherit; font-weight:bold\">int<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;i=0;i&lt;5;i&#43;&#43;)&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;<\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;x[i]=i;&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;<\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"datatypes\" style=\"margin:0px; padding:0px; border:none; color:rgb(46,139,87); background-color:inherit; font-weight:bold\">int<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&amp;&nbsp;operator[](<\/span><span class=\"datatypes\" style=\"margin:0px; padding:0px; border:none; color:rgb(46,139,87); background-color:inherit; font-weight:bold\">int<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;y);&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">};&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\"><span class=\"datatypes\" style=\"margin:0px; padding:0px; border:none; color:rgb(46,139,87); background-color:inherit; font-weight:bold\">int<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&amp;&nbsp;Point::operator[](<\/span><span class=\"datatypes\" style=\"margin:0px; padding:0px; border:none; color:rgb(46,139,87); background-color:inherit; font-weight:bold\">int<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;y)&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">{&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">static<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;<\/span><span class=\"datatypes\" style=\"margin:0px; padding:0px; border:none; color:rgb(46,139,87); background-color:inherit; font-weight:bold\">int<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;t=0;&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">if<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;(y&lt;5)&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;<\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">return<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;x[y];&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;<\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">else<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;<\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cout&lt;&lt;<span class=\"string\" style=\"margin:0px; padding:0px; border:none; color:blue; background-color:inherit\">&quot;\u4e0b\u6807\u51fa\u754c&quot;<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">;&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">return<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;t;&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">}&nbsp;&nbsp;<\/span><\/li>\n<\/ol>\n<\/div>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n<span style=\"color:rgb(0,0,0)\">\u8c03\u7528\uff1a<\/span><\/p>\n<div class=\"dp-highlighter bg_cpp\" style=\"font-family:Consolas,'Courier New',Courier,mono,serif; width:687.0499877929688px; overflow:auto; padding-top:1px; margin:18px 0px!important; color:rgb(51,51,51); line-height:26px\">\n<div class=\"bar\" style=\"padding-left:45px\">\n<div class=\"tools\" style=\"padding:3px 8px 10px 10px; font-size:9px; line-height:normal; font-family:Verdana,Geneva,Arial,Helvetica,sans-serif; color:silver; border-left-width:3px; border-left-style:solid; border-left-color:rgb(108,226,108)\">\n<strong>[cpp]<\/strong>&nbsp;<a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"ViewSource\" title=\"view plain\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">view<br \/>\n plain<\/a><a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"CopyToClipboard\" title=\"copy\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">copy<\/a><a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"PrintSource\" title=\"print\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">print<\/a><a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"About\" title=\"?\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">?<\/a><\/p>\n<div style=\"position:absolute; left:488px; top:5069px; width:29px; height:14px; z-index:99\">\n<\/div>\n<\/div>\n<\/div>\n<ol start=\"1\" class=\"dp-cpp\" style=\"margin:0px 0px 1px 45px!important; padding:0px; border:none; position:relative; list-style-position:initial; color:rgb(92,92,92)\">\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">Point&nbsp;a;&nbsp;&nbsp;<\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\"><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">for<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;(<\/span><span class=\"datatypes\" style=\"margin:0px; padding:0px; border:none; color:rgb(46,139,87); background-color:inherit; font-weight:bold\">int<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;i=0;i&lt;10;i&#43;&#43;)&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">{&nbsp;&nbsp;<\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cout&lt;&lt;a[i]&lt;&lt;endl;<span class=\"comment\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,130,0); background-color:inherit\">\/\/\u65e0\u8bbai\u4e0b\u6807\u662f\u5426\u8d8a\u754c\uff0c\u6bcf\u5f53\u4f7f\u7528a[i]\u65f6\uff0c\u90fd\u4f1a\u8c03\u7528[]\u7684\u91cd\u8f7d<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">}&nbsp;&nbsp;<\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">a[0]=10;&nbsp;&nbsp;<\/span><\/li>\n<\/ol>\n<\/div>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n\u91cd\u8f7d\u4e0b\u6807\u8fd0\u7b97\u7b26[ ]\u7684\u76ee\u7684\uff1a<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n<span style=\"color:rgb(204,0,0)\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1\u3001\u5bf9\u8c61[x]&nbsp; \u7c7b&#20284;\u4e8e \u6570\u7ec4\u540d[x]\uff0c\u66f4\u52a0\u7b26\u5408\u4e60\u60ef<\/span><\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n<span style=\"color:rgb(204,0,0)\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2\u3001\u53ef\u4ee5\u5bf9\u4e0b\u6807\u8d8a\u754c\u4f5c\u51fa\u5224\u65ad<\/span><\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n\u8bed\u6cd5\uff1a<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u91cd\u8f7d\u65b9\u5f0f\uff1a\u53ea\u80fd\u4f7f\u7528\u6210\u5458\u51fd\u6570\u91cd\u8f7d<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u51fd\u6570\u540d\uff1aoperator[ ](\u53c2\u6570\u8868)<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u53c2\u6570\u8868\uff1a\u4e00\u4e2a\u53c2\u6570\uff0c\u4e14\u4ec5\u6709\u4e00\u4e2a\u53c2\u6570\uff0c\u8be5\u53c2\u6570\u8bbe\u5b9a\u4e86\u4e0b\u6807&#20540;\uff0c\u901a\u5e38\u4e3a\u6574\u578b\uff0c\u4f46\u662f\u4e5f\u53ef\u4ee5\u4e3a\u5b57\u7b26\u4e32( \u770b\u6210\u4e0b\u6807)\u3002<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u51fd\u6570\u8c03\u7528\uff1a\u663e\u5f0f\u8c03\u7528\uff1aObj[arg]-\u5bf9\u8c61[\u4e0b\u6807]<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u9690\u5f0f\u8c03\u7528\uff1aobj.operator[ ](arg)&nbsp;&nbsp;<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u8fd4\u56de\u7c7b\u578b\uff1a<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1\u3001\u8fd4\u56de\u51fd\u6570\u5f15\u7528 &#43; \u8fd4\u56de\u6210\u5458\u7684\u5b9e\u9645\u7c7b\u578b\uff08\u7531\u7a0b\u5e8f\u5458\u6839\u636e\u51fd\u6570\u4f53\u5b9a\u4e49\uff09<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2\u3001\u56e0\u4e3a\u8fd4\u56de&#20540;\u53ef\u4ee5\u505a\u5de6&#20540;\u548c\u53f3&#20540;\uff0c\u5e94\u8be5\u4e0d\u4f7f\u7528\u8fd4\u56de&#20540;\u4e3aconst\u7c7b\u578b<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u4f46\u662f\uff0c\u4e3a\u4e86\u80fd\u8bbf\u95eeconst\u5bf9\u8c61\uff0c\u4e0b\u6807\u8fd0\u7b97\u7b26\u91cd\u8f7d\u6709\u975econst\u548cconst\u4e24\u4e2a\u7248\u672c\u3002\uff08\u5f85\u5b9a\u5199\uff09<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;\u5982\uff1aint<span style=\"color:rgb(204,0,0)\">&amp;<\/span>&nbsp; Point::operator[](int y)\/\/\u4e3a\u4ec0\u4e48\u4f7f\u7528\u8fd4\u56de\u5f15\u7528\uff1a\u8fd4\u56de\u7684&#20540;\u53ef\u4ee5\u505a\u5de6&#20540;\uff0c\u4e5f\u53ef\u4ee5\u505a\u53f3&#20540;\uff0c\u5219\u5fc5\u987b\u4f7f\u7528\u8fd4\u56de\u5f15\u7528<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;\u91cd\u8f7d\u8fd0\u7b97\u7b26( )<\/p>\n<div class=\"dp-highlighter bg_cpp\" style=\"font-family:Consolas,'Courier New',Courier,mono,serif; width:687.0499877929688px; overflow:auto; padding-top:1px; margin:18px 0px!important; color:rgb(51,51,51); line-height:26px\">\n<div class=\"bar\" style=\"padding-left:45px\">\n<div class=\"tools\" style=\"padding:3px 8px 10px 10px; font-size:9px; line-height:normal; font-family:Verdana,Geneva,Arial,Helvetica,sans-serif; color:silver; border-left-width:3px; border-left-style:solid; border-left-color:rgb(108,226,108)\">\n<strong>[cpp]<\/strong>&nbsp;<a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"ViewSource\" title=\"view plain\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">view<br \/>\n plain<\/a><a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"CopyToClipboard\" title=\"copy\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">copy<\/a><a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"PrintSource\" title=\"print\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">print<\/a><a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"About\" title=\"?\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">?<\/a><\/p>\n<div style=\"position:absolute; left:488px; top:5880px; width:29px; height:14px; z-index:99\">\n<\/div>\n<\/div>\n<\/div>\n<ol start=\"1\" class=\"dp-cpp\" style=\"margin:0px 0px 1px 45px!important; padding:0px; border:none; position:relative; list-style-position:initial; color:rgb(92,92,92)\">\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\"><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">class<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;Point&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">{&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\"><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">private<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">:&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"datatypes\" style=\"margin:0px; padding:0px; border:none; color:rgb(46,139,87); background-color:inherit; font-weight:bold\">int<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;x;&nbsp;&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\"><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">public<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">:&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;Point(<span class=\"datatypes\" style=\"margin:0px; padding:0px; border:none; color:rgb(46,139,87); background-color:inherit; font-weight:bold\">int<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;x1)&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;x=x1;}&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">const<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;<\/span><span class=\"datatypes\" style=\"margin:0px; padding:0px; border:none; color:rgb(46,139,87); background-color:inherit; font-weight:bold\">int<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;operator()(<\/span><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">const<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;Point&amp;&nbsp;p);&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">};&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\"><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">const<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;<\/span><span class=\"datatypes\" style=\"margin:0px; padding:0px; border:none; color:rgb(46,139,87); background-color:inherit; font-weight:bold\">int<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;Point::operator()(<\/span><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">const<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;Point&amp;&nbsp;p)&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">{&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">return<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;(x&#43;p.x);&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">}&nbsp;&nbsp;<\/span><\/li>\n<\/ol>\n<\/div>\n<div class=\"dp-highlighter bg_cpp\" style=\"font-family:Consolas,'Courier New',Courier,mono,serif; width:687.0499877929688px; overflow:auto; padding-top:1px; margin:18px 0px!important; color:rgb(51,51,51); line-height:26px\">\n<div class=\"bar\" style=\"padding-left:45px\">\n<div class=\"tools\" style=\"padding:3px 8px 10px 10px; font-size:9px; line-height:normal; font-family:Verdana,Geneva,Arial,Helvetica,sans-serif; color:silver; border-left-width:3px; border-left-style:solid; border-left-color:rgb(108,226,108)\">\n<strong>[cpp]<\/strong>&nbsp;<a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"ViewSource\" title=\"view plain\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">view<br \/>\n plain<\/a><a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"CopyToClipboard\" title=\"copy\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">copy<\/a><a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"PrintSource\" title=\"print\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">print<\/a><a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"About\" title=\"?\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">?<\/a><\/p>\n<div style=\"position:absolute; left:488px; top:6179px; width:29px; height:14px; z-index:99\">\n<\/div>\n<\/div>\n<\/div>\n<ol start=\"1\" class=\"dp-cpp\" style=\"margin:0px 0px 1px 45px!important; padding:0px; border:none; position:relative; list-style-position:initial; color:rgb(92,92,92)\">\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">\u8c03\u7528\uff1a&nbsp;&nbsp;<\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">Point&nbsp;a(1);&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">Point&nbsp;b(2);&nbsp;&nbsp;<\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">cout&lt;&lt;a(b);&nbsp;&nbsp;<\/span><\/li>\n<\/ol>\n<\/div>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n\u91cd\u8f7d\u8fd0\u7b97\u7b26( )\u7684\u76ee\u7684\uff1a<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n<span style=\"color:rgb(204,0,0)\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1\u3001\u5bf9\u8c61( )&nbsp; \u7c7b&#20284;\u4e8e \u51fd\u6570\u540d(x)\uff0c\u66f4\u52a0\u7b26\u5408\u4e60\u60ef<\/span><\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n\u8bed\u6cd5\uff1a<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u91cd\u8f7d\u65b9\u5f0f\uff1a\u53ea\u80fd\u4f7f\u7528\u6210\u5458\u51fd\u6570\u91cd\u8f7d<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u91cd\u8f7d\u540e\u8fd8\u53ef\u4ee5\u7ee7\u7eed\u91cd\u8f7d<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u51fd\u6570\u540d\uff1aoperator( )(\u53c2\u6570\u8868)<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u53c2\u6570\u8868\uff1a\u53c2\u6570\u968f\u610f\uff0c\u5177\u4f53\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u800c\u5b9a\u3002<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u51fd\u6570\u8c03\u7528\uff1a\u663e\u5f0f\u8c03\u7528\uff1aObj(x)<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u9690\u5f0f\u8c03\u7528\uff1aobj.operator( )(x)&nbsp;&nbsp;<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u8fd4\u56de\u7c7b\u578b\uff1a<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1\u3001\u8fd4\u56de\u6210\u5458\u7684\u5b9e\u9645\u7c7b\u578b\u968f\u610f\uff0c\u5177\u4f53\u7531\u7a0b\u5e8f\u5458\u6839\u636e\u51fd\u6570\u4f53\u5b9a\u4e49<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2\u3001\u56e0\u4e3a\u8fd4\u56de&#20540;\u53ea\u80fd\u505a\u53f3&#20540;\uff0c\u53ea\u8bfb\uff0c\u5e94\u8be5\u4f7f\u7528\u8fd4\u56de&#20540;\u4e3aconst\u7c7b\u578b<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n<br \/>\n\u91cd\u8f7d\u8f93\u5165\u8f93\u51fa\u64cd\u4f5c\u7b26&lt;&lt; &gt;&gt;<\/p>\n<div class=\"dp-highlighter bg_cpp\" style=\"font-family:Consolas,'Courier New',Courier,mono,serif; width:687.0499877929688px; overflow:auto; padding-top:1px; margin:18px 0px!important; color:rgb(51,51,51); line-height:26px\">\n<div class=\"bar\" style=\"padding-left:45px\">\n<div class=\"tools\" style=\"padding:3px 8px 10px 10px; font-size:9px; line-height:normal; font-family:Verdana,Geneva,Arial,Helvetica,sans-serif; color:silver; border-left-width:3px; border-left-style:solid; border-left-color:rgb(108,226,108)\">\n<strong>[cpp]<\/strong>&nbsp;<a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"ViewSource\" title=\"view plain\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">view<br \/>\n plain<\/a><a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"CopyToClipboard\" title=\"copy\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">copy<\/a><a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"PrintSource\" title=\"print\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">print<\/a><a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"About\" title=\"?\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">?<\/a><\/p>\n<div style=\"position:absolute; left:488px; top:6848px; width:29px; height:14px; z-index:99\">\n<\/div>\n<\/div>\n<\/div>\n<ol start=\"1\" class=\"dp-cpp\" style=\"margin:0px 0px 1px 45px!important; padding:0px; border:none; position:relative; list-style-position:initial; color:rgb(92,92,92)\">\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\"><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">class<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;Point&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">{&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\"><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">private<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">:&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"datatypes\" style=\"margin:0px; padding:0px; border:none; color:rgb(46,139,87); background-color:inherit; font-weight:bold\">int<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;x;&nbsp;&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\"><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">public<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">:&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;Point(<span class=\"datatypes\" style=\"margin:0px; padding:0px; border:none; color:rgb(46,139,87); background-color:inherit; font-weight:bold\">int<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;x1)&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;x=x1;}&nbsp;&nbsp;&nbsp;<\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">friend<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;ostream&amp;&nbsp;operator&lt;&lt;(ostream&amp;&nbsp;cout,<\/span><span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">const<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;Point&amp;&nbsp;p);<\/span><span class=\"comment\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,130,0); background-color:inherit\">\/\/\u4f7f\u7528\u53cb\u5143\u51fd\u6570\u91cd\u8f7d&lt;&lt;\u8f93\u51fa\u8fd0\u7b97\u7b26<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">friend<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;istream&amp;&nbsp;operator&gt;&gt;(istream&amp;&nbsp;cin,Point&amp;&nbsp;p);<\/span><span class=\"comment\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,130,0); background-color:inherit\">\/\/\u4f7f\u7528\u53cb\u5143\u51fd\u6570\u91cd\u8f7d&gt;&gt;\u8f93\u51fa\u8fd0\u7b97\u7b26<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">};&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">ostream&amp;&nbsp;operator&lt;&lt;(ostream&amp;&nbsp;cout,<span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">const<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;Point&amp;&nbsp;p)&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">{&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;cout&lt;&lt;p.x&lt;&lt;endl;&nbsp;&nbsp;<\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">return<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;cout;&nbsp;&nbsp;<\/span><\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">}&nbsp;&nbsp;<\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">istream&amp;&nbsp;operator&gt;&gt;(istream&amp;&nbsp;cin,Point&amp;&nbsp;p)&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">{&nbsp;&nbsp;<\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;cin&gt;&gt;p.x;&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\" style=\"margin:0px; padding:0px; border:none; color:rgb(0,102,153); background-color:inherit; font-weight:bold\">return<\/span><span style=\"margin:0px; padding:0px; border:none; background-color:inherit\">&nbsp;cin;&nbsp;&nbsp;<\/span><\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">}&nbsp;&nbsp;<\/span><\/li>\n<\/ol>\n<\/div>\n<div class=\"dp-highlighter bg_cpp\" style=\"font-family:Consolas,'Courier New',Courier,mono,serif; width:687.0499877929688px; overflow:auto; padding-top:1px; margin:18px 0px!important; color:rgb(51,51,51); line-height:26px\">\n<div class=\"bar\" style=\"padding-left:45px\">\n<div class=\"tools\" style=\"padding:3px 8px 10px 10px; font-size:9px; line-height:normal; font-family:Verdana,Geneva,Arial,Helvetica,sans-serif; color:silver; border-left-width:3px; border-left-style:solid; border-left-color:rgb(108,226,108)\">\n<strong>[cpp]<\/strong>&nbsp;<a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"ViewSource\" title=\"view plain\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">view<br \/>\n plain<\/a><a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"CopyToClipboard\" title=\"copy\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">copy<\/a><a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"PrintSource\" title=\"print\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">print<\/a><a href=\"http:\/\/blog.csdn.net\/insistgogo\/article\/details\/6626952#\" class=\"About\" title=\"?\" style=\"color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:0px; margin:0px 10px 0px 0px; font-size:9px\">?<\/a><\/p>\n<div style=\"position:absolute; left:488px; top:7255px; width:29px; height:14px; z-index:99\">\n<\/div>\n<\/div>\n<\/div>\n<ol start=\"1\" class=\"dp-cpp\" style=\"margin:0px 0px 1px 45px!important; padding:0px; border:none; position:relative; list-style-position:initial; color:rgb(92,92,92)\">\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">\u8c03\u7528\uff1a&nbsp;&nbsp;<\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">Point&nbsp;a(1);&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">Point&nbsp;b(2);&nbsp;&nbsp;<\/span><\/li>\n<li style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">cin&gt;&gt;a&gt;&gt;b;&nbsp;&nbsp;<\/span><\/li>\n<li class=\"alt\" style=\"margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px\">\n<span style=\"margin:0px; padding:0px; border:none; color:black; background-color:inherit\">cout&lt;&lt;a&lt;&lt;b&lt;&lt;endl;&nbsp;&nbsp;&nbsp;<\/span><\/li>\n<\/ol>\n<\/div>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n\u8bed\u6cd5\uff1a<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n\u91cd\u8f7d\u65b9\u5f0f\uff1a\u53ea\u80fd\u4f7f\u7528\u53cb\u5143\u51fd\u6570\u91cd\u8f7d \u4e14 \u4f7f\u7528\u4e09\u4e2a\u5f15\u7528&amp;<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n\u51fd\u6570\u540d\uff1a<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u8f93\u51fa\u6d41\uff1a&nbsp;operator&lt;&lt;(\u53c2\u6570\u8868)<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u8f93\u5165\u6d41\uff1aoperator&gt;&gt;(\u53c2\u6570\u8868)<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n<span style=\"color:rgb(153,0,0)\">\u53c2\u6570\u8868\uff1a\u56fa\u5b9a\uff08\u5bb9\u6613\u51fa\u9519\u554a\uff09\uff0c\u4e24\u4e2a\u53c2\u6570\u5747\u7528\u5f15\u7528&amp;<\/span><\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u8f93\u51fa\u6d41\uff1a&nbsp;\u5fc5\u987b\u662f\u4e24\u4e2a\u53c2\u6570\uff1a<span style=\"color:rgb(153,0,0)\">\u5bf9\u8f93\u51fa\u6d41ostream&amp;<\/span>&nbsp;\u548c \u5bf9\u8c61<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u7b2c\u4e00\u4e2a\u64cd\u4f5c\u6570cout\uff0c\u5b9a\u4e49\u5728\u6587\u4ef6iostream\u4e2d\uff0c\u662f\u6807\u51c6\u7c7b\u7c7b\u578bostream\u7684\u5bf9\u8c61\u7684\u5f15\u7528\u3002<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u5982\uff1aostream&amp; cout,const Point&amp; p<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u8f93\u5165\u6d41\uff1a\u5fc5\u987b\u662f\u4e24\u4e2a\u53c2\u6570\uff1a<span style=\"color:rgb(153,0,0)\">\u5bf9\u8f93\u5165\u6d41ostream&amp;<\/span>&nbsp;\u548c \u5bf9\u8c61<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u7b2c\u4e00\u4e2a\u64cd\u4f5c\u6570\u662fcin\uff0c\u5b9a\u4e49\u5728\u6587\u4ef6iostream\uff0c\u5b9e\u9645\u4e0a\u662f\u6807\u51c6\u7c7b\u7c7b\u578bistream\u7684\u5bf9\u8c61\u7684\u5f15\u7528<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u5982\uff1ainstream&amp; cin,const Point&amp; p<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n\u51fd\u6570\u8c03\u7528\uff1a<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u8f93\u51fa\u6d41\uff1a&nbsp;\u663e\u5f0f\u8c03\u7528\uff1acout&lt;&lt;\u5bf9\u8c61<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u9690\u5f0f\u8c03\u7528\uff1a&nbsp;operator&lt;&lt;(cout\uff0c\u5bf9\u8c61)<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u8f93\u5165\u6d41\uff1a\u663e\u5f0f\u8c03\u7528\uff1acin&gt;&gt;\u5bf9\u8c61<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u9690\u5f0f\u8c03\u7528\uff1a&nbsp;operator&gt;&gt;(cin\uff0c\u5bf9\u8c61)<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n\u8fd4\u56de\u7c7b\u578b\uff1a\u8fd4\u56de\u7c7b\u578b\u56fa\u5b9a &#43; \u4f7f\u7528\u8fd4\u56de\u51fd\u6570\u5f15\u7528\uff08\u6ee1\u8db3\u8fde\u7eed\u8f93\u51fa\uff09<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u8f93\u51fa\u6d41\uff1a&nbsp;\u8fd4\u56deostream&amp;<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u5982\uff1aostream&amp; operator&lt;&lt;(ostream&amp; cout,const Point&amp; p)<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u8f93\u5165\u6d41\uff1a\u8fd4\u56de\uff1aistream&amp;<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u5982\uff1aistream&amp; operator&gt;&gt;(istream&amp; cin,Point&amp; p)<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n\u6ce8\u610f\uff1a\u4e3a\u4ec0\u4e48\u8f93\u5165\u8f93\u51fa\u64cd\u4f5c\u7b26\u7684\u91cd\u8f7d\u5fc5\u987b\u4f7f\u7528\u53cb\u5143\u51fd\u6570\uff1f<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n\u56e0\u4e3a\uff1a\u6210\u5458\u51fd\u6570\u8981\u6c42\u662f\u6709\u5bf9\u8c61\u8c03\u7528\uff0c\u5219\u7b2c\u4e00\u4e2a\u53c2\u6570\u5fc5\u987b\u662f\u7c7b\u7684\u5bf9\u8c61\uff0c\u4f46\u662f&lt;&lt;\u548c&gt;&gt;\u7b2c\u4e00\u4e2a\u53c2\u6570\u662f\u6d41\u7684\u5bf9\u8c61\u5f15\u7528\u3002<\/p>\n<p style=\"color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px\">\n\u6545\uff0c\u4e0d\u80fd\u4f7f\u7528\u6210\u5458\u51fd\u6570<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ec0\u4e48\u662f\u8fd0\u7b97\u7b26\u7684\u91cd\u8f7d? &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#038;n [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","footnotes":""},"categories":[3],"tags":[29],"class_list":["post-215","post","type-post","status-publish","format-standard","hentry","category-defaultcategory","tag-c"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u8fd0\u7b97\u7b26\u91cd\u8f7d - nike0good<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/nike0good.com\/?p=215\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u8fd0\u7b97\u7b26\u91cd\u8f7d - nike0good\" \/>\n<meta property=\"og:description\" content=\"\u4ec0\u4e48\u662f\u8fd0\u7b97\u7b26\u7684\u91cd\u8f7d? &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;n [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/nike0good.com\/?p=215\" \/>\n<meta property=\"og:site_name\" content=\"nike0good\" \/>\n<meta property=\"article:published_time\" content=\"2012-10-27T00:02:00+00:00\" \/>\n<meta name=\"author\" content=\"nike0good\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"nike0good\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=215#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=215\"},\"author\":{\"name\":\"nike0good\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/#\\\/schema\\\/person\\\/4defa38da89de87e400861e73396baad\"},\"headline\":\"\u8fd0\u7b97\u7b26\u91cd\u8f7d\",\"datePublished\":\"2012-10-27T00:02:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=215\"},\"wordCount\":2264,\"commentCount\":0,\"keywords\":[\"C++\"],\"articleSection\":[\"DefaultCategory\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/nike0good.com\\\/?p=215#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=215\",\"url\":\"https:\\\/\\\/nike0good.com\\\/?p=215\",\"name\":\"\u8fd0\u7b97\u7b26\u91cd\u8f7d - nike0good\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/#website\"},\"datePublished\":\"2012-10-27T00:02:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/#\\\/schema\\\/person\\\/4defa38da89de87e400861e73396baad\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=215#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/nike0good.com\\\/?p=215\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=215#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/nike0good.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u8fd0\u7b97\u7b26\u91cd\u8f7d\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/#website\",\"url\":\"https:\\\/\\\/nike0good.com\\\/\",\"name\":\"nike0good\",\"description\":\"\u6709\u6240\u4f5c\u4e3a\u662f\u4eba\u751f\u7684\u6700\u9ad8\u5883\u754c\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/nike0good.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/#\\\/schema\\\/person\\\/4defa38da89de87e400861e73396baad\",\"name\":\"nike0good\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8e5fa08d5c367a1a6fb5ff13bb10ed5a331f981513256951290ae42322da6854?s=96&d=identicon&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8e5fa08d5c367a1a6fb5ff13bb10ed5a331f981513256951290ae42322da6854?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8e5fa08d5c367a1a6fb5ff13bb10ed5a331f981513256951290ae42322da6854?s=96&d=identicon&r=g\",\"caption\":\"nike0good\"},\"sameAs\":[\"https:\\\/\\\/nike0good.com\"],\"url\":\"https:\\\/\\\/nike0good.com\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u8fd0\u7b97\u7b26\u91cd\u8f7d - nike0good","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/nike0good.com\/?p=215","og_locale":"zh_CN","og_type":"article","og_title":"\u8fd0\u7b97\u7b26\u91cd\u8f7d - nike0good","og_description":"\u4ec0\u4e48\u662f\u8fd0\u7b97\u7b26\u7684\u91cd\u8f7d? &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n [&hellip;]","og_url":"https:\/\/nike0good.com\/?p=215","og_site_name":"nike0good","article_published_time":"2012-10-27T00:02:00+00:00","author":"nike0good","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"nike0good","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"11 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/nike0good.com\/?p=215#article","isPartOf":{"@id":"https:\/\/nike0good.com\/?p=215"},"author":{"name":"nike0good","@id":"https:\/\/nike0good.com\/#\/schema\/person\/4defa38da89de87e400861e73396baad"},"headline":"\u8fd0\u7b97\u7b26\u91cd\u8f7d","datePublished":"2012-10-27T00:02:00+00:00","mainEntityOfPage":{"@id":"https:\/\/nike0good.com\/?p=215"},"wordCount":2264,"commentCount":0,"keywords":["C++"],"articleSection":["DefaultCategory"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/nike0good.com\/?p=215#respond"]}]},{"@type":"WebPage","@id":"https:\/\/nike0good.com\/?p=215","url":"https:\/\/nike0good.com\/?p=215","name":"\u8fd0\u7b97\u7b26\u91cd\u8f7d - nike0good","isPartOf":{"@id":"https:\/\/nike0good.com\/#website"},"datePublished":"2012-10-27T00:02:00+00:00","author":{"@id":"https:\/\/nike0good.com\/#\/schema\/person\/4defa38da89de87e400861e73396baad"},"breadcrumb":{"@id":"https:\/\/nike0good.com\/?p=215#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/nike0good.com\/?p=215"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/nike0good.com\/?p=215#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/nike0good.com\/"},{"@type":"ListItem","position":2,"name":"\u8fd0\u7b97\u7b26\u91cd\u8f7d"}]},{"@type":"WebSite","@id":"https:\/\/nike0good.com\/#website","url":"https:\/\/nike0good.com\/","name":"nike0good","description":"\u6709\u6240\u4f5c\u4e3a\u662f\u4eba\u751f\u7684\u6700\u9ad8\u5883\u754c","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/nike0good.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/nike0good.com\/#\/schema\/person\/4defa38da89de87e400861e73396baad","name":"nike0good","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/secure.gravatar.com\/avatar\/8e5fa08d5c367a1a6fb5ff13bb10ed5a331f981513256951290ae42322da6854?s=96&d=identicon&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/8e5fa08d5c367a1a6fb5ff13bb10ed5a331f981513256951290ae42322da6854?s=96&d=identicon&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8e5fa08d5c367a1a6fb5ff13bb10ed5a331f981513256951290ae42322da6854?s=96&d=identicon&r=g","caption":"nike0good"},"sameAs":["https:\/\/nike0good.com"],"url":"https:\/\/nike0good.com\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/nike0good.com\/index.php?rest_route=\/wp\/v2\/posts\/215","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nike0good.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nike0good.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nike0good.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nike0good.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=215"}],"version-history":[{"count":0,"href":"https:\/\/nike0good.com\/index.php?rest_route=\/wp\/v2\/posts\/215\/revisions"}],"wp:attachment":[{"href":"https:\/\/nike0good.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nike0good.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nike0good.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}