ï»?!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> C++ 操作½W¦é‡è½?‹¹Žå—软äšg开å?‹¹Žå—软äšg开发|å±×ƒ¸œè½¯äšg开å?‹¹Žå—èµ¢å¯d¿U‘技软äšg开发公å?/title> <meta name="keywords" content="C++ 操作½W¦é‡è½?‹¹Žå—软äšg开å?/> <meta name="description" content="1.什么是操作½W¦é‡è½½å¯ä»¥ä‹É用分词将操作½W¦é‡è½½ç†è§£äؓåQšæ“ä½œç¬¦+重蝲。C++中的操作½W¦å¾ˆå¤šï¼Œå¦?åQ?åQ?åQŒ\½{‰ç­‰ã€‚C++中的重蝲也是C++中面向对象多态的体现。简单说操作½W¦é‡è½½ï¼šC++中有åQšinta=2+3;那么a=5操作½W¦é‡è½½å¯ä»¥å®žçŽ°å¯¹è‡ªå®š"/> <link href="/css/style.css" rel="stylesheet" type="text/css" /> <meta http-equiv="Cache-Control" content="no-transform" /> <meta http-equiv="Cache-Control" content="no-siteapp" /> </head> <body> <div style="position:fixed;left:-9000px;top:-9000px;"><dfn id="orz4q"><noscript id="orz4q"><xmp id="orz4q"><output id="orz4q"></output></xmp></noscript></dfn><strong id="orz4q"><dl id="orz4q"></dl></strong><ol id="orz4q"><p id="orz4q"><nav id="orz4q"><pre id="orz4q"></pre></nav></p></ol><dfn id="orz4q"></dfn><small id="orz4q"><optgroup id="orz4q"></optgroup></small><center id="orz4q"><small id="orz4q"><track id="orz4q"><rp id="orz4q"></rp></track></small></center><table id="orz4q"><ruby id="orz4q"><dl id="orz4q"><del id="orz4q"></del></dl></ruby></table><rt id="orz4q"></rt><output id="orz4q"></output><mark id="orz4q"></mark><dl id="orz4q"></dl><div id="orz4q"></div><optgroup id="orz4q"></optgroup><address id="orz4q"><progress id="orz4q"><noframes id="orz4q"><tr id="orz4q"></tr></noframes></progress></address><listing id="orz4q"><thead id="orz4q"><address id="orz4q"><wbr id="orz4q"></wbr></address></thead></listing><video id="orz4q"></video><object id="orz4q"><sup id="orz4q"></sup></object><em id="orz4q"></em><div id="orz4q"></div><progress id="orz4q"><listing id="orz4q"><th id="orz4q"><option id="orz4q"></option></th></listing></progress><meter id="orz4q"></meter><acronym id="orz4q"><rt id="orz4q"></rt></acronym><label id="orz4q"></label><track id="orz4q"></track><noscript id="orz4q"><div id="orz4q"><pre id="orz4q"><ol id="orz4q"></ol></pre></div></noscript><s id="orz4q"><kbd id="orz4q"></kbd></s><form id="orz4q"></form><var id="orz4q"></var><dl id="orz4q"><strike id="orz4q"></strike></dl><xmp id="orz4q"><strike id="orz4q"><small id="orz4q"><samp id="orz4q"></samp></small></strike></xmp><listing id="orz4q"><thead id="orz4q"><address id="orz4q"><progress id="orz4q"></progress></address></thead></listing><del id="orz4q"></del><object id="orz4q"><address id="orz4q"><samp id="orz4q"><rt id="orz4q"></rt></samp></address></object><ruby id="orz4q"></ruby><noframes id="orz4q"></noframes><code id="orz4q"></code><var id="orz4q"></var><nav id="orz4q"></nav><u id="orz4q"></u><span id="orz4q"></span><li id="orz4q"></li><tbody id="orz4q"><table id="orz4q"><span id="orz4q"><dl id="orz4q"></dl></span></table></tbody><optgroup id="orz4q"><xmp id="orz4q"><big id="orz4q"><em id="orz4q"></em></big></xmp></optgroup><var id="orz4q"></var><nav id="orz4q"></nav><rt id="orz4q"></rt><dfn id="orz4q"><font id="orz4q"><sub id="orz4q"><td id="orz4q"></td></sub></font></dfn><u id="orz4q"><s id="orz4q"></s></u><pre id="orz4q"><em id="orz4q"><p id="orz4q"><rp id="orz4q"></rp></p></em></pre><rt id="orz4q"><tr id="orz4q"></tr></rt> <pre id="orz4q"></pre><wbr id="orz4q"><rt id="orz4q"><tr id="orz4q"><output id="orz4q"></output></tr></rt></wbr><xmp id="orz4q"><pre id="orz4q"><em id="orz4q"><p id="orz4q"></p></em></pre></xmp><sub id="orz4q"></sub><p id="orz4q"></p><td id="orz4q"><tbody id="orz4q"></tbody></td><code id="orz4q"><video id="orz4q"><track id="orz4q"><tt id="orz4q"></tt></track></video></code><thead id="orz4q"></thead><source id="orz4q"><nobr id="orz4q"><cite id="orz4q"><td id="orz4q"></td></cite></nobr></source><del id="orz4q"></del><sub id="orz4q"></sub><code id="orz4q"></code><code id="orz4q"><menu id="orz4q"></menu></code><legend id="orz4q"><button id="orz4q"><source id="orz4q"><i id="orz4q"></i></source></button></legend><delect id="orz4q"></delect><ins id="orz4q"></ins><i id="orz4q"></i><pre id="orz4q"></pre><mark id="orz4q"></mark><b id="orz4q"><table id="orz4q"><strong id="orz4q"><noframes id="orz4q"></noframes></strong></table></b><source id="orz4q"></source><small id="orz4q"><optgroup id="orz4q"></optgroup></small><dl id="orz4q"></dl><center id="orz4q"><em id="orz4q"><track id="orz4q"><rp id="orz4q"></rp></track></em></center><address id="orz4q"></address><tt id="orz4q"><code id="orz4q"><nobr id="orz4q"><sub id="orz4q"></sub></nobr></code></tt><strong id="orz4q"></strong><delect id="orz4q"></delect><nobr id="orz4q"></nobr><strike id="orz4q"></strike><strong id="orz4q"></strong><optgroup id="orz4q"><xmp id="orz4q"><big id="orz4q"><em id="orz4q"></em></big></xmp></optgroup><menu id="orz4q"></menu><menu id="orz4q"></menu><small id="orz4q"><optgroup id="orz4q"></optgroup></small><input id="orz4q"><label id="orz4q"></label></input><big id="orz4q"><nobr id="orz4q"><track id="orz4q"><button id="orz4q"></button></track></nobr></big><sub id="orz4q"></sub><nav id="orz4q"><blockquote id="orz4q"></blockquote></nav><listing id="orz4q"><thead id="orz4q"><address id="orz4q"><wbr id="orz4q"></wbr></address></thead></listing><tbody id="orz4q"><table id="orz4q"></table></tbody><font id="orz4q"><mark id="orz4q"><meter id="orz4q"><tbody id="orz4q"></tbody></meter></mark></font><dl id="orz4q"><strike id="orz4q"><i id="orz4q"><samp id="orz4q"></samp></i></strike></dl><wbr id="orz4q"><noscript id="orz4q"></noscript></wbr><strong id="orz4q"><input id="orz4q"></input></strong><wbr id="orz4q"></wbr><legend id="orz4q"></legend><address id="orz4q"><progress id="orz4q"><noframes id="orz4q"><tr id="orz4q"></tr></noframes></progress></address><dfn id="orz4q"><font id="orz4q"><sub id="orz4q"><td id="orz4q"></td></sub></font></dfn><center id="orz4q"><ol id="orz4q"><noscript id="orz4q"><b id="orz4q"></b></noscript></ol></center> <u id="orz4q"><s id="orz4q"></s></u><u id="orz4q"><s id="orz4q"></s></u><output id="orz4q"></output><ruby id="orz4q"></ruby><wbr id="orz4q"></wbr><ins id="orz4q"></ins><s id="orz4q"><kbd id="orz4q"></kbd></s><b id="orz4q"></b><nobr id="orz4q"></nobr><strike id="orz4q"></strike><input id="orz4q"><label id="orz4q"></label></input><em id="orz4q"></em><form id="orz4q"></form><tbody id="orz4q"><table id="orz4q"><legend id="orz4q"><dl id="orz4q"></dl></legend></table></tbody><tr id="orz4q"></tr><dd id="orz4q"></dd><li id="orz4q"></li><code id="orz4q"></code><menu id="orz4q"><samp id="orz4q"></samp></menu><p id="orz4q"><rp id="orz4q"><u id="orz4q"><strong id="orz4q"></strong></u></rp></p><pre id="orz4q"><em id="orz4q"></em></pre><tbody id="orz4q"><table id="orz4q"></table></tbody><ol id="orz4q"><p id="orz4q"><label id="orz4q"><blockquote id="orz4q"></blockquote></label></p></ol><tr id="orz4q"><option id="orz4q"></option></tr><legend id="orz4q"></legend><p id="orz4q"><rp id="orz4q"><output id="orz4q"><strong id="orz4q"></strong></output></rp></p><menu id="orz4q"></menu><rt id="orz4q"></rt><rp id="orz4q"></rp><optgroup id="orz4q"></optgroup><del id="orz4q"></del><button id="orz4q"></button><rp id="orz4q"></rp><dfn id="orz4q"><font id="orz4q"><sub id="orz4q"><td id="orz4q"></td></sub></font></dfn><nav id="orz4q"><blockquote id="orz4q"></blockquote></nav><thead id="orz4q"><menuitem id="orz4q"><progress id="orz4q"><noscript id="orz4q"></noscript></progress></menuitem></thead><sup id="orz4q"><acronym id="orz4q"></acronym></sup><center id="orz4q"></center><font id="orz4q"></font><noscript id="orz4q"><div id="orz4q"></div></noscript><font id="orz4q"></font><wbr id="orz4q"><noscript id="orz4q"></noscript></wbr><meter id="orz4q"></meter><optgroup id="orz4q"><xmp id="orz4q"><big id="orz4q"><em id="orz4q"></em></big></xmp></optgroup><nav id="orz4q"></nav><input id="orz4q"><label id="orz4q"><menuitem id="orz4q"><progress id="orz4q"></progress></menuitem></label></input><address id="orz4q"></address><dl id="orz4q"></dl><progress id="orz4q"></progress><video id="orz4q"></video></div> <div class="head"> <div class="top"><span><a href="/html/sitemap.xml">XML</a> | <a href="/html/sitemap.html">HTML</a> | <a href="/sitemap.txt">TXT</a></span></div> <div class="bank"> <div class="logo"> <h1><strong><a href="http://www.themmauniversity.com" style="margin-right:10px">‹¹Žå—软äšg开å?/a></strong><strong><a href="http://www.themmauniversity.com">å±×ƒ¸œè½¯äšg开å?/a></strong></h1> </div> <div class="contact-top"></div> </div> <div class="menu"> <ul> <li><a href="/">é¦?#160;   ™å?/a></li> <li><a href="/About/">关于我们</a></li> <li><a href="/Advantage/">开发优åŠ?/a></li> <li><a href="/Products/">产品展示</a></li> <li><a href="/Cooperation/">合作企业</a></li> <li><a href="/News/">新闻动æ€?/a></li> <li><a href="/Contact/">联系我们</a></li> </ul> </div> <div class="banner"><img src="/images/banner.jpg" width="1000" height="341"/></div> </div> <div id="position"><div>您当前位¾|®ï¼š<a href="/">软äšg开å?/a> >> <a href="/News/">新闻动æ€?/a> >> <a href="/News/Industry/">软äšg开发行业资è®?/a> >> ‹¹è§ˆæ–‡ç« </div></div> <div class="youshi_f1" id="youshi_tdyx"> <div class="youshi01"> <h1 class="article_title">C++ 操作½W¦é‡è½?‹¹Žå—软äšg开å?/h1> <div class="article_author">æ·ÕdŠ æ—‰™—´åQ?016-11-8 15:21:07 文章作者:<a href="/">‹¹Žå—软äšg开å?/a> ‹¹è§ˆ‹Æ¡æ•°åQ?Script Language="Javascript" Src="/item/GetHits.asp?Action=Count&GetFlag=0&m=1&ID=2919"></Script></div> <div class="article_main"><div id="MyContent"><p><span style="font-size: 14px;">  1.什么是操作½W¦é‡è½?/span></p><p><span style="font-size: 14px;">  可以使用分词ž®†æ“ä½œç¬¦é‡è²ç†è§£ä¸ºï¼šæ“ä½œ½W?重蝲ã€?/span></p><p><span style="font-size: 14px;">  C++中的操作½W¦å¾ˆå¤šï¼Œå¦?åQ?åQ?åQŒ\½{‰ç­‰ã€?/span></p><p><span style="font-size: 14px;">  C++中的重蝲也是C++中面向对象多态的体现ã€?/span></p><p><span style="font-size: 14px;">  ½Ž€å•è¯´æ“ä½œ½W¦é‡è½½ï¼š</span></p><p><span style="font-size: 14px;">  C++中有åQšint a=2+3;  那么a=5</span></p><p><span style="font-size: 14px;">  操作½W¦é‡è½½å¯ä»¥å®žçŽ°å¯¹è‡ªå®šä¹‰ç±»åž‹çš„操作åQ?/span></p><p><span style="font-size: 14px;">  复制代码</span></p><p><span style="font-size: 14px;">  1 #include <iostream></span></p><p><span style="font-size: 14px;">  2 using namespace std;</span></p><p><span style="font-size: 14px;">  3</span></p><p><span style="font-size: 14px;">  4 class Point{</span></p><p><span style="font-size: 14px;">  5 public:</span></p><p><span style="font-size: 14px;">  6     int x;</span></p><p><span style="font-size: 14px;">  7     int y;</span></p><p><span style="font-size: 14px;">  8     Point(int _x,int _y):x(_x),y(_y){</span></p><p><span style="font-size: 14px;">  9     }</span></p><p><span style="font-size: 14px;">  10</span></p><p><span style="font-size: 14px;">  11     Point operator+(Point &p){</span></p><p><span style="font-size: 14px;">  12         int t1=this->x+p.x;</span></p><p><span style="font-size: 14px;">  13         int t2=this->y+p.y;</span></p><p><span style="font-size: 14px;">  14         Point t(t1,t2);</span></p><p><span style="font-size: 14px;">  15         return t;</span></p><p><span style="font-size: 14px;">  16     }</span></p><p><span style="font-size: 14px;">  17 };</span></p><p><span style="font-size: 14px;">  18</span></p><p><span style="font-size: 14px;">  19 int main()</span></p><p><span style="font-size: 14px;">  20 {</span></p><p><span style="font-size: 14px;">  21     Point p1(1,3);</span></p><p><span style="font-size: 14px;">  22     Point p2(2,6);</span></p><p><span style="font-size: 14px;">  23     Point p3 = p1+p2;</span></p><p><span style="font-size: 14px;">  24     cout<<"p3:("<<p3.x<<","<<p3.y<<")";     ///执行输出åQšp3:(3,9)</span></p><p><span style="font-size: 14px;">  25     return 0;</span></p><p><span style="font-size: 14px;">  26 }</span></p><p><span style="font-size: 14px;">  复制代码</span></p><p><span style="font-size: 14px;">  2.操作½W¦é‡è½½çš„方式</span></p><p><span style="font-size: 14px;">  操作½W¦é‡è½½çš„实现方式有两¿Uï¼Œå³é€šè¿‡â€œå‹å…ƒå‡½æ•°â€æˆ–者“类成员函数”。如下面代码昄¡¤ºäº†è¿™ä¸¤ç§æ“ä½œ½W¦é‡è½½ï¼š</span></p><p><span style="font-size: 14px;">  复制代码</span></p><p><span style="font-size: 14px;">  1 class Point{</span></p><p><span style="font-size: 14px;">  2 public:</span></p><p><span style="font-size: 14px;">  3     int x;</span></p><p><span style="font-size: 14px;">  4     int y;</span></p><p><span style="font-size: 14px;">  5     Point(int _x,int _y);</span></p><p><span style="font-size: 14px;">  6</span></p><p><span style="font-size: 14px;">  7     Point operator+(Point &p);  ///¾cÀLˆå‘˜å‡½æ•ŽÍ¼Œ¾cÀLˆå‘˜å‡½æ•°å¯ä»¥ä‹É用this指针获取自èín对象</span></p><p><span style="font-size: 14px;">  8</span></p><p><span style="font-size: 14px;">  9     friend int operator*(Point &p1,Point &p2);  ///友元函数</span></p><p><span style="font-size: 14px;">  10 };</span></p><p><span style="font-size: 14px;">  复制代码</span></p><p><span style="font-size: 14px;">  可以看出åQŒä¸€ä¸ªé‡è½½â€?”,一个重载â€?”,都是双目˜qç®—½W¦ï¼Œä½†æ˜¯¾cÀLˆå‘˜å‡½æ•°åªæœ‰ä¸€ä¸ªå‚数。这是因为类成员函数可以使用this指针获取自èín的对象,而友元函数则不行ã€?/span></p><p><span style="font-size: 14px;">  所以类成员实现操作½W¦é‡è½½éœ€è¦çš„形式参数比原来少一个,˜q™æ ·ä½¿ç”¨¾cÀLˆå‘˜å‡½æ•°å®žçŽîC¸€å…ƒæ“ä½œç¬¦ž®×ƒ¸éœ€è¦å‚æ•îCº†ã€?/span></p><p><span style="font-size: 14px;">  3.操作½W¦é‡è½½ä¾‹å­?/span></p><p><span style="font-size: 14px;">  1 #include <iostream></span></p><p><span style="font-size: 14px;">  2 using namespace std;</span></p><p><span style="font-size: 14px;">  3</span></p><p><span style="font-size: 14px;">  4 class Point{</span></p><p><span style="font-size: 14px;">  5 public:</span></p><p><span style="font-size: 14px;">  6     int x;</span></p><p><span style="font-size: 14px;">  7     int y;</span></p><p><span style="font-size: 14px;">  8     Point(int _x,int _y):x(_x),y(_y){</span></p><p><span style="font-size: 14px;">  9     }</span></p><p><span style="font-size: 14px;">  10</span></p><p><span style="font-size: 14px;">  11     Point operator+(Point &p){  ///实现坐标向量åŠ?/span></p><p><span style="font-size: 14px;">  12         int t1=this->x+p.x;</span></p><p><span style="font-size: 14px;">  13         int t2=this->y+p.y;</span></p><p><span style="font-size: 14px;">  14         Point t(t1,t2);</span></p><p><span style="font-size: 14px;">  15         return t;</span></p><p><span style="font-size: 14px;">  16     }</span></p><p><span style="font-size: 14px;">  17</span></p><p><span style="font-size: 14px;">  18     friend int operator*(Point &p1,Point &p2);  ///实现内积</span></p><p><span style="font-size: 14px;">  19 };</span></p><p><span style="font-size: 14px;">  20</span></p><p><span style="font-size: 14px;">  21 int operator*(Point &p1,Point &p2)</span></p><p><span style="font-size: 14px;">  22 {</span></p><p><span style="font-size: 14px;">  23     return (p1.x*p2.x)+(p1.y*p2.y);</span></p><p><span style="font-size: 14px;">  24 }</span></p><p><span style="font-size: 14px;">  25</span></p><p><span style="font-size: 14px;">  26 int main()</span></p><p><span style="font-size: 14px;">  27 {</span></p><p><span style="font-size: 14px;">  28     Point p1(1,3);</span></p><p><span style="font-size: 14px;">  29     Point p2(2,6);</span></p><p><span style="font-size: 14px;">  30     cout<<p1*p2<<endl;  ///输出内积åQ?0</span></p><p><span style="font-size: 14px;">  31</span></p><p><span style="font-size: 14px;">  32     Point p3 = p1+p2;</span></p><p><span style="font-size: 14px;">  33     cout<<"p3:("<<p3.x<<","<<p3.y<<")"<<endl;   ///输出坐标和:(3,9)</span></p><p><span style="font-size: 14px;">  34     return 0;</span></p><p><span style="font-size: 14px;">  35 }</span></p><p><span style="font-size: 14px;">  复制代码</span></p><p><span style="font-size: 14px;">  4.重蝲操作½W¦æ³¨æ„äº‹™å?/span></p><p><span style="font-size: 14px;">  (1)重蝲操作½W¦å¿…™åÀLœ‰ä¸€ä¸ªç±»¾cÕdž‹çš„参数。也ž®±æ˜¯è¯´ä¸èƒ?int  operator+(int,int);</span></p><p><span style="font-size: 14px;">  (2)操作½W¦çš„优先¾U§å’Œ¾l“核性是固定的ã€?/span></p><p><span style="font-size: 14px;">  (3)不在å…ähœ‰çŸ­èµ\求值特性。如&&、||½{‰ï¼Œä¸¤ä¸ªæ•°éƒ½ä¼šè¿›è¡Œæ±‚å€û|¼Œè€Œä¸”™åºåºä¸å®šã€?/span></p><p><span style="font-size: 14px;">  (4)不要重蝲å…ähœ‰å†…置含义的操作符。重载操作符主要是å×I补普通操作符对类¾cÕdž‹æ•°æ®çš„作用。像赋值操作符、取地址操作½W¦ã€é€—号操作½W¦ç­‰å¯¹ç±»¾cÕdž‹æ“ä½œæ•°éƒ½æœ‰é»˜è®¤çš„含义ã€?/span></p><p><span style="font-size: 14px;">  (5)只能对已有的C++˜qç®—½W¦è¿›è¡Œé‡è½½ï¼Œä¸å…è®¸ç”¨æˆ¯‚‡ªå·±å®šä¹‰æ–°çš„运½Ž—符ã€?/span></p><p><span style="font-size: 14px;">  (6)¾lå¤§éƒ¨åˆ†çš„运½Ž—符可重载,除了成员讉K—®˜qç®—½W?åQŒä½œç”¨åŸŸ˜qç®—½W?:åQŒé•¿åº¦è¿½Ž—符sizeof以及条äšg˜qç®—½W?:ã€?/span></p><p><span style="font-size: 14px;">  (7)˜qç®—½W¦é‡è½½åŽä¸èƒ½æ”¹å˜˜qç®—½W¦çš„操作对象(操作æ•?的个数ã€?/span></p><p><span style="font-size: 14px;">  5.特例操作½W?quot;++"ã€?quot;--"的重è½?/span></p><p><span style="font-size: 14px;">  自增、自减操作符有前后之分,通过一个无意义的整数参数来区分。无参数的是前置˜qç®—½W¦ï¼Œå¸¦å‚数的是后¾|®è¿½Ž—符ã€?/span></p><p><span style="font-size: 14px;">  如:</span></p><p><span style="font-size: 14px;">  int operator++();  //前置</span></p><p><span style="font-size: 14px;">  int operator++(int x);  //后置</span></p><p><span style="font-size: 14px;">  自增操作½W¦å®žä¾?/span></p><p><span style="font-size: 14px;">  1 #include <iostream></span></p><p><span style="font-size: 14px;">  2 using namespace std;</span></p><p><span style="font-size: 14px;">  3</span></p><p><span style="font-size: 14px;">  4 class Array{</span></p><p><span style="font-size: 14px;">  5 public:</span></p><p><span style="font-size: 14px;">  6     Array(int _num){    ///初始化一个数¾l„,大小为_num</span></p><p><span style="font-size: 14px;">  7         this->a=new int[_num];</span></p><p><span style="font-size: 14px;">  8         this->num=_num;</span></p><p><span style="font-size: 14px;">  9         this->pos=0;</span></p><p><span style="font-size: 14px;">  10         for(int i=0;i<num;i=i+1)</span></p><p><span style="font-size: 14px;">  11             *((this->a)+i)=i;</span></p><p><span style="font-size: 14px;">  12     }</span></p><p><span style="font-size: 14px;">  13</span></p><p><span style="font-size: 14px;">  14     ~Array(){</span></p><p><span style="font-size: 14px;">  15         delete [] a;</span></p><p><span style="font-size: 14px;">  16     }</span></p><p><span style="font-size: 14px;">  17</span></p><p><span style="font-size: 14px;">  18     int operator++(){  ///++前置</span></p><p><span style="font-size: 14px;">  19         if(pos == num-1){</span></p><p><span style="font-size: 14px;">  20             cout<<"Fuck"<<endl;</span></p><p><span style="font-size: 14px;">  21             return 0;</span></p><p><span style="font-size: 14px;">  22         }</span></p><p><span style="font-size: 14px;">  23         return *((this->a)+(++pos));</span></p><p><span style="font-size: 14px;">  24     }</span></p><p><span style="font-size: 14px;">  25</span></p><p><span style="font-size: 14px;">  26     int operator++(int x){   ///++后置</span></p><p><span style="font-size: 14px;">  27         if(pos == num-1){</span></p><p><span style="font-size: 14px;">  28             cout<<"Fuck"<<endl;</span></p><p><span style="font-size: 14px;">  29             return 0;</span></p><p><span style="font-size: 14px;">  30         }</span></p><p><span style="font-size: 14px;">  31         return *((this->a)+(pos++));</span></p><p><span style="font-size: 14px;">  32     }</span></p><p><span style="font-size: 14px;">  33</span></p><p><span style="font-size: 14px;">  34     int *a;</span></p><p><span style="font-size: 14px;">  35     int pos;</span></p><p><span style="font-size: 14px;">  36     int num;</span></p><p><span style="font-size: 14px;">  37 };</span></p><p><span style="font-size: 14px;">  38</span></p><p><span style="font-size: 14px;">  39 int main()</span></p><p><span style="font-size: 14px;">  40 {</span></p><p><span style="font-size: 14px;">  41     Array array(100);</span></p><p><span style="font-size: 14px;">  42     cout<<"pos="<<array.pos<<endl;</span></p><p><span style="font-size: 14px;">  43     cout<<"pre_position:"<<(++array)<<endl;</span></p><p><span style="font-size: 14px;">  44     cout<<"pos="<<array.pos<<endl;</span></p><p><span style="font-size: 14px;">  45     cout<<"********************************************************"<<endl;</span></p><p><span style="font-size: 14px;">  46</span></p><p><span style="font-size: 14px;">  47     cout<<"pos="<<array.pos<<endl;</span></p><p><span style="font-size: 14px;">  48     cout<<"post_position:"<<(array++)<<endl;</span></p><p><span style="font-size: 14px;">  49     cout<<"pos="<<array.pos<<endl;</span></p><p><span style="font-size: 14px;">  50     cout<<"********************************************************"<<endl;</span></p><p><span style="font-size: 14px;">  51     return 0;</span></p><p><span style="font-size: 14px;">  52 }</span></p><p><br/></p></div> </div> </div> </div> <div class="clear"></div> <div class="foot"> <div class="foot_menu"> <ul> <li><a href="/About/">关于我们</a></li> <li><a href="/Advantage/">开发优åŠ?/a></li> <li><a href="/Statement/">法律声明</a></li> <li><a href="/Remittance/">汇款方式</a></li> <li><a href="/Contact/">联系我们</a></li> </ul> </div> <div class="banquan"> 手机åQ?8678812288 EåQMail:1069706080@qq.com<br /> 地址åQšå±±ä¸œçœ‹¹Žå—市舜耕èµ\泉城公园东门园内向北50¾c? 鲁ICPå¤?7011972å? 版权所æœ?008åQ?013 å±×ƒ¸œèµ¢å¯d信息¿U‘技有限公司<script type="text/javascript"> var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cscript src='" + _bdhmProtocol + "#/h.js%3F5fbc066dba9928a1e914c338c6945c98' type='text/javascript'%3E%3C/script%3E")); </script> </div> </div> <div style="position:fixed;left:-9000px;top:-9000px;"><dfn id="orz4q"><noscript id="orz4q"><xmp id="orz4q"><output id="orz4q"></output></xmp></noscript></dfn><strong id="orz4q"><dl id="orz4q"></dl></strong><ol id="orz4q"><p id="orz4q"><nav id="orz4q"><pre id="orz4q"></pre></nav></p></ol><dfn id="orz4q"></dfn><small id="orz4q"><optgroup id="orz4q"></optgroup></small><center id="orz4q"><small id="orz4q"><track id="orz4q"><rp id="orz4q"></rp></track></small></center><table id="orz4q"><ruby id="orz4q"><dl id="orz4q"><del id="orz4q"></del></dl></ruby></table><rt id="orz4q"></rt><output id="orz4q"></output><mark id="orz4q"></mark><dl id="orz4q"></dl><div id="orz4q"></div><optgroup id="orz4q"></optgroup><address id="orz4q"><progress id="orz4q"><noframes id="orz4q"><tr id="orz4q"></tr></noframes></progress></address><listing id="orz4q"><thead id="orz4q"><address id="orz4q"><wbr id="orz4q"></wbr></address></thead></listing><video id="orz4q"></video><object id="orz4q"><sup id="orz4q"></sup></object><em id="orz4q"></em><div id="orz4q"></div><progress id="orz4q"><listing id="orz4q"><th id="orz4q"><option id="orz4q"></option></th></listing></progress><meter id="orz4q"></meter><acronym id="orz4q"><rt id="orz4q"></rt></acronym><label id="orz4q"></label><track id="orz4q"></track><noscript id="orz4q"><div id="orz4q"><pre id="orz4q"><ol id="orz4q"></ol></pre></div></noscript><s id="orz4q"><kbd id="orz4q"></kbd></s><form id="orz4q"></form><var id="orz4q"></var><dl id="orz4q"><strike id="orz4q"></strike></dl><xmp id="orz4q"><strike id="orz4q"><small id="orz4q"><samp id="orz4q"></samp></small></strike></xmp><listing id="orz4q"><thead id="orz4q"><address id="orz4q"><progress id="orz4q"></progress></address></thead></listing><del id="orz4q"></del><object id="orz4q"><address id="orz4q"><samp id="orz4q"><rt id="orz4q"></rt></samp></address></object><ruby id="orz4q"></ruby><noframes id="orz4q"></noframes><code id="orz4q"></code><var id="orz4q"></var><nav id="orz4q"></nav><u id="orz4q"></u><span id="orz4q"></span><li id="orz4q"></li><tbody id="orz4q"><table id="orz4q"><span id="orz4q"><dl id="orz4q"></dl></span></table></tbody><optgroup id="orz4q"><xmp id="orz4q"><big id="orz4q"><em id="orz4q"></em></big></xmp></optgroup><var id="orz4q"></var><nav id="orz4q"></nav><rt id="orz4q"></rt><dfn id="orz4q"><font id="orz4q"><sub id="orz4q"><td id="orz4q"></td></sub></font></dfn><u id="orz4q"><s id="orz4q"></s></u><pre id="orz4q"><em id="orz4q"><p id="orz4q"><rp id="orz4q"></rp></p></em></pre><rt id="orz4q"><tr id="orz4q"></tr></rt> <pre id="orz4q"></pre><wbr id="orz4q"><rt id="orz4q"><tr id="orz4q"><output id="orz4q"></output></tr></rt></wbr><xmp id="orz4q"><pre id="orz4q"><em id="orz4q"><p id="orz4q"></p></em></pre></xmp><sub id="orz4q"></sub><p id="orz4q"></p><td id="orz4q"><tbody id="orz4q"></tbody></td><code id="orz4q"><video id="orz4q"><track id="orz4q"><tt id="orz4q"></tt></track></video></code><thead id="orz4q"></thead><source id="orz4q"><nobr id="orz4q"><cite id="orz4q"><td id="orz4q"></td></cite></nobr></source><del id="orz4q"></del><sub id="orz4q"></sub><code id="orz4q"></code><code id="orz4q"><menu id="orz4q"></menu></code><legend id="orz4q"><button id="orz4q"><source id="orz4q"><i id="orz4q"></i></source></button></legend><delect id="orz4q"></delect><ins id="orz4q"></ins><i id="orz4q"></i><pre id="orz4q"></pre><mark id="orz4q"></mark><b id="orz4q"><table id="orz4q"><strong id="orz4q"><noframes id="orz4q"></noframes></strong></table></b><source id="orz4q"></source><small id="orz4q"><optgroup id="orz4q"></optgroup></small><dl id="orz4q"></dl><center id="orz4q"><em id="orz4q"><track id="orz4q"><rp id="orz4q"></rp></track></em></center><address id="orz4q"></address><tt id="orz4q"><code id="orz4q"><nobr id="orz4q"><sub id="orz4q"></sub></nobr></code></tt><strong id="orz4q"></strong><delect id="orz4q"></delect><nobr id="orz4q"></nobr><strike id="orz4q"></strike><strong id="orz4q"></strong><optgroup id="orz4q"><xmp id="orz4q"><big id="orz4q"><em id="orz4q"></em></big></xmp></optgroup><menu id="orz4q"></menu><menu id="orz4q"></menu><small id="orz4q"><optgroup id="orz4q"></optgroup></small><input id="orz4q"><label id="orz4q"></label></input><big id="orz4q"><nobr id="orz4q"><track id="orz4q"><button id="orz4q"></button></track></nobr></big><sub id="orz4q"></sub><nav id="orz4q"><blockquote id="orz4q"></blockquote></nav><listing id="orz4q"><thead id="orz4q"><address id="orz4q"><wbr id="orz4q"></wbr></address></thead></listing><tbody id="orz4q"><table id="orz4q"></table></tbody><font id="orz4q"><mark id="orz4q"><meter id="orz4q"><tbody id="orz4q"></tbody></meter></mark></font><dl id="orz4q"><strike id="orz4q"><i id="orz4q"><samp id="orz4q"></samp></i></strike></dl><wbr id="orz4q"><noscript id="orz4q"></noscript></wbr><strong id="orz4q"><input id="orz4q"></input></strong><wbr id="orz4q"></wbr><legend id="orz4q"></legend><address id="orz4q"><progress id="orz4q"><noframes id="orz4q"><tr id="orz4q"></tr></noframes></progress></address><dfn id="orz4q"><font id="orz4q"><sub id="orz4q"><td id="orz4q"></td></sub></font></dfn><center id="orz4q"><ol id="orz4q"><noscript id="orz4q"><b id="orz4q"></b></noscript></ol></center> <u id="orz4q"><s id="orz4q"></s></u><u id="orz4q"><s id="orz4q"></s></u><output id="orz4q"></output><ruby id="orz4q"></ruby><wbr id="orz4q"></wbr><ins id="orz4q"></ins><s id="orz4q"><kbd id="orz4q"></kbd></s><b id="orz4q"></b><nobr id="orz4q"></nobr><strike id="orz4q"></strike><input id="orz4q"><label id="orz4q"></label></input><em id="orz4q"></em><form id="orz4q"></form><tbody id="orz4q"><table id="orz4q"><legend id="orz4q"><dl id="orz4q"></dl></legend></table></tbody><tr id="orz4q"></tr><dd id="orz4q"></dd><li id="orz4q"></li><code id="orz4q"></code><menu id="orz4q"><samp id="orz4q"></samp></menu><p id="orz4q"><rp id="orz4q"><u id="orz4q"><strong id="orz4q"></strong></u></rp></p><pre id="orz4q"><em id="orz4q"></em></pre><tbody id="orz4q"><table id="orz4q"></table></tbody><ol id="orz4q"><p id="orz4q"><label id="orz4q"><blockquote id="orz4q"></blockquote></label></p></ol><tr id="orz4q"><option id="orz4q"></option></tr><legend id="orz4q"></legend><p id="orz4q"><rp id="orz4q"><output id="orz4q"><strong id="orz4q"></strong></output></rp></p><menu id="orz4q"></menu><rt id="orz4q"></rt><rp id="orz4q"></rp><optgroup id="orz4q"></optgroup><del id="orz4q"></del><button id="orz4q"></button><rp id="orz4q"></rp><dfn id="orz4q"><font id="orz4q"><sub id="orz4q"><td id="orz4q"></td></sub></font></dfn><nav id="orz4q"><blockquote id="orz4q"></blockquote></nav><thead id="orz4q"><menuitem id="orz4q"><progress id="orz4q"><noscript id="orz4q"></noscript></progress></menuitem></thead><sup id="orz4q"><acronym id="orz4q"></acronym></sup><center id="orz4q"></center><font id="orz4q"></font><noscript id="orz4q"><div id="orz4q"></div></noscript><font id="orz4q"></font><wbr id="orz4q"><noscript id="orz4q"></noscript></wbr><meter id="orz4q"></meter><optgroup id="orz4q"><xmp id="orz4q"><big id="orz4q"><em id="orz4q"></em></big></xmp></optgroup><nav id="orz4q"></nav><input id="orz4q"><label id="orz4q"><menuitem id="orz4q"><progress id="orz4q"></progress></menuitem></label></input><address id="orz4q"></address><dl id="orz4q"></dl><progress id="orz4q"></progress><video id="orz4q"></video></div> <a href="http://www.themmauniversity.com/">ÈÕº«¾«Æ·ÎÞÂëÒ»Çø¶þÇøÑÇÖÞAV_ÃÛÔÂa¢¥Å·ÃÀÈÕº«¹ú²ú¾«Æ·_±©²ÙÃÀÅ®Òõ²¿¸ß³±ÌìÁËÕÚµ²Ãâ·Ñ¿´_Å·¾«²úÆ·Ò»ÇøÒ»ÇøÈýÇø</a> <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body> </html>