锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲精品国产美女久久久,久久久无码精品亚洲日韩软件,久久无码精品一区二区三区http://www.shnenglu.com/jaysoon/category/10408.htmlzh-cnWed, 20 Jul 2011 20:53:08 GMTWed, 20 Jul 2011 20:53:08 GMT60璧嬪艱繍綆楃鍜屽鍒舵瀯閫犲嚱鏁?/title><link>http://www.shnenglu.com/jaysoon/archive/2009/04/29/81477.html</link><dc:creator>jaysoon</dc:creator><author>jaysoon</author><pubDate>Wed, 29 Apr 2009 10:32:00 GMT</pubDate><guid>http://www.shnenglu.com/jaysoon/archive/2009/04/29/81477.html</guid><wfw:comment>http://www.shnenglu.com/jaysoon/comments/81477.html</wfw:comment><comments>http://www.shnenglu.com/jaysoon/archive/2009/04/29/81477.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.shnenglu.com/jaysoon/comments/commentRss/81477.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/jaysoon/services/trackbacks/81477.html</trackback:ping><description><![CDATA[<p align=left>     <strong> 璧嬪艱繍綆楃</strong>鍜?strong>澶嶅埗鏋勯犲嚱鏁?/strong>閮芥槸鐢ㄥ凡瀛樺湪A鐨勫璞℃潵鍒涘緩鍙︿竴涓璞銆備笉鍚屼箣澶勫湪浜庯細璧嬪艱繍綆楃澶勭悊涓や釜宸叉湁瀵硅薄錛屽嵆璧嬪煎墠B搴旇鏄瓨鍦ㄧ殑錛涘鍒舵瀯閫犲嚱鏁版槸鐢熸垚涓涓叏鏂扮殑瀵硅薄錛屽嵆璋冪敤澶嶅埗鏋勯犲嚱鏁頒箣鍓岯涓嶅瓨鍦ㄣ?nbsp;  <br>      CTemp a(b);      //澶嶅埗鏋勯犲嚱鏁幫紝C++椋庢牸鐨勫垵濮嬪寲<br>      CTemp a=b;      //浠嶇劧鏄鍒舵瀯閫犲嚱鏁幫紝涓嶈繃榪欑椋庢牸鍙槸涓轟簡涓嶤鍏煎錛屼笌涓婇潰鐨勬晥鏋滀竴鏍?br>      鍦ㄨ繖涔嬪墠a涓嶅瓨鍦紝鎴栬呰榪樻湭鏋勯犲ソ銆?br><br>      CTemp a;<br>      a=b;               //璧嬪艱繍綆楃<br>      鍦ㄨ繖涔嬪墠a宸茬粡閫氳繃榛樿鏋勯犲嚱鏁版瀯閫犲畬鎴愩?br></p>       鎴戣寰楀皢璧嬪艱繍綆楃縐頒負“<strong>璧嬪兼瀯閫犲嚱鏁?/strong>”鏄敊璇殑錛屾瀯閫犲嚱鏁板彂鐢熷湪瀵硅薄鍒涘緩鏃舵湡錛岃岃祴鍊兼槸榪愮畻絎︼紝鍙戠敓鍦?#8220;榪愮畻”鏃舵湡錛岃祴鍊艱繍綆楀墠錛屽璞″凡緇忔瀯閫犲畬鎴愶紝鎵浠ヤ笉鑳界О涔嬩負“鏋勯犲嚱鏁?#8221;銆?br>      涓瀹朵箣璦錛侊紒 <img src ="http://www.shnenglu.com/jaysoon/aggbug/81477.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/jaysoon/" target="_blank">jaysoon</a> 2009-04-29 18:32 <a href="http://www.shnenglu.com/jaysoon/archive/2009/04/29/81477.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>C++鏄被灞傛淇濇姢鐨?/title><link>http://www.shnenglu.com/jaysoon/archive/2009/04/29/81474.html</link><dc:creator>jaysoon</dc:creator><author>jaysoon</author><pubDate>Wed, 29 Apr 2009 09:57:00 GMT</pubDate><guid>http://www.shnenglu.com/jaysoon/archive/2009/04/29/81474.html</guid><wfw:comment>http://www.shnenglu.com/jaysoon/comments/81474.html</wfw:comment><comments>http://www.shnenglu.com/jaysoon/archive/2009/04/29/81474.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/jaysoon/comments/commentRss/81474.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/jaysoon/services/trackbacks/81474.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.shnenglu.com/Images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #0000ff">class</span><span style="color: #000000"> CStack<br /><img id="Codehighlighter1_13_197_Open_Image" onclick="this.style.display='none'; Codehighlighter1_13_197_Open_Text.style.display='none'; Codehighlighter1_13_197_Closed_Image.style.display='inline'; Codehighlighter1_13_197_Closed_Text.style.display='inline';" src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align="top"><img id="Codehighlighter1_13_197_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_13_197_Closed_Text.style.display='none'; Codehighlighter1_13_197_Open_Image.style.display='inline'; Codehighlighter1_13_197_Open_Text.style.display='inline';" src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedBlock.gif" align="top"></span><span id="Codehighlighter1_13_197_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.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_13_197_Open_Text"><span style="color: #000000">{<br /><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #0000ff">public</span><span style="color: #000000">:<br /><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align="top" alt="" />       CStack();  <br /><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align="top" alt="" />       CStack(</span><span style="color: #0000ff">int</span><span style="color: #000000">  size); <br /><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align="top" alt="" />       CStack(</span><span style="color: #0000ff">const</span><span style="color: #000000"> CStack</span><span style="color: #000000">&</span><span style="color: #000000"> st);   </span><span style="color: #008000">//</span><span style="color: #008000">澶嶅埗鏋勯犲嚱鏁幫紝娉ㄦ剰浣跨敤寮曠敤</span><span style="color: #008000"><br /><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #0000ff">private</span><span style="color: #000000">:    <br /><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align="top" alt="" />       </span><span style="color: #0000ff">int</span><span style="color: #000000"> _size;<br /><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align="top" alt="" />       </span><span style="color: #0000ff">int</span><span style="color: #000000"> _count;<br /><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align="top" alt="" />       </span><span style="color: #0000ff">int</span><span style="color: #000000">*</span><span style="color: #000000"> _s;           <br /><img src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />}</span></span><span style="color: #000000">;<br /><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align="top" alt="" />CStack::CStack(</span><span style="color: #0000ff">const</span><span style="color: #000000"> CStack</span><span style="color: #000000">&</span><span style="color: #000000"> st)<br /><img id="Codehighlighter1_233_622_Open_Image" onclick="this.style.display='none'; Codehighlighter1_233_622_Open_Text.style.display='none'; Codehighlighter1_233_622_Closed_Image.style.display='inline'; Codehighlighter1_233_622_Closed_Text.style.display='inline';" src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align="top"><img id="Codehighlighter1_233_622_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_233_622_Closed_Text.style.display='none'; Codehighlighter1_233_622_Open_Image.style.display='inline'; Codehighlighter1_233_622_Open_Text.style.display='inline';" src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedBlock.gif" align="top"></span><span id="Codehighlighter1_233_622_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.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_233_622_Open_Text"><span style="color: #000000">{<br /><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align="top" alt="" />      _size</span><span style="color: #000000">=</span><span style="color: #000000">st._size;<br /><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align="top" alt="" />      </span><span style="color: #0000ff">if</span><span style="color: #000000">(_size </span><span style="color: #000000">></span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000">)<br /><img id="Codehighlighter1_283_488_Open_Image" onclick="this.style.display='none'; Codehighlighter1_283_488_Open_Text.style.display='none'; Codehighlighter1_283_488_Closed_Image.style.display='inline'; Codehighlighter1_283_488_Closed_Text.style.display='inline';" src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"><img id="Codehighlighter1_283_488_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_283_488_Closed_Text.style.display='none'; Codehighlighter1_283_488_Open_Image.style.display='inline'; Codehighlighter1_283_488_Open_Text.style.display='inline';" src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align="top">      </span><span id="Codehighlighter1_283_488_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.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_283_488_Open_Text"><span style="color: #000000">{<br /><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align="top" alt="" />               _s </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> </span><span style="color: #0000ff">int</span><span style="color: #000000">[_size];<br /><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align="top" alt="" />               _count </span><span style="color: #000000">=</span><span style="color: #000000"> st._count;                  </span><span style="color: #008000">//</span><span style="color: #008000">璁塊棶st鐨勭鏈夋暟鎹?/span><span style="color: #008000"><br /><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">               </span><span style="color: #0000ff">for</span><span style="color: #000000">(</span><span style="color: #0000ff">int</span><span style="color: #000000"> i</span><span style="color: #000000">=</span><span style="color: #000000">0</span><span style="color: #000000">; i</span><span style="color: #000000"><</span><span style="color: #000000">_count; </span><span style="color: #000000">++</span><span style="color: #000000">i)<br /><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align="top" alt="" />                       _s[i] </span><span style="color: #000000">=</span><span style="color: #000000"> st._s[i];             <br /><img src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />      }</span></span><span style="color: #000000">         <br /><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align="top" alt="" />      </span><span style="color: #0000ff">else</span><span style="color: #000000"><br /><img id="Codehighlighter1_516_576_Open_Image" onclick="this.style.display='none'; Codehighlighter1_516_576_Open_Text.style.display='none'; Codehighlighter1_516_576_Closed_Image.style.display='inline'; Codehighlighter1_516_576_Closed_Text.style.display='inline';" src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"><img id="Codehighlighter1_516_576_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_516_576_Closed_Text.style.display='none'; Codehighlighter1_516_576_Open_Image.style.display='inline'; Codehighlighter1_516_576_Open_Text.style.display='inline';" src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align="top">      </span><span id="Codehighlighter1_516_576_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.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_516_576_Open_Text"><span style="color: #000000">{<br /><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align="top" alt="" />          _s </span><span style="color: #000000">=</span><span style="color: #000000">  </span><span style="color: #000000">0</span><span style="color: #000000">;<br /><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align="top" alt="" />          _count </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000">;           <br /><img src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />      }</span></span><span style="color: #000000">                                            <br /><img src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />}</span></span></div> <p><strong>      鍦–++妯″瀷涓紝淇濇姢鏄湪綾誨眰嬈″簲鐢ㄧ殑錛岃屼笉鏄湪瀵硅薄灞傛銆?br /></strong>      榪欏彞璇濈殑鎰忔濇槸錛岀被鐨勪換鎰忎竴涓璞″彲浠ヨ闂綾葷殑鍙︿竴涓璞$殑鍐呴儴鐨勪換浣曚笢瑗褲傚湪涓婇潰鐨勪緥瀛愪腑錛屽鍒舵瀯閫犲嚱鏁頒腑鐨勮祴鍊艱鍙size = st._size;璁塊棶浜唖t鐨勭鏈夋暟鎹?br />      榪欒鏄庯紝C++涓殑璁塊棶淇濇姢鏄寜鐓у眰嬈$殑鍘熷垯瀹氫箟鐨勶紝閭d箞浠涔堜簨瀵硅薄灞傛鐨勪繚鎶ゅ憿錛?br />      鍦⊿malltalk涓紝鎴愬憳鍑芥暟鍙互褰撳墠瀵硅薄鐨勭鏈夋暟鎹紝浣嗕笉鑳借闂換浣曞叾瀹冨璞$殑縐佹湁鏁版嵁錛屽嵆浣垮畠浠睘浜庣浉鍚岀殑綾匯?br /></p><img src ="http://www.shnenglu.com/jaysoon/aggbug/81474.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/jaysoon/" target="_blank">jaysoon</a> 2009-04-29 17:57 <a href="http://www.shnenglu.com/jaysoon/archive/2009/04/29/81474.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>C++涓叧浜庢瀯閫犲嚱鏁扮殑鍑犱釜闂http://www.shnenglu.com/jaysoon/archive/2009/04/29/81470.htmljaysoonjaysoonWed, 29 Apr 2009 09:45:00 GMThttp://www.shnenglu.com/jaysoon/archive/2009/04/29/81470.htmlhttp://www.shnenglu.com/jaysoon/comments/81470.htmlhttp://www.shnenglu.com/jaysoon/archive/2009/04/29/81470.html#Feedback0http://www.shnenglu.com/jaysoon/comments/commentRss/81470.htmlhttp://www.shnenglu.com/jaysoon/services/trackbacks/81470.html棣栧厛鎴戜滑緇欏嚭涓涓被鐨勪緥瀛?br>

class CStack
{
public:
       CStack();  
       CStack(
int  size=100); 
       CStack(
const CStack& st);   //澶嶅埗鏋勯犲嚱鏁幫紝娉ㄦ剰浣跨敤寮曠敤
private:    
       
int _size;
       
int _count;
       
int* _s;           
}
;
CStack::CStack(
const CStack& st)
{
      _size
=st._size;
      
if(_size > 0)
      
{
               _s 
= new int[_size];
               _count 
= st._count;         
               
for(int i=0; i<_count; ++i)
                       _s[i] 
= st._s[i];             
      }
         
      
else
      
{
          _s 
=  0;
          _count 
= 0;           
      }
                                            
}


int main()
{
    CStack st;
    
return 0;    
}



涓. 鍦?strong>main()涓紝瀵硅薄st涓嶇煡閬撹璋冪敤鍝竴涓瀯閫犲嚱鏁幫紝鍥犱負CStack()鍜孋Stack(int  size=100)閮芥弧瓚蟲潯浠訛紝姝ゆ椂姝g‘鐨勭紪璇戝櫒浼氱珛鍗蟲爣紺鴻繖縐嶅啿紿侊紝寮鴻揩瀹炵幇鑰呰В鍐寵繖涓棶棰樸?/p>

浜? 鍋囪鎴戜滑宸茬粡鏈変簡涓涓狢Stack瀵硅薄s1
CSatck s2=s1;      //榪欎釜鍙ュ瓙灝嗕細璋冪敤澶嶅埗鏋勯犲嚱鏁?br>CStack s3 = CStack(200);   //榪欎釜鍙ュ瓙灝嗕細鍋氫粈涔堝憿錛?br>
棣栧厛錛屼駭鐢熶竴涓復鏃禖Stack瀵硅薄錛屼笉濡ㄥ懡鍚嶄負sss錛屽茍璋冪敤鏋勯犲嚱鏁癈Stack::CStack(200)錛岄殢鍚庢墽琛屽鍒舵瀯閫犲嚱鏁般備篃灝辨槸璇達紝瀹冪浉褰撲簬

CStack sss(200);
CStack s3(sss);

榪欏緢嫻垂鏃墮棿錛屼笉榪囷紝澶у鏁扮紪璇戝櫒榪樻槸鑳戒紭鍖栬繖縐嶈鍙ャ備絾鏄垜浠負浠涔堜笉鍏繪垚涓涓ソ鐨勪範鎯紝鐩存帴鍐欐垚
CStack s3(200)鍛紵



jaysoon 2009-04-29 17:45 鍙戣〃璇勮
]]>
免费精品99久久国产综合精品| 欧美伊人久久大香线蕉综合69| 亚洲AV无码一区东京热久久 | 久久精品国产亚洲av麻豆蜜芽| 一本久久知道综合久久| 久久免费精品视频| 久久无码AV一区二区三区| 亚洲国产欧美国产综合久久| 伊人热人久久中文字幕| 少妇无套内谢久久久久| 狠狠色丁香久久综合婷婷| 色综合久久天天综线观看| 2021精品国产综合久久| 亚洲&#228;v永久无码精品天堂久久 | 国产亚洲欧美精品久久久| 精品一久久香蕉国产线看播放| 精品久久久久久国产| 久久综合综合久久97色| 亚洲精品乱码久久久久66| 久久播电影网| 久久国产精品久久国产精品| 精品久久久久成人码免费动漫| 曰曰摸天天摸人人看久久久| 欧美喷潮久久久XXXXx| 国产精品久久久久久久久软件| 久久国产乱子伦精品免费午夜| 久久精品国产亚洲AV无码麻豆| 精品久久久无码人妻中文字幕| 区亚洲欧美一级久久精品亚洲精品成人网久久久久 | 久久男人中文字幕资源站| 成人资源影音先锋久久资源网| 久久亚洲国产成人精品性色| 久久久久青草线蕉综合超碰| 蜜桃麻豆www久久国产精品| 久久久久国产| 欧美激情精品久久久久久| 久久久久国产日韩精品网站| 国产女人aaa级久久久级| 国产精品熟女福利久久AV| 久久国产成人| 日本精品一区二区久久久|