锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲AV无一区二区三区久久,欧美国产成人久久精品,久久国产一区二区http://www.shnenglu.com/Tauruser/archive/2006/05/01/6532.htmlTauruserTauruserMon, 01 May 2006 15:58:00 GMThttp://www.shnenglu.com/Tauruser/archive/2006/05/01/6532.htmlhttp://www.shnenglu.com/Tauruser/comments/6532.htmlhttp://www.shnenglu.com/Tauruser/archive/2006/05/01/6532.html#Feedback17http://www.shnenglu.com/Tauruser/comments/commentRss/6532.htmlhttp://www.shnenglu.com/Tauruser/services/trackbacks/6532.html銆銆鈥滃鉤鍧囨潵璇達紝浣跨敤string綾誨瀷鐨勭▼搴忔墽琛岄熷害瑕佹瘮鐢–椋庢牸瀛楃涓茬殑蹇緢澶氾紝鍦ㄦ垜浠敤浜嗕簲騫寸殑PC鏈轟笂鍏跺鉤鍧囨墽琛岄熷害鍒嗗埆鏄細
銆銆user聽聽 0.47聽聽聽 #string class
聽聽聽聽聽聽聽 user聽聽 2.55聽聽聽 #C-style haracter string鈥?br />銆銆瀵硅繖涓暟鎹〃紺虹浉褰撶殑鎯婅銆備簬鏄嚜宸插啓浜嗕釜紼嬪簭錛屾祴璇曚竴涓嬩袱涓被鍨嬬殑鏁堢巼銆?br />
#include聽<iostream>
#include聽
<string>
#include聽
<ctime>
usingnamespace聽std;
const聽size_t聽retime=1000000;
int聽main()
{
聽聽聽聽clock_t聽start,聽finish;
聽聽聽聽start
=clock();
聽聽聽聽
constchar*pc="a聽very聽long聽literal聽string";
聽聽聽聽
const聽size_t聽len聽=聽strlen(pc);
聽聽聽聽
for(size_t聽ix=0;聽ix!=retime;++ix)
聽聽聽聽
{
聽聽聽聽聽聽聽聽
char*pc2=newchar[len+1];
聽聽聽聽聽聽聽聽strcpy(pc2,pc);
聽聽聽聽聽聽聽聽
if(strcmp(pc2,pc))
聽聽聽聽聽聽聽聽聽聽;
聽聽聽聽聽聽聽聽delete聽[]pc2;
聽聽聽聽}

聽聽聽聽finish
=clock();
聽聽聽聽cout
<<"C-style聽string聽run聽"<<retime<<"聽times聽needs聽"<<finish-start<<"聽clock聽times";
聽聽聽聽cout
<<endl;

聽聽聽聽start
=clock();
聽聽聽聽
string聽str("a聽very聽long聽literal聽string");
聽聽聽聽
for(size_t聽ix=0;ix!=retime;++ix)
聽聽聽聽
{
聽聽聽聽聽聽聽聽
string聽str2=str;
聽聽聽聽聽聽聽聽
if(str!=str2)
聽聽聽聽聽聽聽聽聽聽;
聽聽聽聽}

聽聽聽聽finish
=clock();
聽聽聽聽cout
<<"C++聽string聽run聽"<<retime<<"聽times聽needs聽"<<finish-start<<"聽clocks";
聽聽聽聽cout
<<endl;
聽聽聽聽
return錛?/span>;

}

銆銆涓婅堪紼嬪簭鍦–entOS涓嬬紪璇戝茍榪愯嫻嬭瘯寰楁暟鎹鉤鍧囧湪錛?br />C-style string run 1000000 times needs聽240000 clock times
C++ string run 1000000 times needs 110000clocks
鍦ㄨ繖涓暟鎹笅鏄庢樉string鐨勬晥鐜囪楂樸?br />銆銆鑰屽湪windows涓嬩嬌鐢╲c6.0 release緙栬瘧騫惰繍琛岋紝鏁版嵁騫沖潎鍦細
C-style string run 1000000 times needs聽350 clock times
C++ string run 1000000 times needs聽350 clocks
銆銆涓ょ綾誨瀷鐨勬晥鐜囧樊涓嶅
銆銆緇х畫鍦╲s2005涓媟elease緙栬瘧錛屾暟鎹鉤鍧囧湪錛?br />C-style string run 1000000 times needs聽320 clock times
C++ string run 1000000 times needs 370 clocks
銆銆string鏁堢巼瑕佷綆涓涓?br />鍦↙inux騫沖彴涓嬶紝string鐨勬晥鐜囨瘮C-style鐨勮鏁存暣楂樺嚭涓鍊嶆湁澶氥?br />鑰屽湪windows騫沖彴涓嬶紝sting涓嶄絾鏁堢巼涓婄殑浼樺娍娌℃湁浜嗭紝鍙嶈屾瘮C-style榪樿宸?br />涓嶇煡閬撹繖鏄粈涔堝師鍥犮備負浠涔堝湪unix涓嬭姣斿湪windows涓嬪揩濡傛鐨勫銆傝屽湪windows涓婂嵈涓嶈錛?br />蹇殑鍘熷洜鍦ㄥ摢鍛紵
PS:
涓嶇煡閬撴垜鐨勬祴璇曠▼搴忚繖鏍峰瓙鍐欐槸鍚﹀彲浠ャ?br />

Tauruser 2006-05-01 23:58 鍙戣〃璇勮
]]>
綆楁硶涓庢暟鎹粨鏋勫疄楠?浜?http://www.shnenglu.com/Tauruser/archive/2006/03/22/4452.htmlTauruserTauruserWed, 22 Mar 2006 04:18:00 GMThttp://www.shnenglu.com/Tauruser/archive/2006/03/22/4452.htmlhttp://www.shnenglu.com/Tauruser/comments/4452.htmlhttp://www.shnenglu.com/Tauruser/archive/2006/03/22/4452.html#Feedback2http://www.shnenglu.com/Tauruser/comments/commentRss/4452.htmlhttp://www.shnenglu.com/Tauruser/services/trackbacks/4452.html闃呰鍏ㄦ枃

Tauruser 2006-03-22 12:18 鍙戣〃璇勮
]]>
涓轟粈涔堝湪VS2005閲嶈澆杈撳嚭榪愮畻絎﹂偅涔堥毦錛?/title><link>http://www.shnenglu.com/Tauruser/archive/2006/03/14/4156.html</link><dc:creator>Tauruser</dc:creator><author>Tauruser</author><pubDate>Tue, 14 Mar 2006 15:48:00 GMT</pubDate><guid>http://www.shnenglu.com/Tauruser/archive/2006/03/14/4156.html</guid><wfw:comment>http://www.shnenglu.com/Tauruser/comments/4156.html</wfw:comment><comments>http://www.shnenglu.com/Tauruser/archive/2006/03/14/4156.html#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://www.shnenglu.com/Tauruser/comments/commentRss/4156.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/Tauruser/services/trackbacks/4156.html</trackback:ping><description><![CDATA[銆銆鏈榪戝湪VS2005涓嬪疄鐜頒竴涓ā鐗堝爢鏍堟椂錛屾兂閲嶈澆涓涓嬭緭鍑鴻繍綆楃銆傜粨鏋滆佹槸閬囧埌闂錛屽浣曢兘榪囦笉鍘伙紝鎯充笉鎯沖幓閮戒笉鏄庣櫧銆傝繕鏈涢珮鎵嬫寚鏁欍?BR>銆銆涓寮濮嬪悓鏍風殑紼嬪簭鍦╒C2005鍜孷C6.0涓嬬紪璇戦兘娌¢棶棰橈紝浣嗘槸涓鍒伴摼鎺ョ殑鏃跺欏氨鍑虹幇闂浜嗐傞兘鎻愮ず濡備笅閿欒錛?BR> <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"><SPAN style="COLOR: #000000">      error LNK2019: 鏃犳硶瑙f瀽鐨勫閮ㄧ鍙?nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,class SegStack<int> const &)</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> (</SPAN><SPAN style="COLOR: #000000">??</SPAN><SPAN style="COLOR: #000000">6</SPAN><SPAN style="COLOR: #000000">@YAAAV</SPAN><SPAN style="COLOR: #000000">?</SPAN><SPAN style="COLOR: #000000">$basic_ostream@DU</SPAN><SPAN style="COLOR: #000000">?</SPAN><SPAN style="COLOR: #000000">$char_traits@D@std@@@std@@AAV01@ABV</SPAN><SPAN style="COLOR: #000000">?</SPAN><SPAN style="COLOR: #000000">$SegStack@H@@@Z)錛岃絎﹀彿鍦ㄥ嚱鏁?nbsp;_main 涓寮曠敤<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV>銆銆姝繪椿閮借繍琛屼笉浜嗐傚悗鏉ュ彂鐜板鏋滃湪紼嬪簭涓笉浣跨敤鈥渃out<<鈥濋噸杞界殑榪愮畻絎﹁繘琛岃緭鍑猴紝鍦ㄤ袱涓鉤鍙頒笅閮芥病鏈夐棶棰樸傚彲浠ラ噸杞界殑鏂瑰紡鎴戝凡緇忓叏閮ㄦ寜璇硶鍐欎簡銆?BR>銆銆浠婃櫄錛屽張鍦╒C6.0涓嬪啀鐢熸垚涓嬈★紝濂囪抗鑸垚鍔熶簡銆傦紙PS:闅鵑亾浠婃櫄鐨凴P姣旇緝楂樸^-^錛変絾鏄繕鏄病鏈夎В鍐沖湪VC2005涓嬬殑闂錛岃繕鏄彁紺哄涓婇敊璇紝VC2005鍒板簳榪樻敼浜嗕粈涔堬紝涓嶸C6.0涓嶅悓浜嗭紵涓妯′竴鏍風殑紼嬪簭錛屼負浠涔堝湪VC2005涓嬮兘涓嶈錛屽湪VC2005涓嬬殑閲嶈澆杈撳叆杈撳嚭搴旇濡備綍搴旇濡備綍錛?BR>涓嬮潰璐翠竴涓嬩緥紼嬶紝楹葷儲鏈夋椂鍊欑殑澶х墰甯垜鐪嬩竴涓嬶紝寰堢畝鍗曠殑涓涓▼搴忋?BR><A href="/Files/Tauruser/Ex2_2.rar">Ex2_2.rar</A><BR>閲岄潰鏈変笁涓枃浠跺垎鍒涓嬶細(ex2_2.cpp,stack.cpp,stack.h)涓嬮潰璐翠竴涓嬫枃浠剁殑鍐呭銆?BR> <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 id=Codehighlighter1_0_61_Open_Image onclick="this.style.display='none'; Codehighlighter1_0_61_Open_Text.style.display='none'; Codehighlighter1_0_61_Closed_Image.style.display='inline'; Codehighlighter1_0_61_Closed_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_0_61_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_0_61_Closed_Text.style.display='none'; Codehighlighter1_0_61_Open_Image.style.display='inline'; Codehighlighter1_0_61_Open_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align=top><SPAN id=Codehighlighter1_0_61_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">/**/</SPAN><SPAN id=Codehighlighter1_0_61_Open_Text><SPAN style="COLOR: #808080">/////////</SPAN><SPAN style="COLOR: #008000">/ex2_2.cpp</SPAN><SPAN style="COLOR: #808080">/////////</SPAN><SPAN style="COLOR: #008000">//<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top></SPAN><SPAN style="COLOR: #808080">//////////////////////////////</SPAN></SPAN><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">#include </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">stack.cpp</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top>SegStack</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"> iStack(</SPAN><SPAN style="COLOR: #000000">10</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> main()<BR><IMG id=Codehighlighter1_121_265_Open_Image onclick="this.style.display='none'; Codehighlighter1_121_265_Open_Text.style.display='none'; Codehighlighter1_121_265_Closed_Image.style.display='inline'; Codehighlighter1_121_265_Closed_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_121_265_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_121_265_Closed_Text.style.display='none'; Codehighlighter1_121_265_Open_Image.style.display='inline'; Codehighlighter1_121_265_Open_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_121_265_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"></SPAN><SPAN id=Codehighlighter1_121_265_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    </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">0</SPAN><SPAN style="COLOR: #000000">);i</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">10</SPAN><SPAN style="COLOR: #000000">;i</SPAN><SPAN style="COLOR: #000000">++</SPAN><SPAN style="COLOR: #000000">)<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>        iStack.push(i);<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    cout</SPAN><SPAN style="COLOR: #000000"><<</SPAN><SPAN style="COLOR: #000000">iStack;<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    iStack.output(cout);<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">for</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">5</SPAN><SPAN style="COLOR: #000000">;i</SPAN><SPAN style="COLOR: #000000">++</SPAN><SPAN style="COLOR: #000000">)<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>        iStack.pop();<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    cout</SPAN><SPAN style="COLOR: #000000"><<</SPAN><SPAN style="COLOR: #000000">iStack;<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">return</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><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV> <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 id=Codehighlighter1_0_60_Open_Image onclick="this.style.display='none'; Codehighlighter1_0_60_Open_Text.style.display='none'; Codehighlighter1_0_60_Closed_Image.style.display='inline'; Codehighlighter1_0_60_Closed_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_0_60_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_0_60_Closed_Text.style.display='none'; Codehighlighter1_0_60_Open_Image.style.display='inline'; Codehighlighter1_0_60_Open_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align=top><SPAN id=Codehighlighter1_0_60_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">/**/</SPAN><SPAN id=Codehighlighter1_0_60_Open_Text><SPAN style="COLOR: #808080">/////////</SPAN><SPAN style="COLOR: #008000">//stack.h</SPAN><SPAN style="COLOR: #808080">/////////</SPAN><SPAN style="COLOR: #008000">/<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top></SPAN><SPAN style="COLOR: #808080">//////////////////////////////</SPAN><SPAN style="COLOR: #008000">/</SPAN><SPAN style="COLOR: #808080"></SPAN></SPAN><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">#ifndef stack_h_<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">#define</SPAN><SPAN style="COLOR: #000000"> stack_h_</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top>#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.shnenglu.com/images/OutliningIndicators/None.gif" align=top></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.shnenglu.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top>template </SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000"> T</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000"> stack<BR><IMG id=Codehighlighter1_168_330_Open_Image onclick="this.style.display='none'; Codehighlighter1_168_330_Open_Text.style.display='none'; Codehighlighter1_168_330_Closed_Image.style.display='inline'; Codehighlighter1_168_330_Closed_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_168_330_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_168_330_Closed_Text.style.display='none'; Codehighlighter1_168_330_Open_Image.style.display='inline'; Codehighlighter1_168_330_Open_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_168_330_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"></SPAN><SPAN id=Codehighlighter1_168_330_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000">:<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">virtual</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000"> push(</SPAN><SPAN style="COLOR: #0000ff">const</SPAN><SPAN style="COLOR: #000000"> T </SPAN><SPAN style="COLOR: #000000">&</SPAN><SPAN style="COLOR: #000000">x)</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>    </SPAN><SPAN style="COLOR: #0000ff">virtual</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000"> pop()</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>    </SPAN><SPAN style="COLOR: #0000ff">virtual</SPAN><SPAN style="COLOR: #000000"> T Top() </SPAN><SPAN style="COLOR: #0000ff">const</SPAN><SPAN style="COLOR: #000000"> </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>    </SPAN><SPAN style="COLOR: #0000ff">virtual</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">bool</SPAN><SPAN style="COLOR: #000000"> IsEmpty() </SPAN><SPAN style="COLOR: #0000ff">const</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>    </SPAN><SPAN style="COLOR: #0000ff">virtual</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">bool</SPAN><SPAN style="COLOR: #000000"> IsFull() </SPAN><SPAN style="COLOR: #0000ff">const</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><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top>template </SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000"> T</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000"> SegStack: </SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> stack</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">T</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG id=Codehighlighter1_385_672_Open_Image onclick="this.style.display='none'; Codehighlighter1_385_672_Open_Text.style.display='none'; Codehighlighter1_385_672_Closed_Image.style.display='inline'; Codehighlighter1_385_672_Closed_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_385_672_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_385_672_Closed_Text.style.display='none'; Codehighlighter1_385_672_Open_Image.style.display='inline'; Codehighlighter1_385_672_Open_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_385_672_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"></SPAN><SPAN id=Codehighlighter1_385_672_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000">:<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    SegStack(</SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> mSize);<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #000000">~</SPAN><SPAN style="COLOR: #000000">SegStack();<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">bool</SPAN><SPAN style="COLOR: #000000"> IsEmpty() </SPAN><SPAN style="COLOR: #0000ff">const</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">bool</SPAN><SPAN style="COLOR: #000000"> IsFull() </SPAN><SPAN style="COLOR: #0000ff">const</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000"> push(</SPAN><SPAN style="COLOR: #0000ff">const</SPAN><SPAN style="COLOR: #000000"> T </SPAN><SPAN style="COLOR: #000000">&</SPAN><SPAN style="COLOR: #000000">x);<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000"> pop();<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    T Top() </SPAN><SPAN style="COLOR: #0000ff">const</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    friend ostream</SPAN><SPAN style="COLOR: #000000">&</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">operator</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000"><<</SPAN><SPAN style="COLOR: #000000"> (ostream</SPAN><SPAN style="COLOR: #000000">&</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">,</SPAN><SPAN style="COLOR: #0000ff">const</SPAN><SPAN style="COLOR: #000000"> SegStack</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">T</SPAN><SPAN style="COLOR: #000000">>&</SPAN><SPAN style="COLOR: #000000"> seg);<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000"> output(ostream</SPAN><SPAN style="COLOR: #000000">&</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">) </SPAN><SPAN style="COLOR: #0000ff">const</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">private</SPAN><SPAN style="COLOR: #000000">:<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    T </SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">s;<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> maxSize;<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> top;<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">#endif</SPAN></DIV> <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 id=Codehighlighter1_0_69_Open_Image onclick="this.style.display='none'; Codehighlighter1_0_69_Open_Text.style.display='none'; Codehighlighter1_0_69_Closed_Image.style.display='inline'; Codehighlighter1_0_69_Closed_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_0_69_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_0_69_Closed_Text.style.display='none'; Codehighlighter1_0_69_Open_Image.style.display='inline'; Codehighlighter1_0_69_Open_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align=top><SPAN id=Codehighlighter1_0_69_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">/**/</SPAN><SPAN id=Codehighlighter1_0_69_Open_Text><SPAN style="COLOR: #808080">////////////</SPAN><SPAN style="COLOR: #008000">stack.cpp</SPAN><SPAN style="COLOR: #808080">////////////</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top></SPAN><SPAN style="COLOR: #808080">/////////////////////////////////</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #808080"></SPAN></SPAN><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">#include </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">stack.h</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top>template </SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000"> T</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"> SegStack</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">T</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000">::SegStack(</SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> mSize):top(</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #000000">)<BR><IMG id=Codehighlighter1_151_191_Open_Image onclick="this.style.display='none'; Codehighlighter1_151_191_Open_Text.style.display='none'; Codehighlighter1_151_191_Closed_Image.style.display='inline'; Codehighlighter1_151_191_Closed_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_151_191_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_151_191_Closed_Text.style.display='none'; Codehighlighter1_151_191_Open_Image.style.display='inline'; Codehighlighter1_151_191_Open_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_151_191_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"></SPAN><SPAN id=Codehighlighter1_151_191_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    maxSize</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">mSize;<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    s </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> T[maxSize];<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top>template </SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000"> T</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"> SegStack</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">T</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000">::</SPAN><SPAN style="COLOR: #000000">~</SPAN><SPAN style="COLOR: #000000">SegStack()<BR><IMG id=Codehighlighter1_237_252_Open_Image onclick="this.style.display='none'; Codehighlighter1_237_252_Open_Text.style.display='none'; Codehighlighter1_237_252_Closed_Image.style.display='inline'; Codehighlighter1_237_252_Closed_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_237_252_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_237_252_Closed_Text.style.display='none'; Codehighlighter1_237_252_Open_Image.style.display='inline'; Codehighlighter1_237_252_Open_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_237_252_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"></SPAN><SPAN id=Codehighlighter1_237_252_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    delete []s;<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top>template </SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000"> T</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">bool</SPAN><SPAN style="COLOR: #000000"> SegStack</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">T</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000">::IsFull() </SPAN><SPAN style="COLOR: #0000ff">const</SPAN><SPAN style="COLOR: #000000"><BR><IMG id=Codehighlighter1_307_339_Open_Image onclick="this.style.display='none'; Codehighlighter1_307_339_Open_Text.style.display='none'; Codehighlighter1_307_339_Closed_Image.style.display='inline'; Codehighlighter1_307_339_Closed_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_307_339_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_307_339_Closed_Text.style.display='none'; Codehighlighter1_307_339_Open_Image.style.display='inline'; Codehighlighter1_307_339_Open_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_307_339_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"></SPAN><SPAN id=Codehighlighter1_307_339_Open_Text><SPAN style="COLOR: #000000">{        <BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000"> (top</SPAN><SPAN style="COLOR: #000000">==</SPAN><SPAN style="COLOR: #000000">(maxSize</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #000000">));<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top>template </SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000"> T</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">bool</SPAN><SPAN style="COLOR: #000000"> SegStack</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">T</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000">::IsEmpty() </SPAN><SPAN style="COLOR: #0000ff">const</SPAN><SPAN style="COLOR: #000000"><BR><IMG id=Codehighlighter1_395_416_Open_Image onclick="this.style.display='none'; Codehighlighter1_395_416_Open_Text.style.display='none'; Codehighlighter1_395_416_Closed_Image.style.display='inline'; Codehighlighter1_395_416_Closed_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_395_416_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_395_416_Closed_Text.style.display='none'; Codehighlighter1_395_416_Open_Image.style.display='inline'; Codehighlighter1_395_416_Open_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_395_416_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"></SPAN><SPAN id=Codehighlighter1_395_416_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000"> (top</SPAN><SPAN style="COLOR: #000000">==-</SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top>template </SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000"> T</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000"> SegStack</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">T</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000">::push(</SPAN><SPAN style="COLOR: #0000ff">const</SPAN><SPAN style="COLOR: #000000"> T </SPAN><SPAN style="COLOR: #000000">&</SPAN><SPAN style="COLOR: #000000">x)<BR><IMG id=Codehighlighter1_473_554_Open_Image onclick="this.style.display='none'; Codehighlighter1_473_554_Open_Text.style.display='none'; Codehighlighter1_473_554_Closed_Image.style.display='inline'; Codehighlighter1_473_554_Closed_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_473_554_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_473_554_Closed_Text.style.display='none'; Codehighlighter1_473_554_Open_Image.style.display='inline'; Codehighlighter1_473_554_Open_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_473_554_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"></SPAN><SPAN id=Codehighlighter1_473_554_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000">(IsFull())<BR><IMG id=Codehighlighter1_490_528_Open_Image onclick="this.style.display='none'; Codehighlighter1_490_528_Open_Text.style.display='none'; Codehighlighter1_490_528_Closed_Image.style.display='inline'; Codehighlighter1_490_528_Closed_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_490_528_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_490_528_Closed_Text.style.display='none'; Codehighlighter1_490_528_Open_Image.style.display='inline'; Codehighlighter1_490_528_Open_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>    </SPAN><SPAN id=Codehighlighter1_490_528_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"></SPAN><SPAN id=Codehighlighter1_490_528_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>        cout</SPAN><SPAN style="COLOR: #000000"><<</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">The stack is full</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"><<</SPAN><SPAN style="COLOR: #000000">endl;<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>    }</SPAN></SPAN><SPAN style="COLOR: #0000ff">else</SPAN><SPAN style="COLOR: #000000"><BR><IMG id=Codehighlighter1_535_552_Open_Image onclick="this.style.display='none'; Codehighlighter1_535_552_Open_Text.style.display='none'; Codehighlighter1_535_552_Closed_Image.style.display='inline'; Codehighlighter1_535_552_Closed_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_535_552_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_535_552_Closed_Text.style.display='none'; Codehighlighter1_535_552_Open_Image.style.display='inline'; Codehighlighter1_535_552_Open_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>    </SPAN><SPAN id=Codehighlighter1_535_552_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"></SPAN><SPAN id=Codehighlighter1_535_552_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>        s[</SPAN><SPAN style="COLOR: #000000">++</SPAN><SPAN style="COLOR: #000000">top]</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">x;<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>    }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top>template </SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000"> T</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000"> SegStack</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">T</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000">::pop()<BR><IMG id=Codehighlighter1_600_678_Open_Image onclick="this.style.display='none'; Codehighlighter1_600_678_Open_Text.style.display='none'; Codehighlighter1_600_678_Closed_Image.style.display='inline'; Codehighlighter1_600_678_Closed_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_600_678_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_600_678_Closed_Text.style.display='none'; Codehighlighter1_600_678_Open_Image.style.display='inline'; Codehighlighter1_600_678_Open_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_600_678_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"></SPAN><SPAN id=Codehighlighter1_600_678_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000">(IsEmpty())<BR><IMG id=Codehighlighter1_618_657_Open_Image onclick="this.style.display='none'; Codehighlighter1_618_657_Open_Text.style.display='none'; Codehighlighter1_618_657_Closed_Image.style.display='inline'; Codehighlighter1_618_657_Closed_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_618_657_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_618_657_Closed_Text.style.display='none'; Codehighlighter1_618_657_Open_Image.style.display='inline'; Codehighlighter1_618_657_Open_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>    </SPAN><SPAN id=Codehighlighter1_618_657_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"></SPAN><SPAN id=Codehighlighter1_618_657_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>        cout</SPAN><SPAN style="COLOR: #000000"><<</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">The stack is empty</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"><<</SPAN><SPAN style="COLOR: #000000">endl;<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>    }</SPAN></SPAN><SPAN style="COLOR: #0000ff">else</SPAN><SPAN style="COLOR: #000000"><BR><IMG id=Codehighlighter1_664_676_Open_Image onclick="this.style.display='none'; Codehighlighter1_664_676_Open_Text.style.display='none'; Codehighlighter1_664_676_Closed_Image.style.display='inline'; Codehighlighter1_664_676_Closed_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_664_676_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_664_676_Closed_Text.style.display='none'; Codehighlighter1_664_676_Open_Image.style.display='inline'; Codehighlighter1_664_676_Open_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>    </SPAN><SPAN id=Codehighlighter1_664_676_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"></SPAN><SPAN id=Codehighlighter1_664_676_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>        top</SPAN><SPAN style="COLOR: #000000">--</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>    }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top>template </SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000"> T</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"> T SegStack</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">T</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000">::Top() </SPAN><SPAN style="COLOR: #0000ff">const</SPAN><SPAN style="COLOR: #000000"><BR><IMG id=Codehighlighter1_726_744_Open_Image onclick="this.style.display='none'; Codehighlighter1_726_744_Open_Text.style.display='none'; Codehighlighter1_726_744_Closed_Image.style.display='inline'; Codehighlighter1_726_744_Closed_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_726_744_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_726_744_Closed_Text.style.display='none'; Codehighlighter1_726_744_Open_Image.style.display='inline'; Codehighlighter1_726_744_Open_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_726_744_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"></SPAN><SPAN id=Codehighlighter1_726_744_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000"> s[top];<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top>template </SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000"> T</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000"> SegStack</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">T</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000">::output(ostream</SPAN><SPAN style="COLOR: #000000">&</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">) </SPAN><SPAN style="COLOR: #0000ff">const</SPAN><SPAN style="COLOR: #000000"><BR><IMG id=Codehighlighter1_811_897_Open_Image onclick="this.style.display='none'; Codehighlighter1_811_897_Open_Text.style.display='none'; Codehighlighter1_811_897_Closed_Image.style.display='inline'; Codehighlighter1_811_897_Closed_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_811_897_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_811_897_Closed_Text.style.display='none'; Codehighlighter1_811_897_Open_Image.style.display='inline'; Codehighlighter1_811_897_Open_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_811_897_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"></SPAN><SPAN id=Codehighlighter1_811_897_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000"><<</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">The stack list is:</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    </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">0</SPAN><SPAN style="COLOR: #000000">);i</SPAN><SPAN style="COLOR: #000000"><=</SPAN><SPAN style="COLOR: #000000">top;i</SPAN><SPAN style="COLOR: #000000">++</SPAN><SPAN style="COLOR: #000000">)<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff">out</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">s[i];<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000"><<</SPAN><SPAN style="COLOR: #000000">endl;<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top>template </SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000"> T</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"> ostream</SPAN><SPAN style="COLOR: #000000">&</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">operator</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000"><<</SPAN><SPAN style="COLOR: #000000"> (ostream</SPAN><SPAN style="COLOR: #000000">&</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">,</SPAN><SPAN style="COLOR: #0000ff">const</SPAN><SPAN style="COLOR: #000000"> SegStack</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">T</SPAN><SPAN style="COLOR: #000000">>&</SPAN><SPAN style="COLOR: #000000"> seg)<BR><IMG id=Codehighlighter1_978_1105_Open_Image onclick="this.style.display='none'; Codehighlighter1_978_1105_Open_Text.style.display='none'; Codehighlighter1_978_1105_Closed_Image.style.display='inline'; Codehighlighter1_978_1105_Closed_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_978_1105_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_978_1105_Closed_Text.style.display='none'; Codehighlighter1_978_1105_Open_Image.style.display='inline'; Codehighlighter1_978_1105_Open_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_978_1105_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"></SPAN><SPAN id=Codehighlighter1_978_1105_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000"><<</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">The stack list is:</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    </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">0</SPAN><SPAN style="COLOR: #000000">);i</SPAN><SPAN style="COLOR: #000000"><=</SPAN><SPAN style="COLOR: #000000">seg.top;i</SPAN><SPAN style="COLOR: #000000">++</SPAN><SPAN style="COLOR: #000000">)<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff">out</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">seg.s[i];<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000"><<</SPAN><SPAN style="COLOR: #000000">endl;<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">seg.output(out);</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">    </SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV><BR>銆銆鍦ㄦ渶鍚庯紝鎴戣繕鎯抽棶鐨勪竴涓棶棰樻槸錛氫負浠涔堝湪ex2_2.cpp閲?include "stack.h"鏃朵細鏃犳硶緙栬瘧閫氳繃錛岃?include "stack.cpp"鏃跺氨鍙互浜嗗憿錛?BR>銆銆璁板緱鎴戝垰瀛︼跡錛嬶紜鐨勬椂鍊欙紝鑰佸笀璺熸垜璇存妸澶存枃浠跺拰婧愮▼搴忔枃浠跺垎寮錛屾渶涓昏鐨勬槸瑕佽繘琛岀煡璇嗕駭鏉冧繚鎶わ紝褰撲綘鍐欏ソ涓涓瓙紼嬪簭鏃訛紝鍙戝竷灝變笉瑕佺粰瀵規柟婧愮▼搴忥紝鍙緇欏鏂瑰ご鏂囦歡鍜岀紪璇戣繃鏉ョ殑鐩稿簲obj鏂囦歡灝卞彲浠ヤ簡銆備絾鏄粠涓婇潰鐨勪緥瀛愪笂鐪嬫潵錛屽鏋滀笉#include "stack.cpp"灝辨棤娉曠紪璇戦氳繃錛岃繖涓嶅氨浠h〃涓瀹氳緇欐簮紼嬪簭瀵規柟鍚楋紵涓轟粈涔堜細榪欐牱瀛愮殑銆傛垜搴旇濡備綍鍋氬憿錛熷鏋滄垜鎯沖疄鐜版簮紼嬪簭鐨勪繚瀛樸?img src ="http://www.shnenglu.com/Tauruser/aggbug/4156.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/Tauruser/" target="_blank">Tauruser</a> 2006-03-14 23:48 <a href="http://www.shnenglu.com/Tauruser/archive/2006/03/14/4156.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鎴戠殑綆楁硶涓庢暟鎹粨鏋勫涔?涓? http://www.shnenglu.com/Tauruser/archive/2006/03/07/3879.htmlTauruserTauruserTue, 07 Mar 2006 15:26:00 GMThttp://www.shnenglu.com/Tauruser/archive/2006/03/07/3879.htmlhttp://www.shnenglu.com/Tauruser/comments/3879.htmlhttp://www.shnenglu.com/Tauruser/archive/2006/03/07/3879.html#Feedback0http://www.shnenglu.com/Tauruser/comments/commentRss/3879.htmlhttp://www.shnenglu.com/Tauruser/services/trackbacks/3879.html綰挎х粨鏋勪箣鍏稿瀷鈥斺斿爢鏍?BR>

銆銆姝e鍓嶉潰鎵璇達紝鍚屾牱鐨勯昏緫緇撴瀯錛屽湪涓婇潰璧嬩簣鐨勬搷浣滀笉鍚岋紝灝辨槸涓嶅悓鐨勬暟鎹粨鏋勩備竴涓暟鎹粨鏋勮鍚屾椂鍖呭惈榪欎袱鏂歸潰鐨勫唴瀹廣?BR>銆銆浣滀負綰挎х粨鏋勭殑鍏稿瀷鈥斺斿爢鏍堬紝鍫嗘爤棣栧厛灝辨槸涓涓嚎鎬х粨鏋勶紝浣嗘槸瀵硅繖涓嚎鎬х粨鏋勪笂榪涜鐨勬搷浣滆繘琛屼竴瀹氱殑闄愬埗錛屽氨鎴愪負浜嗗爢鏍堛傚爢鏍堝彧鑳藉湪琛ㄧ殑涓绔繘琛屾彃鍏ュ拰鍒犻櫎銆傛憳涓嬨奣he Art of Computer Progrmming銆嬩笂瀵瑰吀鍨嬬殑涓夌綰挎х粨鏋勭殑鎿嶄綔鎻忚堪銆?BR>
A stack is a linear list for which all insertions and deletions (and usually all accesses) are made at one end of the list.(鍫嗘爤錛?BR>A queue is a linear list for which all insertions are made at one end of the list; all deletions (and usually all accesses) are made at the other end.錛堥槦鍒楋級
A deque ("double-ended queue") is a linear list for which all insertions and deletions (and usually all accesses) are made at the ends of the list.錛堣繖縐嶅湪涓枃鏁欐潗閲屾病鐪嬪埌錛屾垜鏆備笖鍙畠涓轟袱澶磋泧 ^ ^錛?BR>
銆銆鍫嗘爤鐨勫瓨鍌ㄧ粨鏋勫疄鐜板拰鍓嶉潰璇寸殑涓鏍鳳紝鍙互鐢ㄦ暟緇勬柟寮忥紝鐩綍琛紝鎴栭摼琛ㄦ柟寮忓疄鐜般傚叿浣撶殑瀹炵幇鍜屾搷浣滅殑瀹炵幇鍚屾牱浼氬湪瀹為獙涓彁鍒幫紝榪欓噷灝變笉鍐嶉噸澶嶃?BR>
銆銆鍐嶈皥涓涓嬶紝鍫嗘爤鍦ㄥ疄鐜板簲鐢ㄥ綋涓殑浣跨敤銆?BR>銆銆瀹炰緥錛屽瀛愮▼搴忕殑璋冪敤鍙婅繑鍥炵殑澶勭悊銆傝皟鐢ㄥ瓙紼嬪簭鏃訛紝灝嗗叾鏂偣渚濇鍘嬪叆鍫嗘爤錛岃繑鍥炴椂鍐嶄緷嬈″脊鍑恒傚閫掑綊鐨勮皟鐢ㄣ?BR>銆銆鍙﹀涓涓疄渚嬪氨鏄疄鐜扳滐紜錛嵜椕封濆洓鍔熻兘鐨勮綆楀櫒紼嬪簭銆?BR>
榪欓噷灝卞厛浠嬬粛涓や釜鍩烘湰姒傚康錛屼互鍚庡啀鍙﹁琛ヤ笂瀹炵幇紼嬪簭銆?BR>
涓紑琛ㄨ揪寮忥細榪愮畻絎︽斁鍦ㄤ袱涓繍綆楀璞′箣闂達紝縐頒負涓紑琛ㄨ揪寮忋傝綆楁椂鍏堢畻鎷彿鍐咃紝鍐嶇畻鎷彿澶栵紝澶氬眰鎷彿浠庡唴灞傚悜澶栧眰綆椼傛棤鎷彿鎴栧悓灞傛嫭鍙峰唴鐢卞乏鍚戝彸欏哄簭鎵ц銆?BR>鍚庣紑琛ㄨ揪寮忥細涓嶅啀寮曞叆鎷彿錛岃繍綆楃鏀懼湪涓や釜鎿嶄綔瀵硅薄鍚庨潰錛岀О涓哄悗緙琛ㄨ揪寮忋傝綆楁椂鎵鏈夎繍綆楁寜榪愮畻絎﹀嚭鐜扮殑欏哄簭錛屼弗鏍間粠宸﹀悜鍙籌紝姣忎釜榪愮畻絎﹀彇鍏跺墠闈袱涓搷浣滄暟錛岃繍綆楀悗鐨勭粨鏋滀粛涓轟笅嬈$殑鎿嶄綔鏁幫紝榪欐牱鍋氫笌涓紑琛ㄨ揪寮忚綆椾弗鏍肩瓑浠鳳紝鍗寵綆楁搴忓拰緇撴灉瀹屽叏鐩稿悓銆備笅闈㈢綏鍒楀嚑涓瓑浠風殑涓紑琛ㄨ揪寮忓拰鍚庣紑琛ㄨ揪寮忥細
涓紑琛ㄨ揪寮忥紝鍚庣紑琛ㄨ揪寮?BR>A                     A
A+B銆銆銆銆AB+
A+B*C           ABC*+
A*(B-C)+D    ABC-*D+
D+A/(B-C)     DABC-/+

That's all for today. THX.    



Tauruser 2006-03-07 23:26 鍙戣〃璇勮
]]>
Josephus闂http://www.shnenglu.com/Tauruser/archive/2006/03/05/3746.htmlTauruserTauruserSun, 05 Mar 2006 06:52:00 GMThttp://www.shnenglu.com/Tauruser/archive/2006/03/05/3746.htmlhttp://www.shnenglu.com/Tauruser/comments/3746.htmlhttp://www.shnenglu.com/Tauruser/archive/2006/03/05/3746.html#Feedback0http://www.shnenglu.com/Tauruser/comments/commentRss/3746.htmlhttp://www.shnenglu.com/Tauruser/services/trackbacks/3746.html銆銆璇曠敤閫掑綊鍜岄潪閫掑綊鐨勬柟娉曠紪鍐欑▼搴忚В鍐矹osephus闂錛氳鏈塶涓漢鍥村潗涓涓渾妗屽懆鍥達紝錛岀幇浠庣S浜哄紑濮嬫姤鏁幫紝鏁板埌絎琺鐨勪漢鍑哄垪錛岀劧鍚庝粠鍑哄垪鐨勪笅涓涓噸鏂板紑濮嬫姤鏁幫紝鏁板垪鐨勭m涓漢鍙堝嚭鍒椻︹﹀姝ら噸澶嶏紝鐩村埌鎵鏈夌殑浜哄叏閮ㄥ嚭鍒椾負姝€傚浠繪剰緇欏畾鐨刵銆乻銆乵錛屾眰鎸夊嚭鍒楁搴忓緱鍒扮殑n涓漢鍛樼殑欏哄簭琛ㄣ?BR>
浣跨敤涓ょ鏂規硶錛?BR>銆銆鏂規硶錛戯細鐢ㄦ暣鏁癷鏉ヤ唬鏇縫i錛屽皢鍒濆搴忓垪鐪嬫垚涓涓暣鏁板簭鍒楀瓨鍌ㄥ湪鍚戦噺p涓紝pi鍑哄垪錛屽皢p[i+1]錛屸︹︼紝p[n]鍓嶇Щ涓涓厓绱狅紝灝唒i鏀懼叆p[n]涓紝鏈鍚庡嚭鍒楁斁鍦╬[1]涓紝鍐嶄綔閫嗗簭銆?BR>銆銆鏂規硶錛掞細姣忓嚭鍒椾竴涓厓绱犲瓨鍏ュ彟涓涓悜閲忎腑錛屼笉縐諱綅錛岃緗爣蹇楋紝鍏ㄩ儴鍑哄垪鍚庯紝鎵撳嵃鍑哄嚭鍒楅『搴忚〃銆?BR>
璇︾粏瑙e喅鍔炴硶璇風偣涓嬮潰鐨勯摼鎺ャ?BR>      Josephus闂闈為掑綊鏂規硶錛戣В鍐沖姙娉?/A>
      
Josephus闂閫掑綊鏂規硶錛戣В鍐沖姙娉?/A>
     
 Josephus闂闈為掑綊鏂規硶錛掕В鍐沖姙娉?BR>      Josephus闂閫掑綊鏂規硶錛掕В鍐沖姙娉?/A>

Tauruser 2006-03-05 14:52 鍙戣〃璇勮
]]>
綆楁硶涓庢暟鎹粨鏋勫疄楠?涓)http://www.shnenglu.com/Tauruser/archive/2006/03/04/3708.htmlTauruserTauruserSat, 04 Mar 2006 05:14:00 GMThttp://www.shnenglu.com/Tauruser/archive/2006/03/04/3708.htmlhttp://www.shnenglu.com/Tauruser/comments/3708.htmlhttp://www.shnenglu.com/Tauruser/archive/2006/03/04/3708.html#Feedback0http://www.shnenglu.com/Tauruser/comments/commentRss/3708.htmlhttp://www.shnenglu.com/Tauruser/services/trackbacks/3708.html       錛戙佽瘯緙栧啓鍦ㄦ暟緇勪腑鎻掑叆涓涓厓绱犲拰鍒犻櫎涓涓厓绱犵殑鍑芥暟錛屽茍璋冪敤姝ゅ嚱鏁頒綔涓涓暣鍨嬫暟緇勭殑鎻掑叆鍜屽垹闄わ紝瑕佹眰鏁村艦鏁扮粍寮濮嬪惈鏈夛紤錛愪釜鍏冪礌錛屾彃鍏ョ殑浣嶇疆鍙湪浠繪剰涓や釜鏁扮粍鍏冪礌涔嬮棿銆佺涓涓厓绱犲墠鍜屾渶鍚庝竴涓厓绱犲悗錛屽垹闄や換鎰忔寚瀹氫綅緗殑鍏冪礌錛屽茍灝嗗悇鍏冪礌鐨勪綅緗強鐩稿簲鐨勫厓绱犲兼墦鍗板嚭鏉ャ?BR>
      姝e銆?A class=singleposttitle id=viewpost1_TitleUrl HREF="/Tauruser/archive/2006/03/03/3690.html">鎴戠殑綆楁硶涓庢暟鎹粨鏋勫涔?浜? 銆嬩腑璋堝埌錛屽湪欏哄簭瀛樺偍涓紝鎻掑叆涓庡垹闄ゆ搷浣滅殑瀹炵幇鍏跺叧閿湪浜庡欏哄簭瀛樺偍絀洪棿鐨勭鐞嗐備綔涓洪『搴忓瓨鍌紝杈冧負鍏稿瀷鐨勬槸鍦ㄦ暟緇勪腑榪涜銆傚綋榪涜鎻掑叆鍜屽垹闄ゆ搷浣滄椂錛岄兘瑕佹秹鍙婂埌鍚勪釜鏁扮粍鍏冪礌鐨勭Щ浣嶏紝縐諱綅鐨勯『搴忔槸鍏抽敭鐨勶紝涓涓嶅皬蹇冩悶閿欎簡縐諱綅鐨勯『搴忓氨鍙兘瀵艱嚧鏁扮粍鍏冪礌鍐呭鐨勪涪澶便?BR>
 1#include <iostream>
 2using namespace std;
 3int a[20];
 4int count;
 5int choice;
 6bool Exit(0);
 7void insert(int *line);
 8void del(int *line);
 9void display(int *line);
10
11
12int _tmain(int argc, _TCHAR* argv[])
13{
14    for(int i(0);i<10;i++)
15        a[i]=i;
16    count=10;
17    while(!Exit)
18    {
19        cout<<"1.insert a num"<<endl;
20        cout<<"2.delete a num"<<endl;
21        cout<<"3.dispaly the list"<<endl;
22        cout<<"0.exit"<<endl;
23        cout<<"please input your choice:";
24        cin>>choice;
25        if(choice==1)
26        {
27            insert(a);
28        }

29        else if(choice ==2)
30        {
31            del(a);
32        }

33        else if(choice==3)
34        {
35            display(a);
36        }

37        else if(choice==0)
38        {
39            Exit=true;
40        }

41    }

42    cout<<"Power by Tauruser";
43    return 0;
44
45}

46
47void insert(int *line)
48{
49    int loc,num;
50    cout<<"where you would like to insert:";
51    cin>>loc;
52    if(loc<1 || loc>count+1)
53    {
54        cout<<"data overflow";
55        return;
56    }

57    cout<<"what num you would like to insert:";
58    cin>>num;
59    for(int i=count;i>loc-1;i--)
60    {
61        line[i]=line[i-1];
62    }

63    count++;
64    line[loc-1]=num;
65}

66
67void del(int *line)
68{
69    int loc;
70    cout<<"which num you would like to delete:";
71    cin>>loc;
72    if(loc<1 || loc>count)
73    {
74        cout<<"data overflow";
75        return;
76    }

77    for(int i=loc-1;i<count-1;i++)
78    {
79        line[i]=line[i+1];
80    }

81    count--;
82}

83
84void display(int *line)
85{
86    for(int i(0);i<count;i++)
87    {
88        cout<<"No."<<i+1<<" num is "<<line[i]<<endl;
89    }

90}

91
      浠巌nsert()涓巇el()涓や釜鍑芥暟鏉ョ湅錛屽湪鏁扮粍閲岃繘琛岀Щ浣嶇殑欏哄簭鍒氭墠鐩稿弽銆傛彃鍏ヤ粠鍚庡埌鍓嶏紝鍒犻櫎浠庡墠鍒板悗銆傝繖鏍風殑欏哄簭紜繚浜嗭紝鍏冪礌鍊間笉浼氱粰瑕嗙洊涓㈠け銆傚叾瀹炲鏋滃啀鎻愪緵涓涓猼emp鐨勫彉閲忥紝涔熷彲浠ュ疄鐜扮Щ鍔ㄩ『搴忕殑鏀瑰彉銆備絾灝辮鍐嶅紩鍏ヤ竴涓彉閲忎簡銆?BR>
PS:鍙﹀璇翠竴鐐癸紝鏈夊悓瀛﹂棶鎴戜負浠涔堝湪VS.net騫沖彴閲岃佹槸娌℃湁鍔炴硶#include <iostream.h>銆傛垜鎯沖彲鑳絍S.net宸茬粡鍦–++涓斁寮冩敮鎸佽繖涓簡銆傚彲浠ユ崲鎴?
#include <iostream>
using namespace std;
浣跨敤ISO C++鐨勫簱灝辮浜嗐備笉鐭ラ亾鎴戠殑瑙佽В鏄惁姝g‘銆?img src ="http://www.shnenglu.com/Tauruser/aggbug/3708.html" width = "1" height = "1" />

Tauruser 2006-03-04 13:14 鍙戣〃璇勮
]]>
鎴戠殑綆楁硶涓庢暟鎹粨鏋勫涔?浜? http://www.shnenglu.com/Tauruser/archive/2006/03/03/3690.htmlTauruserTauruserFri, 03 Mar 2006 09:20:00 GMThttp://www.shnenglu.com/Tauruser/archive/2006/03/03/3690.htmlhttp://www.shnenglu.com/Tauruser/comments/3690.htmlhttp://www.shnenglu.com/Tauruser/archive/2006/03/03/3690.html#Feedback1http://www.shnenglu.com/Tauruser/comments/commentRss/3690.htmlhttp://www.shnenglu.com/Tauruser/services/trackbacks/3690.html

綆鍗曠殑鏁版嵁緇撴瀯



銆銆鍑犱綍涓婄殑瀛︿範浠庣偣錛屽埌綰匡紝鍒伴潰銆傝屽湪鏁版嵁緇撴瀯涓婏紝灝變粠鏈綆鍗曠殑綰挎х粨鏋勫紑濮嬨?BR>
錛掋侊紤綰挎х粨鏋勩浠庨昏緫涓婃潵鐪嬫槸綰挎у叧緋?BR>銆銆銆姣忎竴涓妭鐐歸兘鏈変竴涓敮涓鐨勫墠椹變篃鍚庣戶錛岃妭鐐逛箣闂存湁鍏堝悗鐨勪箣鍒嗐?BR>涓浜涘搴旂殑涓嫳鏂囷細
銆銆銆linear list 綰挎ц〃    predecesser 鐩存帴鍓嶉┍銆successor 鐩存帴鍚庣戶

鍩烘湰姒傚康鏈夛細
鈶犵粨鐐?BR>鈶″吀鍨嬬殑瀛樺偍鏂瑰紡錛氶『搴忓瓨鍌ㄥ嵆鐗╃悊涓庨昏緫欏哄簭涓鑷?BR>鈶㈠熀鏈繍綆?BR>銆鈶村彇
銆鈶典慨鏀?BR>銆鈶舵彃鍏?BR>銆鈶峰垹闄?BR>銆鈶告帓搴?BR>銆鈶規煡鎵?BR>銆鈶烘祴璇?BR>鍏朵腑鈶垛懛涓昏娑夊強絀洪棿鐨勯噸鏂扮粍緇囷紝鈶糕懝涓昏娑夊強鏃墮棿澶嶆潅搴﹂棶棰樸?BR>
鍏充簬鎻掑叆涓庡垹闄ょ殑綆楁硶錛屽皢鍦ㄦ暟鎹粨鏋勭殑瀹為獙涓皥鍒般?BR>
鈶g畻娉曞鏉傚害浼拌錛堝叧閿湪浜庤綆楀熀鏈繍綆楄繘琛岀殑嬈℃暟錛?BR>

綆楁硶澶嶆潅搴︿及璁″熀浜庡亣璁撅細鎻掑叆鍜屽垹闄ょ殑浣嶇疆鏄殢鏈虹殑銆傚嵆浠繪剰浣嶇疆涓婂彂鐢熺殑鍙兘鎬т竴鑷淬?BR>閫氳繃姒傜巼涓庣粺璁″鐨勭煡璇嗭紝鍙互姹傚嚭鍩烘湰榪愮畻鐨勫鉤鍧囪繍琛屾鏁般傝繖灝辨槸綆楁硶澶嶆潅搴︾殑璁$畻銆?BR>涓鑸儏鍐碉紝閮藉彲浠ユ妸涓浜涘驚鐜鍙ヤ腑鐨勮鍙ヤ綔涓哄熀鏈繍綆椼傦紙鎴戣嚜宸辯殑瑙佽В錛?BR>
鏁扮粍鏂瑰紡瀹炵幇鐨勭嚎鎬ц〃鏈変笉瓚籌紝鍙氳繃鐢ㄧ洰褰曡〃鐨勫艦寮忓姞浠ュ厠鏈嶃?BR>
灝嗙粨鐐圭殑搴忓彿瀛樺偍鍦ㄩ『搴忚〃涓紝鑰岀粨鐐圭殑鍐呭鍒欏彲鐢ㄥ悇縐嶆柟寮忛殢鏈哄瓨鍌紝鏃㈠彲瑙e喅瀛樺偍絀洪棿鐨勫垎鏁fч棶棰橈紝涔熷彲浠ュ疄鐜板揩閫熸煡鎵俱?/P>

Tauruser 2006-03-03 17:20 鍙戣〃璇勮
]]>
鎴戠殑綆楁硶涓庢暟鎹粨鏋勫涔?涓)http://www.shnenglu.com/Tauruser/archive/2006/03/03/3685.htmlTauruserTauruserFri, 03 Mar 2006 08:48:00 GMThttp://www.shnenglu.com/Tauruser/archive/2006/03/03/3685.htmlhttp://www.shnenglu.com/Tauruser/comments/3685.htmlhttp://www.shnenglu.com/Tauruser/archive/2006/03/03/3685.html#Feedback2http://www.shnenglu.com/Tauruser/comments/commentRss/3685.htmlhttp://www.shnenglu.com/Tauruser/services/trackbacks/3685.html銆銆宸茬粡榪涘叆浜嗙浜屼釜鏄熸湡鐨勫ぇ浜岀浜屼釜瀛︽湡鐨勮紼嬶紝榪欎釜瀛︽湡鐨勪富瑕佽紼嬩箣涓灝辨槸銆婄畻娉曚笌鏁版嵁緇撴瀯銆嬨備粠鎴戝ぇ瀛︿互鏉ョ殑瀛︿範褰撲腑錛岃繕娌℃湁瀛︿範鏁版嵁緇撴瀯榪欓棬璇劇▼錛屽浜庢暟鎹粨鏋勭殑閲嶈鎬э紝鎴戝凡緇忔湁鎵浜嗚В銆傛墍浠ユ垜鎯沖敖鎴戞渶澶х殑鑳藉姏瀛﹀ソ榪欓棬璇劇▼銆傚湪瀛︿範涓紝鎴戝氨灝嗘垜瀛︿範榪囩▼涓殑涓浜涚粡鍘嗗啓鍐欍傛潈褰撴槸瀵硅繖闂ㄨ紼嬬殑鎬葷粨錛屼篃褰撴槸瀵硅繖闂ㄨ紼嬬殑鍔犳繁鐞嗚В鍚э紒
銆銆
銆銆綆楁硶涓庢暟鎹粨鏋勫湪紼嬪簭璁捐涓殑浠介噺鏄笉璦鑰屽柣鐨勩?BR>
鏁版嵁緇撴瀯涓昏鍖呮嫭涓夋柟闈㈢殑鍐呭錛氶昏緫緇撴瀯銆佸瓨鍌ㄧ粨鏋勩佹湁鍏蟲搷浣溿傞昏緫緇撴瀯涓庡瓨鍌ㄧ粨鏋勭殑杞寲銆傚悓鏍蜂竴縐嶉昏緫緇撴瀯鍜屽瓨鍌ㄧ粨鏋勶紝濡傛灉鍦ㄥ畠浠笂闈㈣祴浜堜笉鍚岀殑鎿嶄綔錛屽畠浠篃鏄笉鍚岀殑鏁版嵁緇撴瀯銆傚氨濡傞槦鍒楋紝鍫嗘爤涔嬮棿鐨勫樊鍒?BR>
閫昏緫緇撴瀯鍖呮嫭鏈夌嚎鎬х粨鏋勫拰闈炵嚎鎬х粨鏋勩傝岄潪綰跨粨鏋勫張鍙垎涓烘爲銆佸浘銆佺綉鍑犵

瀛樺偍緇撴瀯鏈夛細鈶撮『搴忔柟娉曘鈶甸摼鎺ユ柟娉曘鈶剁儲寮曟柟娉曘鈶鋒暎鍒楁柟娉?BR>
綆楁硶琛ㄧず褰㈠紡鏈夛細鈶磋嚜鐒惰璦琛ㄧず娉曘鈶典吉浠g爜鏂規硶銆鈶舵祦紼嬪浘銆鈶風粨鏋勫寲嫻佺▼鍥俱鈶窹AD鍥?BR>



Tauruser 2006-03-03 16:48 鍙戣〃璇勮
]]>
亚洲国产成人久久综合碰碰动漫3d| 久久99精品久久久久久水蜜桃| 精品久久人人妻人人做精品 | 久久综合久久久| 久久久国产乱子伦精品作者| 久久这里只有精品18| 久久综合香蕉国产蜜臀AV| 亚洲AV无码久久精品蜜桃| 久久久亚洲欧洲日产国码二区| 久久国产精品成人片免费| 久久精品无码一区二区无码| 国产精品无码久久久久久| 国内精品久久久久影院一蜜桃| 久久久久亚洲AV无码网站| 国产美女久久久| 久久99精品久久久久久野外 | 亚洲国产成人久久综合野外| 性高湖久久久久久久久AAAAA| 久久久久亚洲av成人网人人软件| 久久久亚洲裙底偷窥综合| 国产亚洲精久久久久久无码| 一级做a爰片久久毛片人呢| 婷婷久久综合九色综合九七| 精品伊人久久大线蕉色首页| 国产成人久久精品一区二区三区| 久久美女网站免费| 久久强奷乱码老熟女网站| 国内精品久久久久久久97牛牛| 青青青国产成人久久111网站| 亚洲精品美女久久久久99小说| 亚洲国产精品无码久久SM| 99久久精品免费看国产一区二区三区| 久久久久亚洲AV无码专区网站| 亚洲国产精品无码久久一线| 国产精品嫩草影院久久| 亚洲综合伊人久久大杳蕉| 久久99精品久久久大学生| 午夜欧美精品久久久久久久| 99久久精品国产一区二区| 亚洲精品无码专区久久久| 精品99久久aaa一级毛片|