锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久久久AV综合网成人,99久久无色码中文字幕,97久久精品国产精品青草http://m.shnenglu.com/jaysoon/category/10408.htmlzh-cnWed, 20 Jul 2011 20:53:08 GMTWed, 20 Jul 2011 20:53:08 GMT60璧嬪艱繍綆楃鍜屽鍒舵瀯閫犲嚱鏁?/title><link>http://m.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://m.shnenglu.com/jaysoon/archive/2009/04/29/81477.html</guid><wfw:comment>http://m.shnenglu.com/jaysoon/comments/81477.html</wfw:comment><comments>http://m.shnenglu.com/jaysoon/archive/2009/04/29/81477.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://m.shnenglu.com/jaysoon/comments/commentRss/81477.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/jaysoon/services/trackbacks/81477.html</trackback:ping><description><![CDATA[<p align=left>     <strong> 璧嬪艱繍綆楃</strong>鍜?strong>澶嶅埗鏋勯犲嚱鏁?/strong>閮芥槸鐢ㄥ凡瀛樺湪A鐨勫璞℃潵鍒涘緩鍙︿竴涓璞銆備笉鍚屼箣澶勫湪浜庯細(xì)璧嬪艱繍綆楃澶勭悊涓や釜宸叉湁瀵硅薄錛屽嵆璧嬪煎墠B搴旇鏄瓨鍦ㄧ殑錛涘鍒舵瀯閫犲嚱鏁版槸鐢熸垚涓涓叏鏂扮殑瀵硅薄錛屽嵆璋冪敤澶嶅埗鏋勯犲嚱鏁頒箣鍓岯涓嶅瓨鍦ㄣ?nbsp;  <br>      CTemp a(b);      //澶嶅埗鏋勯犲嚱鏁幫紝C++椋庢牸鐨勫垵濮嬪寲<br>      CTemp a=b;      //浠嶇劧鏄鍒舵瀯閫犲嚱鏁幫紝涓嶈繃榪欑椋庢牸鍙槸涓轟簡(jiǎn)涓嶤鍏煎錛屼笌涓婇潰鐨勬晥鏋滀竴鏍?br>      鍦ㄨ繖涔嬪墠a涓嶅瓨鍦紝鎴栬呰榪樻湭鏋勯犲ソ銆?br><br>      CTemp a;<br>      a=b;               //璧嬪艱繍綆楃<br>      鍦ㄨ繖涔嬪墠a宸茬粡閫氳繃榛樿鏋勯犲嚱鏁版瀯閫犲畬鎴愩?br></p>       鎴戣寰楀皢璧嬪艱繍綆楃縐頒負(fù)“<strong>璧嬪兼瀯閫犲嚱鏁?/strong>”鏄敊璇殑錛屾瀯閫犲嚱鏁板彂鐢熷湪瀵硅薄鍒涘緩鏃舵湡錛岃岃祴鍊兼槸榪愮畻絎︼紝鍙戠敓鍦?#8220;榪愮畻”鏃舵湡錛岃祴鍊艱繍綆楀墠錛屽璞″凡緇忔瀯閫犲畬鎴愶紝鎵浠ヤ笉鑳界О涔嬩負(fù)“鏋勯犲嚱鏁?#8221;銆?br>      涓瀹朵箣璦錛侊紒 <img src ="http://m.shnenglu.com/jaysoon/aggbug/81477.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/jaysoon/" target="_blank">jaysoon</a> 2009-04-29 18:32 <a href="http://m.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://m.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://m.shnenglu.com/jaysoon/archive/2009/04/29/81474.html</guid><wfw:comment>http://m.shnenglu.com/jaysoon/comments/81474.html</wfw:comment><comments>http://m.shnenglu.com/jaysoon/archive/2009/04/29/81474.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/jaysoon/comments/commentRss/81474.html</wfw:commentRss><trackback:ping>http://m.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://m.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://m.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://m.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://m.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_13_197_Open_Text"><span style="color: #000000">{<br /><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #0000ff">public</span><span style="color: #000000">:<br /><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align="top" alt="" />       CStack();  <br /><img src="http://m.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://m.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://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #0000ff">private</span><span style="color: #000000">:    <br /><img src="http://m.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://m.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://m.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://m.shnenglu.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />}</span></span><span style="color: #000000">;<br /><img src="http://m.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://m.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://m.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://m.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_233_622_Open_Text"><span style="color: #000000">{<br /><img src="http://m.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://m.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://m.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://m.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://m.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_283_488_Open_Text"><span style="color: #000000">{<br /><img src="http://m.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://m.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://m.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://m.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://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />      }</span></span><span style="color: #000000">         <br /><img src="http://m.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://m.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://m.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://m.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_516_576_Open_Text"><span style="color: #000000">{<br /><img src="http://m.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://m.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://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />      }</span></span><span style="color: #000000">                                            <br /><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />}</span></span></div> <p><strong>      鍦–++妯″瀷涓紝淇濇姢鏄湪綾誨眰嬈″簲鐢ㄧ殑錛岃屼笉鏄湪瀵硅薄灞傛銆?br /></strong>      榪欏彞璇濈殑鎰忔濇槸錛岀被鐨勪換鎰忎竴涓璞″彲浠ヨ闂綾葷殑鍙︿竴涓璞$殑鍐呴儴鐨勪換浣曚笢瑗褲傚湪涓婇潰鐨勪緥瀛愪腑錛屽鍒舵瀯閫犲嚱鏁頒腑鐨勮祴鍊艱鍙size = st._size;璁塊棶浜?jiǎn)st鐨勭鏈夋暟鎹?br />      榪欒鏄庯紝C++涓殑璁塊棶淇濇姢鏄寜鐓у眰嬈$殑鍘熷垯瀹氫箟鐨勶紝閭d箞浠涔堜簨瀵硅薄灞傛鐨勪繚鎶ゅ憿錛?br />      鍦⊿malltalk涓紝鎴愬憳鍑芥暟鍙互褰撳墠瀵硅薄鐨勭鏈夋暟鎹紝浣嗕笉鑳借闂換浣曞叾瀹冨璞$殑縐佹湁鏁版嵁錛屽嵆浣垮畠浠睘浜庣浉鍚岀殑綾匯?br /></p><img src ="http://m.shnenglu.com/jaysoon/aggbug/81474.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/jaysoon/" target="_blank">jaysoon</a> 2009-04-29 17:57 <a href="http://m.shnenglu.com/jaysoon/archive/2009/04/29/81474.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>C++涓叧浜庢瀯閫犲嚱鏁扮殑鍑犱釜闂http://m.shnenglu.com/jaysoon/archive/2009/04/29/81470.htmljaysoonjaysoonWed, 29 Apr 2009 09:45:00 GMThttp://m.shnenglu.com/jaysoon/archive/2009/04/29/81470.htmlhttp://m.shnenglu.com/jaysoon/comments/81470.htmlhttp://m.shnenglu.com/jaysoon/archive/2009/04/29/81470.html#Feedback0http://m.shnenglu.com/jaysoon/comments/commentRss/81470.htmlhttp://m.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涓嶇煡閬撹璋冪敤鍝竴涓瀯閫犲嚱鏁幫紝鍥犱負(fù)CStack()鍜孋Stack(int  size=100)閮芥弧瓚蟲(chóng)潯浠訛紝姝ゆ椂姝g‘鐨勭紪璇戝櫒浼?xì)绔嬪嵪x(chóng)爣紺鴻繖縐嶅啿紿侊紝寮鴻揩瀹炵幇鑰呰В鍐寵繖涓棶棰樸?/p>

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

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

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



jaysoon 2009-04-29 17:45 鍙戣〃璇勮
]]>
久久久久亚洲精品无码蜜桃| 久久久99精品一区二区| 久久精品国产久精国产果冻传媒| 热99RE久久精品这里都是精品免费| 亚洲国产成人久久综合碰碰动漫3d | 国产亚洲综合久久系列| 伊人久久综合无码成人网| 91精品国产综合久久久久久| 久久久亚洲精品蜜桃臀| 丰满少妇人妻久久久久久| 91亚洲国产成人久久精品网址| 漂亮人妻被中出中文字幕久久| 亚洲香蕉网久久综合影视 | 狠狠色伊人久久精品综合网 | 亚洲人成网亚洲欧洲无码久久| 久久精品国产清高在天天线| 久久久精品一区二区三区| 亚洲国产小视频精品久久久三级| A级毛片无码久久精品免费| 久久乐国产精品亚洲综合| 久久精品国产免费| 久久久一本精品99久久精品88| 理论片午午伦夜理片久久 | 久久电影网| 国产精品久久久久…| 久久午夜夜伦鲁鲁片免费无码影视| 国产午夜电影久久| 精品熟女少妇av免费久久| 亚洲色婷婷综合久久| 四虎国产精品成人免费久久| 亚洲国产成人精品女人久久久| 国产精品嫩草影院久久| 久久国产免费观看精品| 久久亚洲国产精品一区二区| 色欲综合久久中文字幕网| 久久亚洲国产成人精品性色| 一本久久a久久精品vr综合| 久久午夜无码鲁丝片| 精品久久久久久亚洲精品| 久久er热视频在这里精品| 热久久这里只有精品|