锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲伊人久久大香线蕉综合图片,大蕉久久伊人中文字幕,精品国产乱码久久久久久人妻http://www.shnenglu.com/shyli/category/1504.htmlC++涔嬫ⅵzh-cnMon, 19 May 2008 12:29:05 GMTMon, 19 May 2008 12:29:05 GMT60涓閬撶畻娉曢寮曞彂鐨勫姩鎬佸唴瀛樼鐞嗙殑鎬濊?/title><link>http://www.shnenglu.com/shyli/archive/2007/08/13/29853.html</link><dc:creator>beyonlin</dc:creator><author>beyonlin</author><pubDate>Sun, 12 Aug 2007 16:29:00 GMT</pubDate><guid>http://www.shnenglu.com/shyli/archive/2007/08/13/29853.html</guid><wfw:comment>http://www.shnenglu.com/shyli/comments/29853.html</wfw:comment><comments>http://www.shnenglu.com/shyli/archive/2007/08/13/29853.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/shyli/comments/commentRss/29853.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/shyli/services/trackbacks/29853.html</trackback:ping><description><![CDATA[<p>鍦ㄥ仛<a >PKU2762</a>鏃訛紝闇瑕佸緩閭繪帴琛ㄣ?br>浜庢槸鎸夐儴灝辯彮鍐欎簡涓嬮潰涓涓彃鍏ヨ竟鍒伴偦鎺ヨ〃涓殑鍑芥暟錛?/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 twffan="done"><span style="COLOR: #0000ff">const</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> VMAX </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">1010</span><span style="COLOR: #000000">;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">typedef struct Graph<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">{<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">    </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> vex;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">    Graph</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">next</span><span style="COLOR: #000000">;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">}Graph;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">Graph ArcGraph[VMAX];<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">void insert(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> u, </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> v)<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">{<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">    Graph</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: #0000ff">new</span><span style="COLOR: #000000"> Graph;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">    Graph</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000"> p </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> ArcGraph[u].next;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">    t</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">vex </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> v;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">    t</span><span style="COLOR: #000000">-></span><span style="COLOR: #0000ff">next</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> p;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">    ArcGraph[u].next </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> t;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">}</span></div> <p><br>瀹屾垚瀹屾暣鐨勭▼搴忔彁浜や笂鍘伙紝寰楀埌緇撴灉<br>Memory:25796K  Time:375MS<br>Language:C++  Result:Accepted<br><br>鍐嶅姣斿埆浜虹殑紼嬪簭<br>Memory:296K Time:109MS<br><br>鏃犺鏄椂闂磋繕鏄┖闂撮兘鐩稿樊寰堝ぇ銆?br>浜庢槸灝辮冭檻鎬庝箞浼樺寲鑷繁鐨勭▼搴忋?br>絎竴涓棶棰橈細瑙勬ā鍙湁1000錛屼負浠涔堜細鐢ㄩ偅涔堝鍐呭瓨鍛紵<br>浠旂粏涓鎯蟲暟鎹槸澶歝ase鐨勶紝姣忔鎻掑叆鏂拌妭鐐規椂閮借鍔ㄦ佸垱寤轟竴涓妭鐐廣?br>涓鏉ュ姩鎬佸垱寤鴻楁椂闂達紝浜屾潵姣忎釜case緇撴潫鐨勯偦鎺ヨ〃涓殑鑺傜偣娌℃湁閲婃斁錛屾晠鑰楄垂澶ч噺鍐呭瓨銆?br>鐒跺悗灝辨兂鍒頒簡涓嬮潰鐨勭畻娉曪紝棣栧厛鍒濆鍖栦竴鍧楀唴瀛楪raph use[100*VMAX];榪欐牱姣忔闇瑕佹柊鑺傜偣鏃訛紝<br>灝變粠use涓幏鍙栥傚鏋渦se浣跨敤瀹屾瘯灝卞啀鍔ㄦ佸垱寤恒?br><br>渚濇綆楁硶浼樺寲鍚庯紝寰楀埌鐨勭粨鏋滄瘮杈冩弧鎰?br>Memory:1000K  Time:218MS<br>Language:C++  Result:Accepted</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 twffan="done"><span style="COLOR: #0000ff">const</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> VMAX </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">1010</span><span style="COLOR: #000000">;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">typedef struct Graph<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">{<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">    </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> vex;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">    Graph</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">next</span><span style="COLOR: #000000">;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">}Graph;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">Graph ArcGraph[VMAX];<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">Graph use[</span><span style="COLOR: #000000">100</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">VMAX];<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done"></span><span style="COLOR: #0000ff">int</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 src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">void insert(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> u, </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> v)<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">{<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">    Graph</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000"> t;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">    </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">100</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">VMAX)<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">    {<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">        t </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">&</span><span style="COLOR: #000000">use[size];<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">        size</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">    }<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">    </span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000"> t </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> Graph;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">    Graph</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000"> p </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> ArcGraph[u].next;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">    t</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">vex </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> v;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">    t</span><span style="COLOR: #000000">-></span><span style="COLOR: #0000ff">next</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> p;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">    ArcGraph[u].next </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> t;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">}</span></div> <img src ="http://www.shnenglu.com/shyli/aggbug/29853.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/shyli/" target="_blank">beyonlin</a> 2007-08-13 00:29 <a href="http://www.shnenglu.com/shyli/archive/2007/08/13/29853.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍐嶈皥瀛愰泦鏍?/title><link>http://www.shnenglu.com/shyli/archive/2007/07/23/28637.html</link><dc:creator>beyonlin</dc:creator><author>beyonlin</author><pubDate>Mon, 23 Jul 2007 07:56:00 GMT</pubDate><guid>http://www.shnenglu.com/shyli/archive/2007/07/23/28637.html</guid><wfw:comment>http://www.shnenglu.com/shyli/comments/28637.html</wfw:comment><comments>http://www.shnenglu.com/shyli/archive/2007/07/23/28637.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/shyli/comments/commentRss/28637.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/shyli/services/trackbacks/28637.html</trackback:ping><description><![CDATA[鍙戠幇鐢╯tl涓殑bitset姹傚瓙闆嗘爲鍙鐭煭鐨勫嚑琛屼唬鐮?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 src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done"><span style="COLOR: #000000">#include</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">iostream</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done">#include</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">bitset</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br><img id=Codehighlighter1_42_235_Open_Image onclick="this.style.display='none'; Codehighlighter1_42_235_Open_Text.style.display='none'; Codehighlighter1_42_235_Closed_Image.style.display='inline'; Codehighlighter1_42_235_Closed_Text.style.display='inline';" src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top twffan="done"><img id=Codehighlighter1_42_235_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_42_235_Closed_Text.style.display='none'; Codehighlighter1_42_235_Open_Image.style.display='inline'; Codehighlighter1_42_235_Open_Text.style.display='inline';" src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedBlock.gif" align=top twffan="done">using </span><span id=Codehighlighter1_42_235_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">Namespace std</span><span id=Codehighlighter1_42_235_Open_Text><span style="COLOR: #0000ff">namespace</span><span style="COLOR: #000000"> std;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done"></span><span style="COLOR: #0000ff">const</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> n </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">4</span><span style="COLOR: #000000">;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done"></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> main()<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">{<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">    </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"> </span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">; i </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000"> (</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000"> n); i</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">    {<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">        bitset</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">n</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"> bit(i);<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">        </span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> j </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> bit.size() </span><span style="COLOR: #000000">-</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">; j </span><span style="COLOR: #000000">>=</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">; j</span><span style="COLOR: #000000">--</span><span style="COLOR: #000000">)<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">            cout</span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000">bit[j];<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">        cout</span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000">endl;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">    }<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">    </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 twffan="done">}<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done"></span></div> </span>n涓厓绱犳湁2^n涓瓙闆嗭紝<br>i浠?鍒?^n - 1,<br>鎶婂畠鎹㈢畻鎴愪簩榪涘埗灝卞垎鍒搴斾竴涓瓙闆嗐? <img src ="http://www.shnenglu.com/shyli/aggbug/28637.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/shyli/" target="_blank">beyonlin</a> 2007-07-23 15:56 <a href="http://www.shnenglu.com/shyli/archive/2007/07/23/28637.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>浣嶈繍綆楁眰瀛愰泦鏍?/title><link>http://www.shnenglu.com/shyli/archive/2007/07/22/28547.html</link><dc:creator>beyonlin</dc:creator><author>beyonlin</author><pubDate>Sat, 21 Jul 2007 18:59:00 GMT</pubDate><guid>http://www.shnenglu.com/shyli/archive/2007/07/22/28547.html</guid><wfw:comment>http://www.shnenglu.com/shyli/comments/28547.html</wfw:comment><comments>http://www.shnenglu.com/shyli/archive/2007/07/22/28547.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/shyli/comments/commentRss/28547.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/shyli/services/trackbacks/28547.html</trackback:ping><description><![CDATA[浠ュ墠姹傚瓙闆嗘爲閮芥槸鐢ㄥ洖婧硶錛?br>浠婂ぉ鍦╰opcoder鍋歋RM鏃跺鍒頒竴縐嶆眰瀛愰泦鏍戠殑鏂版柟娉曪細浣嶈繍綆椼?br>絎竴閲嶅驚鐜槸鏋氫婦鎵鏈夊瓙闆嗭紝鍏?^n涓紝鍗? << n涓?br>絎簩閲嶅驚鐜眰闆嗗悎鎵鏈塲涓厓绱犵殑鍊鹼紝0鎴?銆?br>姹備竴涓? & (1 << j)鐨勫煎氨鍙互鐭ラ亾瀹冪殑鍘熺悊銆?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 src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top twffan="done"><span style="COLOR: #000000">#include</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">iostream</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br><img id=Codehighlighter1_25_557_Open_Image onclick="this.style.display='none'; Codehighlighter1_25_557_Open_Text.style.display='none'; Codehighlighter1_25_557_Closed_Image.style.display='inline'; Codehighlighter1_25_557_Closed_Text.style.display='inline';" src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top twffan="done"><img id=Codehighlighter1_25_557_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_25_557_Closed_Text.style.display='none'; Codehighlighter1_25_557_Open_Image.style.display='inline'; Codehighlighter1_25_557_Open_Text.style.display='inline';" src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedBlock.gif" align=top twffan="done">using </span><span id=Codehighlighter1_25_557_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">Namespace std</span><span id=Codehighlighter1_25_557_Open_Text><span style="COLOR: #0000ff">namespace</span><span style="COLOR: #000000"> std;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done"></span><span style="COLOR: #0000ff">const</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> n </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">4</span><span style="COLOR: #000000">;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done"></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> x[n];<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done"></span><span style="COLOR: #000000">//</span><span style="COLOR: #000000">鍥炴函娉?br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">void backtrack(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> t)<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">{<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">    </span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(t </span><span style="COLOR: #000000">>=</span><span style="COLOR: #000000"> n)<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">    {<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">        </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"> </span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">; i </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000"> n; i</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">            cout</span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000">x[i];<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">        cout</span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000">endl;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">    }<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">    </span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000"><br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">    {<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">        </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"> </span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">; i </span><span style="COLOR: #000000"><=</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">1</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 twffan="done">        {<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">            x[t] </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> i;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">            backtrack(t </span><span style="COLOR: #000000">+</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/InBlock.gif" align=top twffan="done">        }<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">    }<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">}<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done"></span><span style="COLOR: #000000">//</span><span style="COLOR: #000000">浣嶈繍綆?br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">void bitOperate()<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">{<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">    </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"> </span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">; i </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000"> (</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000"> n); i</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">    {<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">        </span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> j </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">; j </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000"> n; j</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">        {<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">            </span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">( (i </span><span style="COLOR: #000000">&</span><span style="COLOR: #000000"> (</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000"> j) ) </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 twffan="done">                x[j] </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 twffan="done">            </span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000"><br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">                x[j] </span><span style="COLOR: #000000">=</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/InBlock.gif" align=top twffan="done">        }<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">        </span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> j </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">; j </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000"> n; j</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">            cout</span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000">x[j];<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">        cout</span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000">endl;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">    }<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">}<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done"></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> main()<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">{<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">    backtrack(</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">);<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">    cout</span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000">endl;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">    bitOperate();<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done">    </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 twffan="done">}<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top twffan="done"></span></div> </span> <img src ="http://www.shnenglu.com/shyli/aggbug/28547.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/shyli/" target="_blank">beyonlin</a> 2007-07-22 02:59 <a href="http://www.shnenglu.com/shyli/archive/2007/07/22/28547.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>瀛楃涓瞙ash鍑芥暟http://www.shnenglu.com/shyli/archive/2007/04/07/21455.htmlbeyonlinbeyonlinSat, 07 Apr 2007 08:22:00 GMThttp://www.shnenglu.com/shyli/archive/2007/04/07/21455.htmlhttp://www.shnenglu.com/shyli/comments/21455.htmlhttp://www.shnenglu.com/shyli/archive/2007/04/07/21455.html#Feedback2http://www.shnenglu.com/shyli/comments/commentRss/21455.htmlhttp://www.shnenglu.com/shyli/services/trackbacks/21455.html鍦ㄤ笅鍒楃▼搴忎腑錛屼笉鏄寜甯歌鏂規硶鐢ㄥ搱甯岃〃鏉ヨ褰曞叧閿瓧錛?br>鑰屾槸鐢ㄦ暣鍨嬫暟緇凥table璁板綍鍏抽敭瀛楀湪瀛楃涓瞔h涓殑浣嶇疆銆?br>鍦ㄦ彃鍏ユ椂涓嶇敤鎶婂叧閿瓧澶嶅埗鍒板搱甯岃〃涓紝鍙槸璁板綍涓涓儲寮曪紝浠庤屾彁楂樹簡鏁堢巼銆?br>褰撴煡璇㈡椂錛屽彧瑕佹妸Htable鐨勫兼槧灝勫埌瀛楃涓瞔h涓氨鍙互浜嗐?br>娉ㄦ剰ch鐨勪笅鏍囪浠?寮濮嬶紝鍥犱負Htable涓殑闆跺艱涓烘槸絀猴紝澶勭悊璧鋒潵姣旇緝鏂逛究銆?
#include<iostream>
#include
<string>
using 
namespace std;
const int MAXN = 9973//鍝堝笇琛ㄩ暱搴?br>const int len = 30//瀛楃涓茬殑鏈澶ч暱搴?br>int Htable[MAX];
char ch[MAX][len]; //瀛樺偍鍏抽敭瀛楃殑瀛楃涓?br>unsigned long Hash(char * key)
{
    unsigned 
long h = 0;
    
while(*key)
    {
        h 
= (h << 4+ *key++;
        unsigned 
long g = h & 0xf0000000L;
        
if(g)
            h 
^= g >> 24;
        h 
&= ~g;
    }
    
return h % MAX;
}
int search(char * key)
{
    unsigned 
long i = Hash(key);
    
while(Htable[i])
    {
        
if(strcmp(ch[Htable[i]], key) == 0)
            
return i;
        i 
= (i + 1) % MAX;
    }
    
return -1;
}
int insert(char * key, int j) //j涓哄叧閿瓧鍦╟h涓殑浣嶇疆錛屽嵆绱㈠紩
{
    unsigned 
long i = Hash(key);
    
while(Htable[i])
        i 
= (i + 1) % MAX;
    Htable[i] 
= j;
    
return i;
}


beyonlin 2007-04-07 16:22 鍙戣〃璇勮
]]>
浼樺厛闃熷垪鐢ㄦ硶http://www.shnenglu.com/shyli/archive/2007/04/06/21366.htmlbeyonlinbeyonlinThu, 05 Apr 2007 18:09:00 GMThttp://www.shnenglu.com/shyli/archive/2007/04/06/21366.htmlhttp://www.shnenglu.com/shyli/comments/21366.htmlhttp://www.shnenglu.com/shyli/archive/2007/04/06/21366.html#Feedback0http://www.shnenglu.com/shyli/comments/commentRss/21366.htmlhttp://www.shnenglu.com/shyli/services/trackbacks/21366.html鍦ㄤ紭鍏堥槦鍒椾腑錛屼紭鍏堢駭楂樼殑鍏冪礌鍏堝嚭闃熷垪銆?br>鏍囧噯搴撻粯璁や嬌鐢ㄥ厓绱犵被鍨嬬殑<鎿嶄綔絎︽潵紜畾瀹冧滑涔嬮棿鐨勪紭鍏堢駭鍏崇郴銆?br>浼樺厛闃熷垪鐨勭涓縐嶇敤娉曪紝涔熸槸鏈甯哥敤鐨勭敤娉曪細

priority_queue<int> qi;

閫氳繃<鎿嶄綔絎﹀彲鐭ュ湪鏁存暟涓厓绱犲ぇ鐨勪紭鍏堢駭楂樸?br>鏁呯ず渚?涓緭鍑虹粨鏋滀負錛? 6 5 3 2

絎簩縐嶆柟娉曪細
鍦ㄧず渚?涓紝濡傛灉鎴戜滑瑕佹妸鍏冪礌浠庡皬鍒板ぇ杈撳嚭鎬庝箞鍔炲憿錛?br>榪欐椂鎴戜滑鍙互浼犲叆涓涓瘮杈冨嚱鏁幫紝浣跨敤functional.h鍑芥暟瀵硅薄浣滀負姣旇緝鍑芥暟銆?/p>

priority_queue<int, vector<int>, greater<int> >qi2;

鍏朵腑
絎簩涓弬鏁頒負瀹瑰櫒綾誨瀷銆?br>絎簩涓弬鏁頒負姣旇緝鍑芥暟銆?br>鏁呯ず渚?涓緭鍑虹粨鏋滀負錛? 3 5 6 9

絎笁縐嶆柟娉曪細
鑷畾涔変紭鍏堢駭銆?/p>

struct node
{
    
friend bool operator< (node n1, node n2)
    {
        
return n1.priority < n2.priority;
    }
    
int priority;
    
int value;
};

鍦ㄨ緇撴瀯涓紝value涓哄鹼紝priority涓轟紭鍏堢駭銆?br>閫氳繃鑷畾涔塷perator<鎿嶄綔絎︽潵姣旇緝鍏冪礌涓殑浼樺厛綰с?br>鍦ㄧず渚?涓緭鍑虹粨鏋滀負錛?br>浼樺厛綰?nbsp; 鍊?br>9          5
8          2
6          1
2          3
1          4
浣嗗鏋滅粨鏋勫畾涔夊涓嬶細

struct node
{
    
friend bool operator> (node n1, node n2)
    {
        
return n1.priority > n2.priority;
    }
    
int priority;
    
int value;
};

鍒欎細緙栬瘧涓嶈繃錛圙++緙栬瘧鍣級
鍥犱負鏍囧噯搴撻粯璁や嬌鐢ㄥ厓绱犵被鍨嬬殑<鎿嶄綔絎︽潵紜畾瀹冧滑涔嬮棿鐨勪紭鍏堢駭鍏崇郴銆?br>鑰屼笖鑷畾涔夌被鍨嬬殑<鎿嶄綔絎︿笌>鎿嶄綔絎﹀茍鏃犵洿鎺ヨ仈緋伙紝鏁呬細緙栬瘧涓嶈繃銆?br>
//浠g爜娓呭崟

#include<iostream>
#include
<functional>
#include
<queue>
using 
namespace std;
struct node
{
    
friend bool operator< (node n1, node n2)
    {
        
return n1.priority < n2.priority;
    }
    
int priority;
    
int value;
};
int main()
{
    
const int len = 5;
    
int i;
    
int a[len= {3,5,9,6,2};
    
//紺轟緥1
    priority_queue
<int> qi;
    
for(i = 0; i < len; i++)
        qi.push(a[i]);
    
for(i = 0; i < len; i++)
    {
        cout
<<qi.top()<<" ";
        qi.pop();
    }
    cout
<<endl;
    
//紺轟緥2
    priority_queue
<int, vector<int>, greater<int> >qi2;
    
for(i = 0; i < len; i++)
        qi2.push(a[i]);
    
for(i = 0; i < len; i++)
    {
        cout
<<qi2.top()<<" ";
        qi2.pop();
    }
    cout
<<endl;
    
//紺轟緥3
    priority_queue
<node> qn;
    node b[
len];
    b[
0].priority = 6; b[0].value = 1
    b[
1].priority = 9; b[1].value = 5
    b[
2].priority = 2; b[2].value = 3
    b[
3].priority = 8; b[3].value = 2
    b[
4].priority = 1; b[4].value = 4

    
for(i = 0; i < len; i++)
        qn.push(b[i]);
    cout
<<"浼樺厛綰?/span>"<<'\t'<<"鍊?<<endl;
    for(i = 0; i < len; i++)
    {
        cout
<<qn.top().priority<<'\t'<<qn.top().value<<endl;
        qn.pop();
    }
    
return 0;
}


beyonlin 2007-04-06 02:09 鍙戣〃璇勮
]]>
璁℃暟鎺掑簭http://www.shnenglu.com/shyli/archive/2007/04/03/21130.htmlbeyonlinbeyonlinMon, 02 Apr 2007 16:57:00 GMThttp://www.shnenglu.com/shyli/archive/2007/04/03/21130.htmlhttp://www.shnenglu.com/shyli/comments/21130.htmlhttp://www.shnenglu.com/shyli/archive/2007/04/03/21130.html#Feedback0http://www.shnenglu.com/shyli/comments/commentRss/21130.htmlhttp://www.shnenglu.com/shyli/services/trackbacks/21130.htmlcountSort鐢ㄤ簬瀵規暣鍨嬫暟緇勬帓搴忥紝鏃墮棿澶嶆潅搴︿負O(k+n)銆?br>褰搆 = O(n)鏃訛紝鏃墮棿澶嶆潅搴﹀彉涓篛(n)銆?br>c[i]璁板綍a鏁扮粍涓暟鍊煎ぇ浜庢垨絳変簬i鐨勪釜鏁?br>
int countSort(int * a, int k, int n)
{
    
int i;
    
int * c = new int [k+1], * b = new int [n];
    
for(i = 0; i <= k; i++)
        c[i] 
= 0;
    
for(i = 0; i < n; i++)
        c[a[i]]
++;
    
for(i = 1; i <= k; i++)
        c[i] 
+= c[i-1];
    
for(i = n - 1; i >= 0; i--)
    {
        b[c[a[i]]
-1= a[i];
        c[a[i]]
--;
    }
    
for(i = 0; i < n; i++)
        a[i] 
= b[i];
    delete [] b;
    delete [] c;
    
return 0;
}


beyonlin 2007-04-03 00:57 鍙戣〃璇勮
]]>
銆奀++ Primer銆嬩箣璇諱功絎旇涓?/title><link>http://www.shnenglu.com/shyli/archive/2007/03/16/19938.html</link><dc:creator>beyonlin</dc:creator><author>beyonlin</author><pubDate>Thu, 15 Mar 2007 17:29:00 GMT</pubDate><guid>http://www.shnenglu.com/shyli/archive/2007/03/16/19938.html</guid><wfw:comment>http://www.shnenglu.com/shyli/comments/19938.html</wfw:comment><comments>http://www.shnenglu.com/shyli/archive/2007/03/16/19938.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/shyli/comments/commentRss/19938.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/shyli/services/trackbacks/19938.html</trackback:ping><description><![CDATA[ <hr /> 瀛﹀埌浜嗕竴涓柊鐨勭煡璇嗙偣錛氬嚱鏁板璞°?br />瀹氫箟浜嗚皟鐢ㄦ搷浣滅鐨勭被錛屽叾瀵硅薄縐頒負鍑芥暟瀵硅薄銆?br />渚嬪<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 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">iostream</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br /><img id="Codehighlighter1_25_188_Open_Image" onclick="this.style.display='none'; Codehighlighter1_25_188_Open_Text.style.display='none'; Codehighlighter1_25_188_Closed_Image.style.display='inline'; Codehighlighter1_25_188_Closed_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_25_188_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_25_188_Closed_Text.style.display='none'; Codehighlighter1_25_188_Open_Image.style.display='inline'; Codehighlighter1_25_188_Open_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align="top" />using聽</span><span id="Codehighlighter1_25_188_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">Namespace聽std</span><span id="Codehighlighter1_25_188_Open_Text"><span style="COLOR: #0000ff">namespace</span><span style="COLOR: #000000">聽std;<br /><img src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" />struct聽absInt<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">int</span><span style="COLOR: #000000">聽operator()聽(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">聽v)<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">聽v聽</span><span style="COLOR: #000000">></span><span style="COLOR: #000000">聽</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">聽?聽v聽:聽</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">v;<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" />};<br /><img src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">聽main()<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" />聽聽聽聽absInt聽obj;<br /><img src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">聽a聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽obj(</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">15</span><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">a</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: #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" />}</span></span></div>杈撳嚭緇撴灉涓?5銆?br />瀵圭被absInt鐨勫璞bj浣跨敤璋冪敤鎿嶄綔絎﹀氨鍍忎嬌鐢ㄥ嚱鏁頒竴鏍楓?img src ="http://www.shnenglu.com/shyli/aggbug/19938.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/shyli/" target="_blank">beyonlin</a> 2007-03-16 01:29 <a href="http://www.shnenglu.com/shyli/archive/2007/03/16/19938.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鎻掑叆鎺掑簭娉涘瀷綆楁硶http://www.shnenglu.com/shyli/archive/2007/02/06/18485.htmlbeyonlinbeyonlinTue, 06 Feb 2007 11:13:00 GMThttp://www.shnenglu.com/shyli/archive/2007/02/06/18485.htmlhttp://www.shnenglu.com/shyli/comments/18485.htmlhttp://www.shnenglu.com/shyli/archive/2007/02/06/18485.html#Feedback3http://www.shnenglu.com/shyli/comments/commentRss/18485.htmlhttp://www.shnenglu.com/shyli/services/trackbacks/18485.htmltemplate <typename Iter> void insertSort(Iter *begin, Iter *end) { for(Iter *it = begin + 1; it != end; it++) { Iter tmp = *it; Iter *it2 = it - 1; while(it2 > begin - 1 && *it2 > tmp) { *(it2 + 1) = *it2; it2 --; } *(it2 + 1) = tmp; } }

beyonlin 2007-02-06 19:13 鍙戣〃璇勮
]]>
銆奀++ Primer銆嬩箣璇諱功絎旇鍏?/title><link>http://www.shnenglu.com/shyli/archive/2007/01/30/18185.html</link><dc:creator>beyonlin</dc:creator><author>beyonlin</author><pubDate>Tue, 30 Jan 2007 10:04:00 GMT</pubDate><guid>http://www.shnenglu.com/shyli/archive/2007/01/30/18185.html</guid><wfw:comment>http://www.shnenglu.com/shyli/comments/18185.html</wfw:comment><comments>http://www.shnenglu.com/shyli/archive/2007/01/30/18185.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/shyli/comments/commentRss/18185.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/shyli/services/trackbacks/18185.html</trackback:ping><description><![CDATA[ <pre> 妯℃澘浣滅敤鍩熶腑鐨勬ā鏉跨被鍨嬪紩鐢ㄣ? template <class elemType> class ListItem; template <class elemType> class List { public: List<elemType> (); ~List(); private: //ListItem *front; //ListItem *end; ListItem<elemType> *front; ListItem<elemType> *end; }; 閫氬父浣跨敤綾繪ā鏉跨殑鍚嶅瓧鐨勬椂鍊欙紝蹇呴』鎸囧畾妯℃澘褰㈠弬銆? 浣嗗湪綾繪湰韜殑浣滅敤鍩熷唴閮紝鍙互浣跨敤綾繪ā鏉跨殑闈為檺瀹氬悕銆? 渚嬪錛歀ist鏄疞ist<elemType>鐨勭緝鍐欍? 浣嗙紪璇戝櫒涓嶄細涓虹被涓嬌鐢ㄧ殑鍏朵粬鐨勬ā鏉垮艦鍙傝繘琛岃繖鏍風殑鎺ㄦ柇錛屽洜姝ゅ繀欏繪寚瀹氱被鍨嬪艦鍙傘? 渚嬪鍦↙ist妯℃澘綾諱腑浣跨敤ListItem妯℃澘綾繪椂錛? ListItem *front 鏄敊璇殑 ListItem<elemType> *front 鎵嶆槸姝g‘鐨勩? </pre> <img src ="http://www.shnenglu.com/shyli/aggbug/18185.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/shyli/" target="_blank">beyonlin</a> 2007-01-30 18:04 <a href="http://www.shnenglu.com/shyli/archive/2007/01/30/18185.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>銆奀++ Primer銆嬩箣璇諱功絎旇浜?/title><link>http://www.shnenglu.com/shyli/archive/2007/01/22/17901.html</link><dc:creator>beyonlin</dc:creator><author>beyonlin</author><pubDate>Mon, 22 Jan 2007 15:50:00 GMT</pubDate><guid>http://www.shnenglu.com/shyli/archive/2007/01/22/17901.html</guid><wfw:comment>http://www.shnenglu.com/shyli/comments/17901.html</wfw:comment><comments>http://www.shnenglu.com/shyli/archive/2007/01/22/17901.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/shyli/comments/commentRss/17901.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/shyli/services/trackbacks/17901.html</trackback:ping><description><![CDATA[ <pre> #include<cstdio> using namespace std; template<class T, class T1, class T2> T sum(T1 v1, T2 v2) { T value = v1 + v2; return value; } int main() { int i = sum<int>(1,2.1);//璋冪敤姝g‘銆? return 0; } #include<cstdio> using namespace std; template<class T1, class T2, class T> T sum(T1 v1, T2 v2) { T value = v1 + v2; return value; } int main() { int j = sum<int>(1,2.1);//璋冪敤閿欒銆? int k = sum<int, int, double>(1,2.1);//璋冪敤姝g‘銆? return 0; } 榪欎袱縐嶅尯鍒氨鍦ㄤ簬template鐨勫畾涔夛細 template<class T, class T1, class T2> 涓? template<class T1, class T2, class T> 鏄懼紡妯℃澘瀹炲弬涓庡搴旀ā鏉垮艦鍙傜浉鍖歸厤銆? int j = sum<int>(1,2.1); 鍦ㄨ繖涓皟鐢ㄤ腑錛宨nt瀵瑰簲鐨勬槸T1, 娌℃湁瀹炲弬鐨勭被鍨嬪彲浠ユ帹鏂璗鐨勭被鍨嬶紝鏁呰璋冪敤鏄敊璇殑銆? </pre> <img src ="http://www.shnenglu.com/shyli/aggbug/17901.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/shyli/" target="_blank">beyonlin</a> 2007-01-22 23:50 <a href="http://www.shnenglu.com/shyli/archive/2007/01/22/17901.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>銆奀++ Primer銆嬩箣璇諱功絎旇鍥?/title><link>http://www.shnenglu.com/shyli/archive/2006/11/20/15443.html</link><dc:creator>beyonlin</dc:creator><author>beyonlin</author><pubDate>Sun, 19 Nov 2006 16:46:00 GMT</pubDate><guid>http://www.shnenglu.com/shyli/archive/2006/11/20/15443.html</guid><wfw:comment>http://www.shnenglu.com/shyli/comments/15443.html</wfw:comment><comments>http://www.shnenglu.com/shyli/archive/2006/11/20/15443.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/shyli/comments/commentRss/15443.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/shyli/services/trackbacks/15443.html</trackback:ping><description><![CDATA[娉涘瀷緙栫▼鐨勪袱涓噸瑕佸師鍒? <li>妯℃澘鐨勫艦鍙傛槸const寮曠敤銆? </li><li>鍑芥暟浣撲腑鐨勬祴璇曞彧鐢?lt;姣旇緝銆?<br />褰㈠弬鐢╟onst鍙傛暟鍙互浣垮嚱鏁拌繍琛屽緱鏇村姞蹇?<br />鍙敤<姣旇緝瀵瑰弬鏁扮被鍨嬬殑瑕佹眰錛氬彧欏繪敮鎸?lt;錛屼絾涓嶅繀鏀寔>銆?/li><img src ="http://www.shnenglu.com/shyli/aggbug/15443.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/shyli/" target="_blank">beyonlin</a> 2006-11-20 00:46 <a href="http://www.shnenglu.com/shyli/archive/2006/11/20/15443.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>scanf()鍑芥暟http://www.shnenglu.com/shyli/archive/2006/10/18/13840.htmlbeyonlinbeyonlinWed, 18 Oct 2006 14:51:00 GMThttp://www.shnenglu.com/shyli/archive/2006/10/18/13840.htmlhttp://www.shnenglu.com/shyli/comments/13840.htmlhttp://www.shnenglu.com/shyli/archive/2006/10/18/13840.html#Feedback0http://www.shnenglu.com/shyli/comments/commentRss/13840.htmlhttp://www.shnenglu.com/shyli/services/trackbacks/13840.html杞嚜錛?a >http://blog.csdn.net/liu_tang/archive/2006/08/01/1008611.aspx
鍑芥暟鍚? scanf
鍔熉?鑳? 鎵ц鏍煎紡鍖栬緭鍏?
鐢?娉? int scanf(char *format[,argument,...]);

scanf()鍑芥暟鏄氱敤緇堢鏍煎紡鍖栬緭鍏ュ嚱鏁幫紝瀹冧粠鏍囧噯杈撳叆璁懼(閿洏) 璇誨彇杈撳叆鐨勪俊鎭傚彲浠ヨ鍏ヤ換浣曞浐鏈夌被鍨嬬殑鏁版嵁騫惰嚜鍔ㄦ妸鏁板煎彉鎹㈡垚閫傚綋鐨勬満鍐呮牸寮忋?/p>

鍏惰皟鐢ㄦ牸寮忎負:聽聽聽聽聽 scanf("<鏍煎紡鍖栧瓧絎︿覆>"錛?lt;鍦板潃琛?gt;);

scanf()鍑芥暟榪斿洖鎴愬姛璧嬪肩殑鏁版嵁欏規暟錛屽嚭閿欐椂鍒欒繑鍥濫OF銆?/p>

鍏舵帶鍒朵覆鐢變笁綾誨瓧絎︽瀯鎴愶細

1銆傛牸寮忓寲璇存槑絎︼紱
2銆傜┖鐧界錛?br />3銆傞潪絀虹櫧絎︼紱


錛圓錛壜犅犅犅犅犅犅犅犅犅犅犅犅犅犅?鏍煎紡鍖栬鏄庣


鏍煎紡瀛楃聽聽聽聽聽聽聽聽聽聽 璇存槑

%a聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 璇誨叆涓涓誕鐐瑰?浠匔99鏈夋晥)
%A聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 鍚屼笂
%c聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 璇誨叆涓涓瓧絎?br />%d聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 璇誨叆鍗佽繘鍒舵暣鏁?br />%i聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 璇誨叆鍗佽繘鍒訛紝鍏繘鍒訛紝鍗佸叚榪涘埗鏁存暟
%o聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 璇誨叆鍏繘鍒舵暣鏁?br />%x聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 璇誨叆鍗佸叚榪涘埗鏁存暟
%X聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 鍚屼笂
%c聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 璇誨叆涓涓瓧絎?br />%s聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 璇誨叆涓涓瓧絎︿覆
%f聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 璇誨叆涓涓誕鐐規暟
%F聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 鍚屼笂
%e聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 鍚屼笂
%E聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 鍚屼笂
%g聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 鍚屼笂
%G聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 鍚屼笂
%p聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 璇誨叆涓涓寚閽?br />%u聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 璇誨叆涓涓棤絎﹀彿鍗佽繘鍒舵暣鏁?br />%n聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 鑷蟲宸茶鍏ュ肩殑絳変環瀛楃鏁?br />%[]聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 鎵弿瀛楃闆嗗悎
%%聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 璇?絎﹀彿



beyonlin 2006-10-18 22:51 鍙戣〃璇勮
]]>
istringstream鐢ㄦ硶http://www.shnenglu.com/shyli/archive/2006/10/17/13758.htmlbeyonlinbeyonlinMon, 16 Oct 2006 16:37:00 GMThttp://www.shnenglu.com/shyli/archive/2006/10/17/13758.htmlhttp://www.shnenglu.com/shyli/comments/13758.htmlhttp://www.shnenglu.com/shyli/archive/2006/10/17/13758.html#Feedback0http://www.shnenglu.com/shyli/comments/commentRss/13758.htmlhttp://www.shnenglu.com/shyli/services/trackbacks/13758.html
#include<iostream>
#include<sstream>
using namespace std;
int main()
{
	string str, line;
	while(getline(cin, line))
	{
		istringstream stream(line);
		while(stream>>str)
			cout<<str.c_str()<<endl;
	}	
	return 0;
}
嫻嬭瘯錛?br />input錛?br />abc聽 聽df聽聽 e聽聽聽聽聽聽聽聽聽聽聽聽聽 efgeg聽聽聽聽聽 ffg

ouput錛?br />abc
df
e
efgeg
ffg


beyonlin 2006-10-17 00:37 鍙戣〃璇勮
]]>
itoa鍑芥暟http://www.shnenglu.com/shyli/archive/2006/10/12/13588.htmlbeyonlinbeyonlinWed, 11 Oct 2006 16:59:00 GMThttp://www.shnenglu.com/shyli/archive/2006/10/12/13588.htmlhttp://www.shnenglu.com/shyli/comments/13588.htmlhttp://www.shnenglu.com/shyli/archive/2006/10/12/13588.html#Feedback6http://www.shnenglu.com/shyli/comments/commentRss/13588.htmlhttp://www.shnenglu.com/shyli/services/trackbacks/13588.html#include<cstdlib>
#include<cstdio>
int main() { int num = 10; char str[100]; itoa(num, str, 2); printf("%s\n", str); return 0; }itoa()鍑芥暟鏈?涓弬鏁幫細絎竴涓弬鏁版槸瑕佽漿鎹㈢殑鏁板瓧錛岀浜屼釜鍙傛暟鏄洰鏍囧瓧絎︿覆錛岀涓変釜鍙傛暟鏄漿縐繪暟瀛楁椂鎵鐢?鐨勫熀鏁般傚湪涓婁緥涓紝杞崲鍩烘暟涓?0銆?0錛氬崄榪涘埗錛?錛氫簩榪涘埗鈥︹?br />浜庢槸鎯沖埌浜嗕竴涓崄榪涘埗杞簩榪涘埗鐨勬柟娉曪細
#include<cstdlib>
#include<cstdio>
int main() { int num = 10; char str[100]; int n = atoi(itoa(num, str, 2)); printf("%d\n",n); return 0; }
鍏堟妸num杞崲涓轟簩榪涘埗鐨勫瓧絎︿覆錛屽啀鎶婅瀛楃涓茶漿鎹負鏁存暟銆?/pre>

beyonlin 2006-10-12 00:59 鍙戣〃璇勮
]]>C++楂樻墜蹇呯湅鐨凜++涔﹀崟 http://www.shnenglu.com/shyli/archive/2006/09/21/12775.htmlbeyonlinbeyonlinWed, 20 Sep 2006 16:13:00 GMThttp://www.shnenglu.com/shyli/archive/2006/09/21/12775.htmlhttp://www.shnenglu.com/shyli/comments/12775.htmlhttp://www.shnenglu.com/shyli/archive/2006/09/21/12775.html#Feedback0http://www.shnenglu.com/shyli/comments/commentRss/12775.htmlhttp://www.shnenglu.com/shyli/services/trackbacks/12775.html杞澆鑷細http://www.shnenglu.com/zerolee/archive/2006/09/12/12335.html

澧炴坊浜庣綉涓婄殑涓浜涗功鍗曪細

C++/OPP/OOD緋誨垪:
灞傜駭涓錛氳娉?璇剰(C++)
[Lippman2000] Essential C++
Essential C++,by Stanley B. Lippman Addison Wesley Longman 2000,276 pages
Essential C++ 涓枃鐗?錛屼警淇婃澃 璇戯紝282欏?

[Andrew Koeing & Barbara MOO] Accelerated C++
Accelerated c++, Andrew Koeing & Barbara MOO, Addison Wesley, 2000

[Eckel2000] Thinking in C++
Thinking in C++ 2/e Bruce Eckel 2000 1470 pages Prentice Hall
C++ 緙栫▼鎬濇兂錛屽垬瀹楃敯絳?璇戯紝420欏?

[Lippman98] C++Primer
C++ Primer,3rd Editoin,by Stanley Lippman and Josee Lajoie
Addison Wesley Longman,1998 1237 pages
C++ Primer 涓枃鐗堬紝渚繆鏉?璇戯紝1999錛?237欏?

[Struostrup2000] The C++ Programming Language
The C++ Programming Language,Special Editoin,by Bjarne Stroustrup
Addison Wesley Longman,2000,1017 pages

[ANSI C++] C++瑙勬牸涔?1998.9.1 PDF鏍煎紡
ANSI C++ 1996 Draft


灞傜駭浜岋細涓撳緇忛獙(C++/OOP)
[Meyers96] More Effective C++
More Effective C++, by Scott Meyers,Addison Wesley,1996,318pages
More Effective C++涓枃鐗堬紝渚繆鏉幫紝鍩圭敓 2000. 318欏?

[Meyers98] Effective C++
Effective C++, Second Edition,by Scott Meyers,Addison Wesley Longman,1998.256pages
Effective C++ 2/e 涓枃鐗?渚繆鏉?鍩圭敓 2000.256欏?br />Effective C++, Third Edition, by Scott Meyers, Addison Wesley Longman.

[Sutter99] Exceptional C++
Exceptional C++錛宐y Herb Sutter,Addison Wesley Longman,2000.208pages
Exceptional C++涓枃鐗堬紝渚繆鏉?鍩圭敓 2000.248欏?

[Sutter2001]More Exceptional C++
More Exceptional C++ by Herb Sutter, Addison Wesley Longman, 2001.

[Sutter2004]Exception C++ Style
Exception C++ Style by Herb Sutter, Addison Wesley Longman, 2004.

灞傜駭涓夛細搴曞眰鏈哄埗(C++ Object Model)
[Ellis90] The Annotated C++ Reference Manual
The Annotated C++ Reference Manual,by Margaret A.Ellis and Bjarne Stroustrup
Addison Wesley Longman,1990,447 pages.

[Lippman96] Inside the C++ Object Model
Inside the C++ Object Model,by Stanley Lippman,Addison Wesley Longman,1996,280pages
娣卞害鎺㈢儲C++鐗╀歡妯″瀷錛屼警淇婃澃 璇?

灞傜駭鍥涳細璁捐瑙傚康鐨勫鐢?C++/Patterns)
[Gamma95] Design Patterns錛欵lements of Reusable Object Oriented Software,
by Erich Gamma,Richard Helm,Ralph Johnson,and John Vlissides,Addison Wesley,1995.395pages
璁捐妯″紡,鏉庤嫳鍐涚瓑璇?鏈烘宸ヤ笟鍑虹増紺?2000.254欏?

[Alex2001]Modern C++ Design: Generic Programming and Design Patterns Applied
by Andrei Alexandrescu,Addison-Wesley,2001,352Paper


Genericity/STL緋誨垪(涓庡眰綰т簩鍚屾錛?
絎竴涓鐣屾槸浣跨敤STL:
[Josuttis99]:The C++ Standard Library 錛岮 Tutorial and Reference,by Nicolai M.Josuttis,
Addison Wesley 1999.799pages

絎簩涓鐣屾槸浜嗚В娉涘瀷鎶鏈殑鍐呮兜涓嶴TL鐨勫鐞?
[Austern98]:Generic Programming and the STL -Using and Extending the C++ Standard
Template library,by Matthew H.Austern,Addison Wesley 1998.548page


絎笁涓鐣屾槸鎵╁厖STL:
[Stepanov2001]:C++ Standard Template Library by P.J.Plauger,Alexander A.Stepanov,
Meng Lee,David R.Musser,Prentice Hall 2001

鍏朵粬涔︾洰錛?br />1. Large-scale C++ software Design, John Lako, Addison Wesley, 1996
2. Effective STL, Scott Meyers, Addison Wesley, 1995
3. C++ FAQs, 2nd, Marshall Cline, Greg Lomow, Mike Girou, Addison Wesley, 1998
4. C++ Gotchas, Stephen Dewhurst, Addison Wesley, 2002
5. C++ templates, the complete Guide, Daveed Vandevoorde & Nicolar M.Josuttis, Addison Wesley, 2002
6. Standard C++ iostreams and Locals, Angelika Langer & Klaus Kreft, Addison Wesley, 2000
7. Design & Evolution of C++, BS, Addison Wesley, 1994
8. Modern C++ Design, Andrie Alexandrescu, Addison Wesley, 2001
9. Generative Programming, Krzysztof Czarnecki & Ulrich Eisencecker, Addison Wesley, 2000
10.Pattern-oriented software architecture, Vol1:A system of patterns, Frank Buschmann, 1996
11. STL 婧愮爜鍓栨瀽錛屼警鏉?br />12. C++ Coding Standards 101 Rules Guidelines, Andrie Alexandrescu & Herb Sutter, Addison Wesley, 2005



beyonlin 2006-09-21 00:13 鍙戣〃璇勮
]]>
鍒氭帴瑙︽硾鍨嬬紪紼?/title><link>http://www.shnenglu.com/shyli/archive/2006/09/20/12774.html</link><dc:creator>beyonlin</dc:creator><author>beyonlin</author><pubDate>Wed, 20 Sep 2006 15:54:00 GMT</pubDate><guid>http://www.shnenglu.com/shyli/archive/2006/09/20/12774.html</guid><wfw:comment>http://www.shnenglu.com/shyli/comments/12774.html</wfw:comment><comments>http://www.shnenglu.com/shyli/archive/2006/09/20/12774.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.shnenglu.com/shyli/comments/commentRss/12774.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/shyli/services/trackbacks/12774.html</trackback:ping><description><![CDATA[鍐欎簡algorithm澶存枃浠朵腑鐨?涓畻娉曪細<br /><br /><pre>find.h #ifndef FIND_H #define FIND_H template <typename ITER , typename T> ITER find(ITER begin, ITER end, T value) { ITER it; for(it = begin; it != end; ++it) if(*it == value) break; return it; } #endif </pre><br /><pre><br /> count.h #ifndef COUNT_H #define COUNT_H template <typename ITER , typename T> int count(ITER begin, ITER end, T value) { int sum = 0; for(ITER it = begin; it != end; ++it) { if(*it == value) ++sum; } return sum; } #endif </pre><pre>浠ュ悗鎺ョ潃鍐欍?/pre><img src ="http://www.shnenglu.com/shyli/aggbug/12774.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/shyli/" target="_blank">beyonlin</a> 2006-09-20 23:54 <a href="http://www.shnenglu.com/shyli/archive/2006/09/20/12774.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>銆奀++ Primer銆嬩箣璇諱功絎旇涓?/title><link>http://www.shnenglu.com/shyli/archive/2006/08/03/10825.html</link><dc:creator>beyonlin</dc:creator><author>beyonlin</author><pubDate>Thu, 03 Aug 2006 13:18:00 GMT</pubDate><guid>http://www.shnenglu.com/shyli/archive/2006/08/03/10825.html</guid><wfw:comment>http://www.shnenglu.com/shyli/comments/10825.html</wfw:comment><comments>http://www.shnenglu.com/shyli/archive/2006/08/03/10825.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.shnenglu.com/shyli/comments/commentRss/10825.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/shyli/services/trackbacks/10825.html</trackback:ping><description><![CDATA[ <p>欏哄簭瀹瑰櫒鐨勬瘮杈?/p> <table bgcolor="#cccccc" border="1"> <tbody> <tr> <td> <font size="2">鎻掑叆|鍒犻櫎浣嶇疆 </font> <div align="right"> <font size="2">/鏁堢巼</font> </div> </td> <td> <div align="center"> <font size="2">澶撮儴</font> </div> </td> <td> <div align="center"> <font size="2">涓棿</font> </div> </td> <td> <div align="center"> <font size="2">灝鵑儴</font> </div> </td> <td> <div align="center"> <font size="2">闅忔満璁塊棶</font> </div> </td> </tr> <tr> <td> <div align="center"> <font size="2">vector</font> </div> </td> <td> <div align="center"> <font size="2">浣?/font> </div> </td> <td> <div align="center"> <font size="2">浣?/font> </div> </td> <td> <div align="center"> <font size="2">楂?/font> </div> </td> <td> <div align="center"> <font size="2">Yes</font> </div> </td> </tr> <tr> <td> <div align="center"> <font size="2">list</font> </div> </td> <td> <div align="center"> <font size="2">楂?/font> </div> </td> <td> <div align="center"> <font size="2">楂?/font> </div> </td> <td> <div align="center"> <font size="2">楂?/font> </div> </td> <td> <div align="center"> <font size="2">No</font> </div> </td> </tr> <tr> <td> <div align="center"> <font size="2">deque</font> </div> </td> <td> <div align="center"> <font size="2">楂?/font> </div> </td> <td> <div align="center"> <font size="2">浣?/font> </div> </td> <td> <div align="center"> <font size="2">楂?/font> </div> </td> <td> <div align="center"> <font size="2">Yes</font> </div> </td> </tr> </tbody> </table> <img src ="http://www.shnenglu.com/shyli/aggbug/10825.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/shyli/" target="_blank">beyonlin</a> 2006-08-03 21:18 <a href="http://www.shnenglu.com/shyli/archive/2006/08/03/10825.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>銆奀++ Primer銆嬩箣璇諱功絎旇浜?/title><link>http://www.shnenglu.com/shyli/archive/2006/06/28/9086.html</link><dc:creator>beyonlin</dc:creator><author>beyonlin</author><pubDate>Tue, 27 Jun 2006 16:10:00 GMT</pubDate><guid>http://www.shnenglu.com/shyli/archive/2006/06/28/9086.html</guid><wfw:comment>http://www.shnenglu.com/shyli/comments/9086.html</wfw:comment><comments>http://www.shnenglu.com/shyli/archive/2006/06/28/9086.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.shnenglu.com/shyli/comments/commentRss/9086.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/shyli/services/trackbacks/9086.html</trackback:ping><description><![CDATA[ <p> <font size="2">鍒涘緩瀵硅薄鐨勫嚑縐嶆柟寮忕殑鏁堢巼姣旇緝</font> </p> <p> <font size="2">榪欓噷浠tring綾諱負渚嬶細</font> </p> <p> <font size="2">1銆乻tring str1 = "";<br />2銆乻tring str2 = string();<br />3銆乻tring str3;</font> </p> <p> <font size="2">絎竴縐嶆柟寮忥細璋冪敤string綾繪帴鍙楀瓧絎︿覆褰㈠弬鐨勬瀯閫犲嚱鏁幫紝鍒涘緩涓涓復鏃跺璞°?br />鐒跺悗璋冪敤澶嶅埗鏋勯犲嚱鏁扮敤璇ュ璞″垵濮嬪寲str1銆?/font> </p> <p> <font size="2">絎簩縐嶆柟寮忥細璋冪敤string綾葷殑榛樿鏋勯犲嚱鏁幫紝鍒涘緩涓涓復鏃跺璞°?br />鐒跺悗璋冪敤澶嶅埗鏋勯犲嚱鏁扮敤璇ュ璞″垵濮嬪寲str2銆?/font> </p> <p> <font size="2">絎笁縐嶆柟寮忥細鐩存帴璋冪敤string綾葷殑榛樿鏋勯犲嚱鏁板垵濮嬪寲str3銆?/font> </p> <p> <font size="2">鍒涘緩涓存椂瀵硅薄鐨勪唬浠鋒槸楂樼殑銆?/font> </p> <p> <font size="2">鍥犳鍒涘緩瀵硅薄搴斿敖閲忎笉瑕佷嬌鐢ㄤ細鍒涘緩涓存椂瀵硅薄鐨勫垵濮嬪寲鏂瑰紡銆?/font> </p> <p> <font size="2">鍦ㄤ嬌鐢ㄧ被鏃朵篃灝介噺涓嶈鍒涘緩涓存椂瀵硅薄銆?/font> </p> <img src ="http://www.shnenglu.com/shyli/aggbug/9086.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/shyli/" target="_blank">beyonlin</a> 2006-06-28 00:10 <a href="http://www.shnenglu.com/shyli/archive/2006/06/28/9086.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>銆奀++ Primer銆嬩箣璇諱功絎旇涓http://www.shnenglu.com/shyli/archive/2006/06/27/9053.htmlbeyonlinbeyonlinMon, 26 Jun 2006 16:11:00 GMThttp://www.shnenglu.com/shyli/archive/2006/06/27/9053.htmlhttp://www.shnenglu.com/shyli/comments/9053.htmlhttp://www.shnenglu.com/shyli/archive/2006/06/27/9053.html#Feedback0http://www.shnenglu.com/shyli/comments/commentRss/9053.htmlhttp://www.shnenglu.com/shyli/services/trackbacks/9053.html鍖呭惈浠ヤ笅鎴愬憳鐨勭被鐨勬瀯閫犲嚱鏁板繀欏諱嬌鐢ㄥ垵濮嬪寲

1銆?娌℃湁榛樿鏋勯犲嚱鏁扮殑綾葷被鍨嬬殑鎴愬憳銆?/font>
2銆?const鎴愬憳銆?br />3銆?/font> 寮曠敤綾誨瀷鐨勬垚鍛樸?

beyonlin 2006-06-27 00:11 鍙戣〃璇勮
]]>
Visual Assisthttp://www.shnenglu.com/shyli/archive/2006/06/18/8688.htmlbeyonlinbeyonlinSun, 18 Jun 2006 09:39:00 GMThttp://www.shnenglu.com/shyli/archive/2006/06/18/8688.htmlhttp://www.shnenglu.com/shyli/comments/8688.htmlhttp://www.shnenglu.com/shyli/archive/2006/06/18/8688.html#Feedback2http://www.shnenglu.com/shyli/comments/commentRss/8688.htmlhttp://www.shnenglu.com/shyli/services/trackbacks/8688.html 鎺ㄨ崘涓嬈懼揩閫熺紪杈慍++浠g爜鐨勬彃浠禫isual Assist銆?

瀹冭兘鑷姩璇嗗埆鍚勭鍏抽敭瀛楋紝緋葷粺鍑芥暟錛屾垚鍛樺彉閲忥紝

鑷姩緇欏嚭杈撳叆鎻愮ず錛岃嚜鍔ㄦ洿姝eぇ灝忓啓閿欒錛?

鑷姩鏍囩ず閿欒錛岀瓑絳夌瓑絳夈?

鐢ㄤ簡瀹冿紝浣犲啓浠g爜鐨勯熷害涓瀹氬ぇ澶ф彁楂樸?



beyonlin 2006-06-18 17:39 鍙戣〃璇勮
]]>
鎸囬拡涓?http://www.shnenglu.com/shyli/archive/2006/06/10/8371.htmlbeyonlinbeyonlinSat, 10 Jun 2006 05:01:00 GMThttp://www.shnenglu.com/shyli/archive/2006/06/10/8371.htmlhttp://www.shnenglu.com/shyli/comments/8371.htmlhttp://www.shnenglu.com/shyli/archive/2006/06/10/8371.html#Feedback0http://www.shnenglu.com/shyli/comments/commentRss/8371.htmlhttp://www.shnenglu.com/shyli/services/trackbacks/8371.html Once in a time...

鐪嬪埌涓孌典唬鐮侊細

char *p1,*p2;
//something
if(p1!=0)strcpy(p2,p1);

濂囨紝鎸囬拡鎬庝箞鑳藉鍜?鐩告瘮鍛紵


N days later...

涓涓湁鏁堢殑鎸囬拡鏈変笁縐嶇姸鎬侊細

涓銆佷繚瀛樹竴涓壒瀹氬璞$殑鍦板潃銆?

浜屻佹寚鍚戞煇涓璞″悗闈㈢殑鍙︿竴瀵硅薄銆?

涓夈佸間負0錛岃〃鏄庡畠涓嶆寚鍚戜換浣曞璞°?

if(p1!=0)strcpy(p2,p1);
<=>
if(p1!=NULL)strcpy(p2,p1);// 榪欑褰㈠紡鏇存槗鐞嗚В銆?

NULL 鏄湪 cstdlib 澶存枃浠朵腑瀹氫箟鐨勫彉閲忥紝鍊間負0.



beyonlin 2006-06-10 13:01 鍙戣〃璇勮
]]>
嫻嬭瘯紼嬪簭榪愯鏃墮棿http://www.shnenglu.com/shyli/archive/2006/05/28/7768.htmlbeyonlinbeyonlinSun, 28 May 2006 05:15:00 GMThttp://www.shnenglu.com/shyli/archive/2006/05/28/7768.htmlhttp://www.shnenglu.com/shyli/comments/7768.htmlhttp://www.shnenglu.com/shyli/archive/2006/05/28/7768.html#Feedback7http://www.shnenglu.com/shyli/comments/commentRss/7768.htmlhttp://www.shnenglu.com/shyli/services/trackbacks/7768.htmlACM棰樼洰澶ч兘鏈夎瀹氳繍琛屾椂闂寸殑錛?br />
閭d箞鎴戜滑濡備綍嫻嬪緱紼嬪簭榪愯鏃墮棿鍛紵

榪欏氨寰楃泭浜嶤++鍑芥暟搴搕ime.h

涓嬮潰鏄竴孌電ず鑼冧唬鐮侊細

#include<iostream>
#include<time.h>
using namespace std;
int main()
{
聽聽聽聽聽聽聽long beginTime =clock();//鑾峰緱寮濮嬫椂闂達紝鍗曚綅涓烘縐?br />
聽聽聽聽聽聽聽for(int i=0;i<10000;i++){cout<<i<<endl;}//杈撳嚭10000琛屾暟瀛?br />
聽聽聽聽聽聽聽long endTime=clock();//鑾峰緱緇撴潫鏃墮棿

聽聽聽聽聽聽cout<<"beginTime:"<<beginTime<<endl
聽聽聽聽聽聽聽聽聽聽聽聽聽<<"endTime:"<<endTime<<endl
聽聽聽聽聽聽聽聽聽聽聽聽聽<<"endTime-beginTime:"<<endTime-beginTime<<endl;

聽聽聽聽聽聽 return 0;
}


beyonlin 2006-05-28 13:15 鍙戣〃璇勮
]]>瀵逛笉瀛樺湪鐨勫厓绱犺繘琛屼笅鏍囨搷浣?/title><link>http://www.shnenglu.com/shyli/archive/2006/05/24/7585.html</link><dc:creator>beyonlin</dc:creator><author>beyonlin</author><pubDate>Wed, 24 May 2006 10:19:00 GMT</pubDate><guid>http://www.shnenglu.com/shyli/archive/2006/05/24/7585.html</guid><wfw:comment>http://www.shnenglu.com/shyli/comments/7585.html</wfw:comment><comments>http://www.shnenglu.com/shyli/archive/2006/05/24/7585.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/shyli/comments/commentRss/7585.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/shyli/services/trackbacks/7585.html</trackback:ping><description><![CDATA[ <p> <font color="#808080" size="2">寰堝鍒濆鑰呭湪鐢╯tring 綾葷殑鏃跺欎細鐘繖鏍風殑閿欒錛?/font> </p> <p> <font color="#808080" size="2">鎿嶄綔涓嶅瓨鍦ㄧ殑鍏冪礌錛屽:</font> </p> <p> <font color="#808080" size="2">#include<iostream><br />#include<string><br />using namespace std;<br />int main()<br />{<br />聽聽聽聽聽聽聽string str;<br />聽聽聽聽聽聽聽cin>>str[0];<br />聽聽聽聽聽聽聽cout<<str[0];<br />聽聽聽聽聽聽聽return 0;<br />}</font> </p> <p> <font color="#808080" size="2">榪欐牱寰楀埌杈撳嚭鐨勭粨鏋滄槸涓嶇‘瀹氱殑銆?/font> </p> <p> <font color="#808080" size="2">鍥犱負鍦ㄨ繖閲屽垱寤虹殑鏄竴涓┖ string 綾伙紝</font> </p> <p> <font color="#808080" size="2">闀垮害涓?錛屽間負""(絀?銆?/font> </p> <p> <font color="#808080" size="2">鍥犳涓嶅瓨鍦╯tr[0]銆?/font> </p> <img src ="http://www.shnenglu.com/shyli/aggbug/7585.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/shyli/" target="_blank">beyonlin</a> 2006-05-24 18:19 <a href="http://www.shnenglu.com/shyli/archive/2006/05/24/7585.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鏁扮粍鏈澶ч暱搴﹂棶棰?/title><link>http://www.shnenglu.com/shyli/archive/2006/05/06/6692.html</link><dc:creator>beyonlin</dc:creator><author>beyonlin</author><pubDate>Sat, 06 May 2006 15:32:00 GMT</pubDate><guid>http://www.shnenglu.com/shyli/archive/2006/05/06/6692.html</guid><wfw:comment>http://www.shnenglu.com/shyli/comments/6692.html</wfw:comment><comments>http://www.shnenglu.com/shyli/archive/2006/05/06/6692.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.shnenglu.com/shyli/comments/commentRss/6692.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/shyli/services/trackbacks/6692.html</trackback:ping><description><![CDATA[ <p> <font color="#808080" size="2">鏈榪戦亣鍒頒簡涓涓棶棰橈細</font> </p> <p> <font color="#808080" size="2">鍦ㄥ嚱鏁板唴瀹氫箟浜嗕竴涓竴鐧句竾鐨勬暟緇勩?/font> </p> <p> <font color="#808080" size="2">緙栬瘧銆佽繛鎺ユ病闂錛屼絾鎵ц鏃跺氨浼氭彁紺哄爢鏍堟孩鍑恒?/font> </p> <p> <font color="#808080" size="2">浣嗗畾涔夊叏灞鍙橀噺鍗存病鏈夐棶棰樸?/font> </p> <p> <font color="#808080" size="2">璋佽兘緇欐垜瑙i噴涓涓嬩負浠涔堬紵</font> </p> <img src ="http://www.shnenglu.com/shyli/aggbug/6692.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/shyli/" target="_blank">beyonlin</a> 2006-05-06 23:32 <a href="http://www.shnenglu.com/shyli/archive/2006/05/06/6692.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍏充簬璇彞浣滅敤鍩?/title><link>http://www.shnenglu.com/shyli/archive/2006/05/03/6583.html</link><dc:creator>beyonlin</dc:creator><author>beyonlin</author><pubDate>Tue, 02 May 2006 17:11:00 GMT</pubDate><guid>http://www.shnenglu.com/shyli/archive/2006/05/03/6583.html</guid><wfw:comment>http://www.shnenglu.com/shyli/comments/6583.html</wfw:comment><comments>http://www.shnenglu.com/shyli/archive/2006/05/03/6583.html#Feedback</comments><slash:comments>7</slash:comments><wfw:commentRss>http://www.shnenglu.com/shyli/comments/commentRss/6583.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/shyli/services/trackbacks/6583.html</trackback:ping><description><![CDATA[ <p> <font color="#808080" size="2">涓鐩翠互鏉ュ氨鏈変竴涓棶棰樺洶鎯戠潃鎴戯紝</font> </p> <p> <font color="#808080" size="2">瀵逛簬涓嬮潰涓孌電▼搴忥細</font> </p> <p> <font color="#808080" size="2">#include<iostream><br />using namespace std;<br />int main()<br />{<br />聽聽聽聽 for(int i=0;i<10;i++)<br />聽聽聽聽 {/*content*/} <br />聽聽<br />聽聽聽聽 for(int i=0;i<10;i++)<br />聽聽聽聽 {/*content*/}聽聽聽<br /><br />聽聽聽聽聽聽return 0;<br />} <br /></font> </p> <p> </p> <p> <font color="#808080" size="2">鍦╒C 6.0緙栬瘧鍣ㄤ腑鏄渋鈥?redefinition銆?/font> </p> <p> <font color="#808080" size="2">鑰屽湪Dev-C++緙栬瘧鍣ㄤ腑鏄畬鍏ㄦ紜殑銆?/font> </p> <p> <font color="#808080" size="2">鎴戜篃涓鐩存悶涓嶆竻妤歩鐨勪綔鐢ㄥ煙鏄粈涔堛?/font> </p> <p> <font color="#808080" size="2">鐩村埌鐪嬭繃Primer鍚庢墠鐭ラ亾鏈変竴縐嶄綔鐢ㄥ煙鍙仛鈥滆鍙ヤ綔鐢ㄥ煙鈥濄?/font> </p> <p> <font color="#808080" size="2">灝辨槸璇村氨涓婅堪闂鐨刬鍙兘鍦╢or璇彞涓嬌鐢ㄣ?/font> </p> <p> <font color="#808080" size="2">榪欏氨鏄榪欐槸VC 6.0鐨勪竴涓狟ug,鐪熸槸榪欐牱鍚楋紵</font> </p> <p> <font color="#808080"> <br /> <font size="2"> </font> </font>聽</p> <img src ="http://www.shnenglu.com/shyli/aggbug/6583.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/shyli/" target="_blank">beyonlin</a> 2006-05-03 01:11 <a href="http://www.shnenglu.com/shyli/archive/2006/05/03/6583.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>銆奀++ Primer銆嬬粓浜庡埌璐т簡http://www.shnenglu.com/shyli/archive/2006/04/19/5901.htmlbeyonlinbeyonlinWed, 19 Apr 2006 10:48:00 GMThttp://www.shnenglu.com/shyli/archive/2006/04/19/5901.htmlhttp://www.shnenglu.com/shyli/comments/5901.htmlhttp://www.shnenglu.com/shyli/archive/2006/04/19/5901.html#Feedback0http://www.shnenglu.com/shyli/comments/commentRss/5901.htmlhttp://www.shnenglu.com/shyli/services/trackbacks/5901.html鍗婁釜瀛︽湡榪囧幓浜嗭紝銆奀++ Primer銆嬩腑鏂囩増絎洓鐗堢粓浜庡嚭鐗堜簡銆?br />
浠婂ぉ鍦–hina-pub鐨勮鍗曠粓浜庡埌璐т簡銆?br />
鐜板湪鎬葷畻鏈変竴鏈珻++ 鐨勪功綾嶆潵瀛︿範浜嗐?br />
鍦ㄨ繖鏈功娌℃潵涔嬪墠錛孋++鐨勫涔犵畻涓柇浜嗗崐涓鏈熴?br />
鍙槸鍦ㄥPHP銆?br />
浠婂ぉ鍙堝彲浠ユ仮澶嶅涔燙++浜嗐?br />
鎬庝竴涓埥瀛椾簡寰椼?br />



beyonlin 2006-04-19 18:48 鍙戣〃璇勮
]]>濡備綍鍒涘緩浜岀淮鏁扮粍錛?/title><link>http://www.shnenglu.com/shyli/archive/2006/04/05/5011.html</link><dc:creator>beyonlin</dc:creator><author>beyonlin</author><pubDate>Tue, 04 Apr 2006 17:10:00 GMT</pubDate><guid>http://www.shnenglu.com/shyli/archive/2006/04/05/5011.html</guid><wfw:comment>http://www.shnenglu.com/shyli/comments/5011.html</wfw:comment><comments>http://www.shnenglu.com/shyli/archive/2006/04/05/5011.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.shnenglu.com/shyli/comments/commentRss/5011.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/shyli/services/trackbacks/5011.html</trackback:ping><description><![CDATA[ <font color="#808080" size="2">鏈夋椂闇瑕佸垱寤簄*n鐨勪簩緇存暟緇勩?br /><br />浜庢槸鎴戝氨鐢ㄥ涓嬩唬鐮侊細<br />聽聽聽聽聽聽int ** a=new int * [n];聽聽聽//鎴柭爄nt *(* a)=new int * [n];聽聽聽<br />聽聽聽聽聽聽for(int i=0;i<n;i++)a[i]=new int [n];<br /><br />涓嶇煡鏈夋病鏈夋洿濂界殑鍔炴硶?</font> <img src ="http://www.shnenglu.com/shyli/aggbug/5011.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/shyli/" target="_blank">beyonlin</a> 2006-04-05 01:10 <a href="http://www.shnenglu.com/shyli/archive/2006/04/05/5011.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>璋ㄦ厧瀛楃鏁扮粍涓嬫爣瓚婄晫錛?/title><link>http://www.shnenglu.com/shyli/archive/2006/03/28/4669.html</link><dc:creator>beyonlin</dc:creator><author>beyonlin</author><pubDate>Mon, 27 Mar 2006 17:11:00 GMT</pubDate><guid>http://www.shnenglu.com/shyli/archive/2006/03/28/4669.html</guid><wfw:comment>http://www.shnenglu.com/shyli/comments/4669.html</wfw:comment><comments>http://www.shnenglu.com/shyli/archive/2006/03/28/4669.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.shnenglu.com/shyli/comments/commentRss/4669.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/shyli/services/trackbacks/4669.html</trackback:ping><description><![CDATA[ <p> <font color="#808080" size="2">浠婂ぉ鍋欰CM灝辨槸鐢變簬娌℃湁娉ㄦ剰榪欎釜闂鑰學rong Aswer浜嗗嚑嬈°?/font> </p> <p> <font color="#808080" size="2">棰樼洰璇存槑瑕佽緭鍏ョ殑瀛楃涓查暱搴︽渶澶氫負8銆?/font> </p> <p> <font color="#808080" size="2">鍥犳鎴戝氨鍙敵璇蜂簡8涓瓧絎︺?/font> </p> <p> <font color="#808080" size="2">緇撴灉褰撶劧灝辨槸閿欎簡銆?/font> </p> <p> <font color="#808080" size="2">鍏跺疄瀛楃鏁扮粍闇瑕佷竴涓瓨鍌ㄥ崟鍏冩潵淇濆瓨緇撴潫絎︹淺0鈥濓紝</font> </p> <p> <font color="#808080" size="2">鐢ㄦ潵璇存槑涓涓瓧絎︿覆緇撴潫浜嗐?/font> </p> <p> <font color="#808080" size="2">鍥犳瑕佺敵璇鋒瘮瀛楃涓插涓涓瓨鍌ㄥ崟鍏冪殑闀垮害銆?/font> </p> <p> <font color="#808080" size="2">璁頒綇浜嗭紒錛?/font> </p> <p> <font color="#808080" size="2">浠庢涓嶈兘鐘悓鏍烽敊璇紒<br /></font> </p> <img src ="http://www.shnenglu.com/shyli/aggbug/4669.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/shyli/" target="_blank">beyonlin</a> 2006-03-28 01:11 <a href="http://www.shnenglu.com/shyli/archive/2006/03/28/4669.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>甯稿紩鐢ㄥ弬鏁頒笌浼犲煎弬鏁扮殑鍖哄埆http://www.shnenglu.com/shyli/archive/2006/03/17/4304.htmlbeyonlinbeyonlinFri, 17 Mar 2006 15:49:00 GMThttp://www.shnenglu.com/shyli/archive/2006/03/17/4304.htmlhttp://www.shnenglu.com/shyli/comments/4304.htmlhttp://www.shnenglu.com/shyli/archive/2006/03/17/4304.html#Feedback1http://www.shnenglu.com/shyli/comments/commentRss/4304.htmlhttp://www.shnenglu.com/shyli/services/trackbacks/4304.html 鐪嬭繃涓浜涗功鍚庣粓浜庢槑鐧借繖涓ょ鍙傛暟鐨勫唴鍦ㄥ尯鍒?br />
浼犲煎弬鏁幫細

鍦ㄥ唴瀛樹腑寮杈熸柊鐨勫唴瀛樼┖闂達紝鐒跺悗鎶婂彉閲忓煎鍒跺埌璇ュ唴瀛樼┖闂存潵銆?br />

寮曠敤鍙傛暟錛?br />
鐩存帴鎶婂彉閲忕殑鍦板潃浼犺繃鏉ャ?br />

寮曠敤鍙傛暟鐨勫ソ澶勫氨鏄笉鐢ㄤ駭鐢熶復鏃跺彉閲忥紝鍑忓皯鍐呭瓨寮閿銆傚洜姝ゅ父鐢ㄤ簬瀵瑰ぇ瀵硅薄鐨勬搷浣溿?br />
鑰屽父寮曠敤灝辨槸涓轟簡淇濇姢瀵瑰儚涓嶈淇敼銆?/font>



beyonlin 2006-03-17 23:49 鍙戣〃璇勮
]]>
鏁扮粍涓嬫爣http://www.shnenglu.com/shyli/archive/2006/03/03/3696.htmlbeyonlinbeyonlinFri, 03 Mar 2006 12:41:00 GMThttp://www.shnenglu.com/shyli/archive/2006/03/03/3696.htmlhttp://www.shnenglu.com/shyli/comments/3696.htmlhttp://www.shnenglu.com/shyli/archive/2006/03/03/3696.html#Feedback1http://www.shnenglu.com/shyli/comments/commentRss/3696.htmlhttp://www.shnenglu.com/shyli/services/trackbacks/3696.html澶у閮界煡閬撴暟緇勭涓涓厓绱犻兘鏄互0鍋氫負涓嬫爣鐨勩?BR>
涓嶇煡閬撹繖鏍峰仛鏈変粈涔堜紭鐐癸紵

浣嗘槸鏈変簺鏃跺欏嵈涓嶄範鎯?BR>
姣斿璇村緩绔嬩竴涓?2涓厓绱犵殑鏁扮粍m[12]鏉ヤ唬琛?2涓湀銆?BR>
鍒檓[0]浠h〃絎竴涓湀銆?BR>




beyonlin 2006-03-03 20:41 鍙戣〃璇勮
]]>
国产成人久久精品激情| 2021国内久久精品| 亚洲国产精品成人久久| 无码人妻少妇久久中文字幕| 久久99热狠狠色精品一区| 久久精品欧美日韩精品| 久久久久久亚洲Av无码精品专口 | 日本一区精品久久久久影院| 久久久久免费看成人影片| 狠狠色丁香久久婷婷综合五月| 久久久无码一区二区三区| 韩国三级大全久久网站| 女人香蕉久久**毛片精品| 精品水蜜桃久久久久久久| 久久亚洲2019中文字幕| 久久久久99这里有精品10| 97久久国产露脸精品国产| 国产精品久久成人影院| 精品人妻伦九区久久AAA片69| 亚洲国产日韩欧美久久| 天天躁日日躁狠狠久久| 99久久精品国产一区二区蜜芽| 久久九色综合九色99伊人| 久久亚洲国产精品成人AV秋霞 | 久久久久无码精品国产app| 久久久国产亚洲精品| 久久久噜噜噜久久熟女AA片| 日本免费久久久久久久网站| 人妻少妇精品久久| 久久久精品人妻一区二区三区蜜桃| 国内精品人妻无码久久久影院| 国产精品99久久久久久www| 合区精品久久久中文字幕一区| 精品久久无码中文字幕| 久久精品这里只有精99品| 久久天天躁夜夜躁狠狠| 国产99久久久久久免费看| 囯产精品久久久久久久久蜜桃 | 91久久国产视频| 亚洲欧美日韩中文久久| 人妻中文久久久久|