锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲另类视频在线观看,亚洲色大网站WWW永久网站,亚洲三级在线免费观看http://www.tkk7.com/babymouse/category/35790.html鍔姏濂嬫枟鈥斺擨 believe I can flyzh-cnThu, 06 Nov 2008 15:46:48 GMTThu, 06 Nov 2008 15:46:48 GMT60Vector褰撳仛寮曠敤鍦ㄥ湪鍑芥暟涓紶閫?/title><link>http://www.tkk7.com/babymouse/archive/2008/10/10/233536.html</link><dc:creator>Robert Su</dc:creator><author>Robert Su</author><pubDate>Fri, 10 Oct 2008 03:10:00 GMT</pubDate><guid>http://www.tkk7.com/babymouse/archive/2008/10/10/233536.html</guid><wfw:comment>http://www.tkk7.com/babymouse/comments/233536.html</wfw:comment><comments>http://www.tkk7.com/babymouse/archive/2008/10/10/233536.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/babymouse/comments/commentRss/233536.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/babymouse/services/trackbacks/233536.html</trackback:ping><description><![CDATA[<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000">#include </span><span style="color: #000000">"</span><span style="color: #000000">stdafx.h</span><span style="color: #000000">"</span><span style="color: #000000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />#include </span><span style="color: #000000"><</span><span style="color: #000000">iostream</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />#include </span><span style="color: #000000"><</span><span style="color: #000000">vector</span><span style="color: #000000">></span><span style="color: #000000">   <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">using</span><span style="color: #000000">   </span><span style="color: #0000ff">namespace</span><span style="color: #000000"> std;   <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">void</span><span style="color: #000000">   vect(vector</span><span style="color: #000000"><</span><span style="color: #0000ff">int</span><span style="color: #000000">></span><span style="color: #000000">   </span><span style="color: #000000">&</span><span style="color: #000000">ve)   <br /> <img id="Codehighlighter1_123_160_Open_Image" onclick="this.style.display='none'; Codehighlighter1_123_160_Open_Text.style.display='none'; Codehighlighter1_123_160_Closed_Image.style.display='inline'; Codehighlighter1_123_160_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_123_160_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_123_160_Closed_Text.style.display='none'; Codehighlighter1_123_160_Open_Image.style.display='inline'; Codehighlighter1_123_160_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" /></span><span id="Codehighlighter1_123_160_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_123_160_Open_Text"><span style="color: #000000">{   <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />          ve.push_back(</span><span style="color: #000000">100</span><span style="color: #000000">);   <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />}</span></span><span style="color: #000000">   <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">void</span><span style="color: #000000">   main()   <br /> <img id="Codehighlighter1_187_346_Open_Image" onclick="this.style.display='none'; Codehighlighter1_187_346_Open_Text.style.display='none'; Codehighlighter1_187_346_Closed_Image.style.display='inline'; Codehighlighter1_187_346_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_187_346_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_187_346_Closed_Text.style.display='none'; Codehighlighter1_187_346_Open_Image.style.display='inline'; Codehighlighter1_187_346_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" /></span><span id="Codehighlighter1_187_346_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_187_346_Open_Text"><span style="color: #000000">{   <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />          vector</span><span style="color: #000000"><</span><span style="color: #0000ff">int</span><span style="color: #000000">></span><span style="color: #000000">   v;   <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />          vect(v);<br /> <img id="Codehighlighter1_306_329_Open_Image" onclick="this.style.display='none'; Codehighlighter1_306_329_Open_Text.style.display='none'; Codehighlighter1_306_329_Closed_Image.style.display='inline'; Codehighlighter1_306_329_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_306_329_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_306_329_Closed_Text.style.display='none'; Codehighlighter1_306_329_Open_Image.style.display='inline'; Codehighlighter1_306_329_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />          </span><span style="color: #0000ff">for</span><span style="color: #000000"> (vector</span><span style="color: #000000"><</span><span style="color: #0000ff">int</span><span style="color: #000000">></span><span style="color: #000000">::iterator it </span><span style="color: #000000">=</span><span style="color: #000000"> v.begin();it </span><span style="color: #000000">!=</span><span style="color: #000000"> v.end();</span><span style="color: #000000">++</span><span style="color: #000000">it)</span><span id="Codehighlighter1_306_329_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_306_329_Open_Text"><span style="color: #000000">{ <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />          cout</span><span style="color: #000000"><<*</span><span style="color: #000000">it</span><span style="color: #000000"><<</span><span style="color: #000000">endl;}</span></span><span style="color: #000000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />          cin.</span><span style="color: #0000ff">get</span><span style="color: #000000">();<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />}</span></span></div> <img src ="http://www.tkk7.com/babymouse/aggbug/233536.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/babymouse/" target="_blank">Robert Su</a> 2008-10-10 11:10 <a href="http://www.tkk7.com/babymouse/archive/2008/10/10/233536.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鐢╲ector鎵撳嵃涔?jié)涔?jié)涔樻硶琛?/title><link>http://www.tkk7.com/babymouse/archive/2008/10/08/233152.html</link><dc:creator>Robert Su</dc:creator><author>Robert Su</author><pubDate>Wed, 08 Oct 2008 07:34:00 GMT</pubDate><guid>http://www.tkk7.com/babymouse/archive/2008/10/08/233152.html</guid><wfw:comment>http://www.tkk7.com/babymouse/comments/233152.html</wfw:comment><comments>http://www.tkk7.com/babymouse/archive/2008/10/08/233152.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/babymouse/comments/commentRss/233152.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/babymouse/services/trackbacks/233152.html</trackback:ping><description><![CDATA[<p> </p> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000">#include </span><span style="color: #000000"><</span><span style="color: #000000">iostream</span><span style="color: #000000">></span><span style="color: #000000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />#include </span><span style="color: #000000"><</span><span style="color: #000000">vector</span><span style="color: #000000">></span><span style="color: #000000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">using</span><span style="color: #000000"> </span><span style="color: #0000ff">namespace</span><span style="color: #000000"> std; <br /> <img id="Codehighlighter1_73_381_Open_Image" onclick="this.style.display='none'; Codehighlighter1_73_381_Open_Text.style.display='none'; Codehighlighter1_73_381_Closed_Image.style.display='inline'; Codehighlighter1_73_381_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_73_381_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_73_381_Closed_Text.style.display='none'; Codehighlighter1_73_381_Open_Image.style.display='inline'; Codehighlighter1_73_381_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" /></span><span style="color: #0000ff">int</span><span style="color: #000000"> main()</span><span id="Codehighlighter1_73_381_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_73_381_Open_Text"><span style="color: #000000">{ <br /> <img id="Codehighlighter1_87_105_Open_Image" onclick="this.style.display='none'; Codehighlighter1_87_105_Open_Text.style.display='none'; Codehighlighter1_87_105_Closed_Image.style.display='inline'; Codehighlighter1_87_105_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_87_105_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_87_105_Closed_Text.style.display='none'; Codehighlighter1_87_105_Open_Image.style.display='inline'; Codehighlighter1_87_105_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" /></span><span style="color: #0000ff">int</span><span style="color: #000000"> ia[] </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span id="Codehighlighter1_87_105_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_87_105_Open_Text"><span style="color: #000000">{</span><span style="color: #000000">1</span><span style="color: #000000">,</span><span style="color: #000000">2</span><span style="color: #000000">,</span><span style="color: #000000">3</span><span style="color: #000000">,</span><span style="color: #000000">4</span><span style="color: #000000">,</span><span style="color: #000000">5</span><span style="color: #000000">,</span><span style="color: #000000">6</span><span style="color: #000000">,</span><span style="color: #000000">7</span><span style="color: #000000">,</span><span style="color: #000000">8</span><span style="color: #000000">,</span><span style="color: #000000">9</span><span style="color: #000000">}</span></span><span style="color: #000000">; <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />vector</span><span style="color: #000000"><</span><span style="color: #0000ff">int</span><span style="color: #000000">></span><span style="color: #000000"> ivec(ia,ia</span><span style="color: #000000">+</span><span style="color: #000000">9</span><span style="color: #000000">); <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />vector</span><span style="color: #000000"><</span><span style="color: #0000ff">int</span><span style="color: #000000">></span><span style="color: #000000"> tvec(ia,ia</span><span style="color: #000000">+</span><span style="color: #000000">9</span><span style="color: #000000">); <br /> <img id="Codehighlighter1_232_378_Open_Image" onclick="this.style.display='none'; Codehighlighter1_232_378_Open_Text.style.display='none'; Codehighlighter1_232_378_Closed_Image.style.display='inline'; Codehighlighter1_232_378_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_232_378_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_232_378_Closed_Text.style.display='none'; Codehighlighter1_232_378_Open_Image.style.display='inline'; Codehighlighter1_232_378_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" /></span><span style="color: #0000ff">for</span><span style="color: #000000"> (vector</span><span style="color: #000000"><</span><span style="color: #0000ff">int</span><span style="color: #000000">></span><span style="color: #000000">::iterator it </span><span style="color: #000000">=</span><span style="color: #000000"> ivec.begin();it </span><span style="color: #000000">!=</span><span style="color: #000000"> ivec.end();</span><span style="color: #000000">++</span><span style="color: #000000">it)</span><span id="Codehighlighter1_232_378_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_232_378_Open_Text"><span style="color: #000000">{ <br /> <img id="Codehighlighter1_302_375_Open_Image" onclick="this.style.display='none'; Codehighlighter1_302_375_Open_Text.style.display='none'; Codehighlighter1_302_375_Closed_Image.style.display='inline'; Codehighlighter1_302_375_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_302_375_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_302_375_Closed_Text.style.display='none'; Codehighlighter1_302_375_Open_Image.style.display='inline'; Codehighlighter1_302_375_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" /></span><span style="color: #0000ff">for</span><span style="color: #000000"> (vector</span><span style="color: #000000"><</span><span style="color: #0000ff">int</span><span style="color: #000000">></span><span style="color: #000000">::iterator iv </span><span style="color: #000000">=</span><span style="color: #000000"> tvec.begin();iv </span><span style="color: #000000">!=</span><span style="color: #000000"> tvec.end();</span><span style="color: #000000">++</span><span style="color: #000000">iv)</span><span id="Codehighlighter1_302_375_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_302_375_Open_Text"><span style="color: #000000">{ <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />cout</span><span style="color: #000000"><<*</span><span style="color: #000000">it</span><span style="color: #000000"><<</span><span style="color: #000000">"</span><span style="color: #000000">*</span><span style="color: #000000">"</span><span style="color: #000000"><<*</span><span style="color: #000000">iv</span><span style="color: #000000"><<</span><span style="color: #000000">"</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000"><<*</span><span style="color: #000000">it </span><span style="color: #000000">*</span><span style="color: #000000"> </span><span style="color: #000000">*</span><span style="color: #000000">iv</span><span style="color: #000000"><<</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">; <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #0000ff">if</span><span style="color: #000000">(</span><span style="color: #000000">*</span><span style="color: #000000">iv </span><span style="color: #000000">==</span><span style="color: #000000"> </span><span style="color: #000000">9</span><span style="color: #000000">) <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />cout</span><span style="color: #000000"><<</span><span style="color: #000000">endl; <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />}</span></span><span style="color: #000000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />}</span></span><span style="color: #000000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />}</span></span><span style="color: #000000"> </span></div> <img src ="http://www.tkk7.com/babymouse/aggbug/233152.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/babymouse/" target="_blank">Robert Su</a> 2008-10-08 15:34 <a href="http://www.tkk7.com/babymouse/archive/2008/10/08/233152.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>涓閬撳叧浜庡爢鏍堢殑闈㈣瘯棰楥++http://www.tkk7.com/babymouse/archive/2008/08/08/220960.htmlRobert SuRobert SuFri, 08 Aug 2008 10:14:00 GMThttp://www.tkk7.com/babymouse/archive/2008/08/08/220960.htmlhttp://www.tkk7.com/babymouse/comments/220960.htmlhttp://www.tkk7.com/babymouse/archive/2008/08/08/220960.html#Feedback0http://www.tkk7.com/babymouse/comments/commentRss/220960.htmlhttp://www.tkk7.com/babymouse/services/trackbacks/220960.html 

#include <stdio.h> 
void ShowMe() 

  printf(
"showme\n"); 

int add(int value,int value1) 

  
int * pAdd=&value; 
  
int* value2=pAdd-1
  
*value2=*value2-0x0e
  
return (value+value1); 

/* 
*/ 
int add3v(int v,int v1,int v2) 

  
return (v+v1+v2); 

int main(int argc, char* argv[]) 
{    ShowMe(); 
      
int temp=add(10,12); 
      
int te=add3v(3,4,5); 
        printf(
"%d,%d",temp,te); 

        
return 0
}

榪欎釜紼嬪簭杈撳叆鍦╒C涓嬫槸涓鐩存槸showMe錛屾寰幆
緇撴灉鏄細涓嶅仠鐨勮皟鐢╯howme()銆?
showme
showme
showme
showme
showme
showme
showme
銆傘傘?


璇鋒暀浜嗗悓瀛︼紝鎵懼嚭浜嗙瓟妗?br /> 榪欎釜鏄嚜鍔ㄥ彉閲忓瓨鍌ㄦ爤錛屼紶緇欏嚱鏁扮殑鍙傛暟鏄互鏍堣繖縐嶇粨鏋勬潵寮杈熸殏鏃跺瓨璐┖闂寸殑銆傜幇鍦ㄧ殑C++緙栬瘧鍣ㄥ鐞嗗嚱鏁板弬鏁板悗鎸夌収鍙傛暟琛ㄧ殑欏哄簭寰涓存椂寮杈熺殑鏍堢┖闂翠腑鍘嬪叆鏁版嵁錛屼互榪欐紼嬪簭鏉ヨ~鍏堝帇榪泇alue錛屽啀鍘嬭繘value1錛岃屽嚱鏁板唴閮ㄨ鍙ョ殑鎵ц浠g爜涔熸槸浠ユ爤鐨勫艦寮忓瓨璐殑
 ShowMe();榪欐紼嬪簭鐨勬墽琛屼唬鐮佹槸鏈鍏堣鍘嬪叆鍑芥暟鐨勬墽琛屾爤涓殑錛宨nt temp=add(10,12); 鍦板潃瑕侀珮浜嶴howMe();榪欎釜鍑芥暟鐨勫湴鍧
錛宨nt temp=add(10,12); 鎶婂湴鍧鍙堟敼鍥為噷浣庡湴鍧銆?br /> 灞閮ㄥ嚱鏁扮殑鍙傛暟
鍑芥暟鍐呬唬鐮佺殑鎵ц錛岄兘鏄寜鐓ф爤榪欑鏂規(guī)硶榪涜鐨?br />
榪欓亾棰樼洰涓嶈兘璇存病鏈夋剰鎬濓紝涓昏鑰冨療浜嗗熀紜鐨勬眹緙栦互鍙婂爢鏍堢煡璇嗐?
int* value2=pAdd-1;
*value2=*value2-0x0e;

榪欓噷鏄庢樉淇敼浜哸dd鍑芥暟榪斿洖鍦板潃錛屽垰鎭板ソshowme()鐨勫叆鍙e湴鍧錛屾墍浠ュ氨
add->showme->add->showme ...
涓嶅仠鐨勮皟鐢ㄤ笅鍘匯?




Robert Su 2008-08-08 18:14 鍙戣〃璇勮
]]>
鏁扮粍褰掑茍鎺掑簭http://www.tkk7.com/babymouse/archive/2008/08/08/220927.htmlRobert SuRobert SuFri, 08 Aug 2008 07:26:00 GMThttp://www.tkk7.com/babymouse/archive/2008/08/08/220927.htmlhttp://www.tkk7.com/babymouse/comments/220927.htmlhttp://www.tkk7.com/babymouse/archive/2008/08/08/220927.html#Feedback0http://www.tkk7.com/babymouse/comments/commentRss/220927.htmlhttp://www.tkk7.com/babymouse/services/trackbacks/220927.html鍘誨勾鐨勪竴閬撻潰璇曢錛屾兂璧鋒潵浜嗭紝欏洪亶鎶婁唬鐮佽創(chuàng)鍒拌繖閲?br /> 涓や釜鏁扮粍鍚堝茍鍒頒竴璧鳳紝鐒跺悗鎺掑簭錛涚敤set紜疄姣旇緝鏂歸潰浜?/p>
#include<iostream>
#include
<set>  
#include
<iterator>
#include
<algorithm>  
using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{

    
int a[5]={2,5,1,2,3    };
    
int b[10]={8,9,5,9,7,1,3,4,4,6};

    
set<int>ist(a,a+sizeof(a)/sizeof(a[0])); 
    
set<int>::iterator  itor; 
    
set<int>it(b,b+sizeof(b)/sizeof(b[0]));
    
set<int>::iterator p;
    
for( itor = ist.begin();itor !=ist.end();++itor)   
    { 
        cout
<<*itor<<endl;
    }
    
for(p=it.begin();p!=it.end();++p)
    { 
        cout
<<*p<<endl;

    }
    cout
<<"鍚堝茍鍚庯細"<<endl;  

    
set<int>su;
    
set<int>::iterator q;
    set_union(ist.begin(),ist.end(),it.begin(),it.end(),inserter(su,su.begin()));

    
for(q=su.begin();q!=su.end();++q)
    {
        cout
<<*q<<endl;
    }
    
return 0;
}

}


Robert Su 2008-08-08 15:26 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 久久国产亚洲精品麻豆| 亚洲av无码国产精品色在线看不卡 | 91香蕉视频免费| 亚洲成电影在线观看青青| 免费无码一区二区三区| 亚洲精品国产成人中文| 国产91免费视频| 亚洲看片无码在线视频 | 一级毛片免费毛片毛片| 免费又黄又爽又猛的毛片| 免费人成再在线观看网站| 久久久久亚洲精品无码网址| 精品一区二区三区免费观看| 精品久久香蕉国产线看观看亚洲| 国产色无码精品视频免费| 精品亚洲麻豆1区2区3区| 希望影院高清免费观看视频| 亚洲欧美日韩综合俺去了| 日韩亚洲精品福利| CAOPORM国产精品视频免费| 亚洲gv猛男gv无码男同短文| 免费视频爱爱太爽了| 亚洲av无码一区二区三区天堂| 免费国产在线观看| 99精品视频在线观看免费| 亚洲国产精品线观看不卡| 又粗又大又长又爽免费视频| 国产午夜精品免费一区二区三区| 亚洲国产片在线观看| 国产成人在线免费观看| 精品免费视在线观看| 亚洲AV无码专区在线亚| 亚洲第一区精品日韩在线播放| 久久国产乱子精品免费女| 亚洲国产激情在线一区| 久久久久亚洲av毛片大| 四虎免费影院ww4164h| 免费观看四虎精品成人| 亚洲精品在线免费看| 亚洲精品视频免费观看| 97国产免费全部免费观看|