锘??xml version="1.0" encoding="utf-8" standalone="yes"?>精品久久久久国产免费,国产A级毛片久久久精品毛片,久久久久久极精品久久久http://www.shnenglu.com/shootingstars/category/4490.htmlzh-cnThu, 22 May 2008 21:10:02 GMTThu, 22 May 2008 21:10:02 GMT60[瀵煎叆]C++涓叧浜庣被涓父鏁伴潤鎬佹垚鍛樺垵濮嬪寲鐨勯棶棰?/title><link>http://www.shnenglu.com/shootingstars/archive/2007/07/31/29071.html</link><dc:creator>shootingstars</dc:creator><author>shootingstars</author><pubDate>Tue, 31 Jul 2007 05:17:00 GMT</pubDate><guid>http://www.shnenglu.com/shootingstars/archive/2007/07/31/29071.html</guid><wfw:comment>http://www.shnenglu.com/shootingstars/comments/29071.html</wfw:comment><comments>http://www.shnenglu.com/shootingstars/archive/2007/07/31/29071.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/shootingstars/comments/commentRss/29071.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/shootingstars/services/trackbacks/29071.html</trackback:ping><description><![CDATA[class mytestclass <br>{ <br>public: <br>    const static int i = 5; <br>}; <br>int main() <br>{ <br>    std::cout<<mytestclass::i<<std::endl; <br>    return 0; <br>} <br>緇撴灉娌℃湁闂錛岃緭鍑轟負5錛堢紪璇戝櫒涓簐c7.1錛? <p>浣嗘槸鍦ㄤ笅闈㈣繖涓緥瀛愪腑錛?<br>int regi() <br>{ <br>    return 5; <br>} <br>class mytestclass <br>{ <br>public: <br>    const static int i = regi(); <br>}; <br>int main() <br>{ <br>    std::cout<<mytestclass::i<<std::endl; <br>    return 0; <br>} <br>杈撳嚭鍗翠笉姝g‘錛岃緭鍑轟負0錛堢紪璇戦摼鎺ラ兘娌℃湁闂錛夈傘傘?<br>浼間箮浠g爜騫舵病鏈夋墽琛宺egi鍑芥暟錛?<br><br>鍦–++鏍囧噯涓皢鍒濆鍖栧彉閲忓垎涓?鍔ㄦ佸垵濮嬪寲"鍜?闈欐佸垵濮嬪寲","鍔ㄦ佸垵濮嬪寲"涓哄埄鐢ㄥ嚱鏁拌繘琛屽垵濮嬪寲,"闈欐佸垵濮嬪寲"涓哄父閲忚〃杈懼紡榪涜鍒濆鍖? <br>C++鏍囧噯瀵逛簬綾諱腑鐨勫父閲忚〃杈懼紡鐨?鍔ㄦ佸垵濮嬪寲"浼間箮騫舵湭鍋氳鏄?鎵浠ユ槸鍚︽敮鎸佺被涓父鏁伴潤鎬佸彉閲忕殑鍔ㄦ佸垵濮嬪寲涔熷氨鍙栧喅涓庣紪璇戝櫒鐨勮璁′簡. <br>浣嗘槸鏃犺濡備綍vc7.1鐨勭紪璇戠粨鏋滈兘鏄笉瀵圭殑,瀹冨茍娌℃湁緇欏嚭閿欒,浣嗘槸緇撴灉涓庨昏緫涓嶅悜絎﹀悎,榪欏簲璇ユ槸vc7.1鐨勪竴涓猙ug.(鍦╲s2005涓殑C++緙栬瘧鍣ㄥ凡緇忎慨姝d簡榪欎釜bug,緇欏嚭浜嗕竴涓紪璇慐rror) <br><br>璇︾粏璁ㄨ璇瘋: <br><a >http://community.csdn.net/Expert/topic/4432/4432789.xml?temp=.3202783</a> <br><br>鐗瑰埆鎰熻阿qfeng_zhao 銆?lxpws 銆?iGray 絳夊嚑浣? </p> <img src="http://www.cnblogs.com/shootingstars/aggbug/321956.html" height="1" width="1"><br><br> <div align="right"><a style="text-decoration: none;" target="_blank">shootingstars</a> 2006-01-23 11:46 <a target="_blank" style="text-decoration: none;">鍙戣〃璇勮</a></div> <br>鏂囩珷鏉ユ簮:<a >http://www.cnblogs.com/shootingstars/archive/2006/01/23/321956.html</a> <img src ="http://www.shnenglu.com/shootingstars/aggbug/29071.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/shootingstars/" target="_blank">shootingstars</a> 2007-07-31 13:17 <a href="http://www.shnenglu.com/shootingstars/archive/2007/07/31/29071.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>boost::regex瀛︿範http://www.shnenglu.com/shootingstars/archive/2007/07/30/29029.htmlshootingstarsshootingstarsMon, 30 Jul 2007 09:30:00 GMThttp://www.shnenglu.com/shootingstars/archive/2007/07/30/29029.htmlhttp://www.shnenglu.com/shootingstars/comments/29029.htmlhttp://www.shnenglu.com/shootingstars/archive/2007/07/30/29029.html#Feedback0http://www.shnenglu.com/shootingstars/comments/commentRss/29029.htmlhttp://www.shnenglu.com/shootingstars/services/trackbacks/29029.htmlboost鐨勬鍒欒〃杈懼紡闇瑕佺紪璇戯紙濡傛灉涓嶉渶瑕佸叏閮˙oost鐨勫姛鑳界殑璇濓紝璇蜂笉瑕乥uild all boost錛岄偅浼氳姳鎺夊ソ鍑犱釜灝忔椂銆傛垜鎺ㄨ崘浠呬粎build闇瑕佺殑搴撳氨濂姐傦級
鍘熸湁鐨刡oost 1.33浼間箮浣跨敤vc8緙栬瘧鐨勬椂鍊欐湁闂銆備笅杞絙oost 1.34.1錛屼嬌鐢?#8220;Visual Studio 2005 Command Prompt”錛岃繘鍏ュ埌boost_1_34_1\libs\regex\build錛?br>nmake vc8.mak
OK錛岀敓鎴愮殑鏂囦歡鍦╲c80涓嬨?br>
浜岋細瀛︿範姝e垯琛ㄨ揪寮?br>http://www.shnenglu.com/Files/shootingstars/deelx_zh.rar
涓嶉敊鐨勬鍒欒〃杈懼紡鐨勫涔犺祫鏂欙紝欏轟究鎺ㄨ崘涓涓嬶細
http://www.regexlab.com/
榪欎釜绔欓暱榪樹笌鎴戞湁涓竴淇′箣緙橈紙鎴戝啓鐨?a title="P2P涔婾DP絀塊廚AT鐨勫師鐞嗕笌瀹炵幇錛堥檮婧愪唬鐮侊級" href="http://www.shnenglu.com/shootingstars/archive/2007/06/12/26140.html">P2P涔婾DP絀塊廚AT鐨勫師鐞嗕笌瀹炵幇錛堥檮婧愪唬鐮侊級錛夈傜珯闀跨殑榪欎釜姝e垯搴撳湪CodeProject鑾峰緱浜嗕笉閿欑殑璇勪環(huán)銆?br>
涓夛細綆鍗曠殑渚嬪瓙
    std::string regstr = "a+";
    boost::regex expression(regstr);
    std::string testString = "aaa";

    // 鍖歸厤鑷沖皯涓涓猘
    if( boost::regex_match(testString, expression) )
    {
        std::cout<< "Match" << std::endl;
    }
    else
    {
        std::cout<< "Not Match" << std::endl;
    }


]]>
boost::algorithm瀛︿範http://www.shnenglu.com/shootingstars/archive/2007/07/26/28813.htmlshootingstarsshootingstarsThu, 26 Jul 2007 06:12:00 GMThttp://www.shnenglu.com/shootingstars/archive/2007/07/26/28813.htmlhttp://www.shnenglu.com/shootingstars/comments/28813.htmlhttp://www.shnenglu.com/shootingstars/archive/2007/07/26/28813.html#Feedback0http://www.shnenglu.com/shootingstars/comments/commentRss/28813.htmlhttp://www.shnenglu.com/shootingstars/services/trackbacks/28813.html澶у皬鍐欒漿鎹紱
鍘婚櫎鏃犳晥瀛楃錛?
璋撹瘝錛?
鏌ユ壘錛?
鍒犻櫎/鏇挎崲錛?
鍒囧壊錛?
榪炴帴錛?
鎴戜滑鐢ㄥ啓渚嬪瓙鐨勬柟寮忔潵浜嗚Вboost::algorithm鑳藉涓烘垜浠仛浜涗粈涔堛?nbsp; 闃呰鍏ㄦ枃

]]>
鏄垜rp涓嶅ソ錛岃繕鏄疢icrosoft鐨剅p涓嶅ソ銆傘傘?/title><link>http://www.shnenglu.com/shootingstars/archive/2007/06/19/26639.html</link><dc:creator>shootingstars</dc:creator><author>shootingstars</author><pubDate>Tue, 19 Jun 2007 09:26:00 GMT</pubDate><guid>http://www.shnenglu.com/shootingstars/archive/2007/06/19/26639.html</guid><wfw:comment>http://www.shnenglu.com/shootingstars/comments/26639.html</wfw:comment><comments>http://www.shnenglu.com/shootingstars/archive/2007/06/19/26639.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/shootingstars/comments/commentRss/26639.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/shootingstars/services/trackbacks/26639.html</trackback:ping><description><![CDATA[紼嬪簭鍘熸潵涓鐩磋窇鐨勬尯濂界殑銆傘傘?br>But浠庢槰澶╀笅鍗堝紑濮嬶紝娌℃湁淇敼浠諱綍浠g爜錛岀紪璇戠▼搴忥紝鐒跺悗榪愯銆傘傘傛姤閿欙紝璇翠粈涔坆uffer overrun閿欒銆傚摝錛屼互鍓嶉亣鍒拌繃綾諱技鎯呭喌錛屽彲鑳芥槸鍔ㄦ佸簱鍜宭ib鏂囦歡涓嶄竴鑷村鑷寸殑銆傛病鍏崇郴錛孯eBuild鏁翠釜欏圭洰錛堝緱紼嶅井鑺辯偣鏃墮棿錛屽懙鍛碉紝涔樼潃榪欎釜鏈轟細錛屼笂緗戞簻杈句細錛夈傝姳浜?5鍒嗛挓錛孊uild瀹屼簡銆傛弧鎬淇″績鐨勬墽琛屻傘傘傚晩錛屽張鎶ラ敊浜嗐傘傘傝繕鏄悓鏍風殑闂銆傚棷錛屾兂鎯籌紝闅鵑亾鏄疺ss涓婇潰鏈変漢淇敼涓滆タ浜嗭紝鎴戞棤鎰忛棿鑾峰彇浜嗘渶鏂扮増鏈紵鏈夎繖涓彲鑳姐備簬鏄笂Vss鐪婼how History銆備技涔庤繖鍑犲ぉ浠g爜閮芥病鏈夊彉鍖栥傘傘傞偅鏄粈涔堥棶棰橈紵鎴戝氨涓嶄俊閭簡錛屽啀嬈eBuild錛屽張鏄竴涓?5鍒嗛挓銆傝繍琛岋紝鍑洪敊銆傚晩銆傘傘?br>浜庢槸涓奼oogle鎼滅儲鍑洪敊淇℃伅錛屽棷錛屾湁閭h竟鍑犻〉錛屼笉榪囩湅瀹屼簡錛岃涔堟槸娌℃湁鍥炲錛岃涔堣窡鎴戠殑鎯呭喌鐗涘ご涓嶅椹槾銆傚棷錛岀湅鏉ヨ繖縐嶆儏鍐佃繕鎸虹壒孌婏紝鐪嬫潵榪樺緱鑷姏鏇寸敓浜嗐?br>浜庢槸鍒犻櫎鎵鏈変唬鐮侊紝浠嶸ss鍦ㄤ笅杞芥渶鏂扮殑錛屽啀嬈eBuild銆傚棷錛岀紪璇戞病鏈夐敊錛岃繍琛屻傘傘傚棷錛屼篃涓嶇畻鏈夐敊錛屽彧涓嶈繃涓涓涓夋柟鐨勫簱榪愯鏃舵姤浜嗕釜寮傚父銆傝繖涓傘傘傚啀嬈℃鏌ヤ唬鐮侊紝娌℃湁鍙戠幇闂銆傛睏錛屼簬鏄嚭鏉ヤ簡銆傘傘?br><br>浠婂ぉ鏃╀笂涓婄彮緇х畫鍊掕吘錛岃繖涓猇ss鐗堟湰鏈夐棶棰橈紝涓嬩釜浠ュ墠鐨凩abel鐨勶紝搴旇涓嶄細鏈夐棶棰樹簡鍚с備簬鏄啀嬈eBuild錛岃繍琛岋紝榪欏洖涓嶅啀鏄痓uffer overrun錛屼篃涓嶆槸寮傚父浜嗭紝鑰屾槸鎶eap corruption銆傛垜鏅曞掍腑銆傘傘?br><br>鍦ㄩ噸鏂癛eBuild浜唍鍥炲悗錛岃姳浜唍涓?5鍒嗛挓鍚庛傛垜褰誨簳娌¤緳浜嗐備簬鏄垜鍚戜笂甯濈紲鳳紝紲炲晩錛屾晳鏁戞垜鍚с?br><br>浜庢槸錛岀鍚埌浜嗭紝鍙戝嚭浜嗗畠鐨勭鍔涳紝鍦ㄦ垜鐧捐埇鏃犺禆錛屾墜瓚蟲棤鎺殑鏃跺欙紝鎴戝啀嬈′笅杞界殑鏈鏂扮殑Vss浠g爜鐗堟湰錛孯eBuild錛屼簬鏄繍琛岄氳繃銆?br><br>鍡紝鍞夛紝鏄垜rp涓嶅ソ錛岃繕鏄疢icrosoft鐨剅p涓嶅ソ錛堟垜鐢ㄧ殑VC8錛夈傘傘傛垜鏃犺錛屽笇鏈涢珮浜烘寚鐐歸棶棰樺師鍥犮?br><img src ="http://www.shnenglu.com/shootingstars/aggbug/26639.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/shootingstars/" target="_blank">shootingstars</a> 2007-06-19 17:26 <a href="http://www.shnenglu.com/shootingstars/archive/2007/06/19/26639.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>浜旂榪唬鍣?/title><link>http://www.shnenglu.com/shootingstars/archive/2007/06/13/26264.html</link><dc:creator>shootingstars</dc:creator><author>shootingstars</author><pubDate>Wed, 13 Jun 2007 10:35:00 GMT</pubDate><guid>http://www.shnenglu.com/shootingstars/archive/2007/06/13/26264.html</guid><wfw:comment>http://www.shnenglu.com/shootingstars/comments/26264.html</wfw:comment><comments>http://www.shnenglu.com/shootingstars/archive/2007/06/13/26264.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/shootingstars/comments/commentRss/26264.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/shootingstars/services/trackbacks/26264.html</trackback:ping><description><![CDATA[1 InputIterator 鍙互琚敤鏉ヨ鍙栧鍣ㄤ腑鐨勫厓绱犱絾鏄笉淇濊瘉鏀寔鍚戝鍣ㄧ殑鍐欏叆鎿嶄綔<br>InputIterator 蹇呴』鎻愪緵涓嬪垪鏈灝忔敮鎸佹彁渚涘叾浠栨敮鎸佺殑iterator 涔熷彲琚敤浣淚nputIterator 鍙<br>瀹冧滑婊¤凍榪欎釜鏈灝忚姹傞泦涓や釜iterator 鐨勭浉絳夊拰涓嶇浉絳夋祴璇曢氳繃operator ++ 鐨勫墠緗拰<br>鍚庣疆瀹炰緥鍚戝墠閫掑iterator 鎸囧悜涓嬩竴涓厓绱犻氳繃瑙e紩鐢ㄦ搷浣滅operator * 璇誨彇涓涓厓绱?br>姹傚湪榪欎釜灞傛涓婃彁渚涙敮鎸佺殑娉涘瀷綆楁硶鍖呮嫭find() accumulate()鍜宔qual() 浠諱綍涓涓畻娉曞鏋?br>瑕佹眰InputIterator 閭d箞鎴戜滑涔熷彲浠ュ悜鍏朵紶閫掔3 4 5 欏瑰垪鍑虹殑iterator 綾誨埆涓殑浠諱竴涓?br><span style="font-weight: bold;">鍗籌細鍙鏌愪釜綾誨疄鐜頒笂闈㈢殑鎿嶄綔鏃㈠彲浠ヨ璁や負鏄疘nputIterator銆?/span><br>2 OutputIterator 鍙互琚涓烘槸涓嶪nputIterator 鍔熻兘鐩稿弽鐨刬terator 鍗沖畠鍙互琚敤鏉ュ悜瀹?br>鍣ㄥ啓鍏ュ厓绱犱絾鏄笉淇濊瘉鏀寔璇誨彇瀹瑰櫒鐨勫唴瀹筄utputIterator 涓鑸鐢ㄤ綔綆楁硶鐨勭涓変釜瀹炲弬<br>鏍囪鍑鴻搗濮嬪啓鍏ョ殑浣嶇疆渚嬪copy()鍙朞utputIterator 浣滀負絎笁涓疄鍙備換浣曚竴涓畻娉曞鏋?br>瑕佹眰OutputIterator 閭d箞鎴戜滑涔熷彲浠ュ悜鍏朵紶閫掔3 4 5 欏瑰垪鍑虹殑iterator 綾誨埆涓殑浠諱竴涓?br><span style="font-weight: bold;">娉ㄦ剰錛氳繖涓凱浠e櫒浼間箮浠呬粎瀹炵幇浜嗚祴鍊兼搷浣滃嵆鍙? </span><br>3 ForwardIterator 鍙互琚敤鏉ヤ互鏌愪竴涓亶鍘嗘柟鍚戞槸鐨勪笅涓涓被鍒敮鎸佸弻鍚戦亶鍘嗗悜<br>瀹瑰櫒璇繪垨鍐欐湁浜涙硾鍨嬬畻娉曡嚦灝戣姹侳orwardIterator 鍖呮嫭adjacent_find() swap_range()鍜?br>replace() 褰撶劧浠諱綍瑕佹眰ForwardIterator 鏀寔鐨勭畻娉曢兘鍙互鍚戝叾浼犻掔4 鍜? 欏瑰畾涔夌殑iterator<br>綾誨埆<br><span style="font-weight: bold;">娉ㄦ剰錛氳繖涓凱浠e櫒鏃㈢鍚圛nputIterator鍙堢鍚圤utputIterator錛屽悓鏍蜂笅闈袱涓篃鏄繖鏍楓傛敮鎸?/span><span style="font-weight: bold;">operator++鎿嶄綔</span><br>4 BidirectionalIterator 浠庝袱涓柟鍚戣鎴栧啓涓涓鍣ㄦ湁浜涙硾鍨嬬畻娉曡嚦灝戣姹?br>BidirectionalIterator 鍖呮嫭inplace_merge() next_permutation()鍜宺everse()<br><span style="font-weight: bold;">娉ㄦ剰錛氱戶鎵?錛?錛?鐨勭壒鎬э紝騫朵笖鏀寔</span><span style="font-weight: bold;">operator--鎿嶄綔</span><br>5 RandomAccessIterator 闄や簡鏀寔BidirectionalIterator 鎵鏈夌殑鍔熻兘涔嬪榪樻彁渚涗簡鍦?br>甯告暟鏃墮棿鍐呰闂鍣ㄧ殑浠繪剰浣嶇疆鐨勬敮鎸佽姹俁andomAccessIterator 鏀寔鐨勬硾鍨嬬畻娉曞寘鎷?br>binary_search() sort_heap()鍜宯th_element() <br><span style="font-weight: bold;">娉ㄦ剰錛?/span><span style="font-weight: bold;">緇ф壙1錛?錛?鐨勭壒鎬э紝騫朵笖</span><span style="font-weight: bold;">絎﹀悎闅忔満璁塊棶絳栫暐錛屽嵆鏀寔operator[]鎿嶄綔</span><br> <img src ="http://www.shnenglu.com/shootingstars/aggbug/26264.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/shootingstars/" target="_blank">shootingstars</a> 2007-06-13 18:35 <a href="http://www.shnenglu.com/shootingstars/archive/2007/06/13/26264.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>C++娉涘瀷綆楁硶絎旇錛?錛?/title><link>http://www.shnenglu.com/shootingstars/archive/2007/06/13/26263.html</link><dc:creator>shootingstars</dc:creator><author>shootingstars</author><pubDate>Wed, 13 Jun 2007 10:14:00 GMT</pubDate><guid>http://www.shnenglu.com/shootingstars/archive/2007/06/13/26263.html</guid><wfw:comment>http://www.shnenglu.com/shootingstars/comments/26263.html</wfw:comment><comments>http://www.shnenglu.com/shootingstars/archive/2007/06/13/26263.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/shootingstars/comments/commentRss/26263.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/shootingstars/services/trackbacks/26263.html</trackback:ping><description><![CDATA[<span style="font-weight: bold;">find</span><br> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: #000000;">template </span><span style="color: #000000;"><</span><span style="color: #000000;"> </span><span style="color: #0000ff;">class</span><span style="color: #000000;"> ForwardIterator, </span><span style="color: #0000ff;">class</span><span style="color: #000000;"> Type </span><span style="color: #000000;">></span><span style="color: #000000;"><br>ForwardIterator<br>find( ForwardIterator first, ForwardIterator last, Type value )</span><span style="color: #000000;"><br></span></div> find榪斿洖涓涓凱浠e櫒錛岃〃鏄庢槸鍚︽壘鍒板厓绱狅紝濡傛灉鎵句笉鍒拌繑鍥炲弬鏁扮殑last銆?br>鍙傛暟<br>first錛氬紑濮嬫悳绱㈢殑絎竴涓厓绱?br>last錛氭悳绱㈠埌姝ゅ厓绱犱箣鍓嶏紝涓嶅寘鎷鍏冪礌<br>value錛氶渶瑕佹悳绱㈢殑鍊?br><br><span style="font-weight: bold;">back_inserter</span><br> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: #000000;">template</span><span style="color: #000000;"><</span><span style="color: #0000ff;">class</span><span style="color: #000000;"> _Container</span><span style="color: #000000;">></span><span style="color: #000000;"><br>back_insert_iterator</span><span style="color: #000000;"><</span><span style="color: #000000;">_Container</span><span style="color: #000000;">></span><span style="color: #000000;"><br>back_inserter(_Container</span><span style="color: #000000;">&</span><span style="color: #000000;"> _Cont)</span></div> 榪欎釜鍑芥暟榪斿洖涓涓凱浠e櫒<span style="color: #000000;">back_insert_iterator</span><span style="color: #000000;"><</span><span style="color: #000000;">_Container</span><span style="color: #000000;">>錛岃繖涓凱浠e櫒鏄粠OutputIterator緇ф壙榪囨潵鐨勶紝琛ㄦ槑榪欎釜榪唬鍣ㄥ彲浠ヨ鍐欏叆銆傝繖涓凱浠e櫒閲嶅啓浜嗚祴鍊兼搷浣滐紝鍦ㄨ祴鍊兼搷浣滀腑浣跨敤push_back灝嗗厓绱犳彃鍏ュ鍣ㄤ腑銆?br>鍙傛暟<br>_Cont錛氬笇鏈涜鎻掑叆鍊肩殑瀹瑰櫒<br><br><span style="font-weight: bold;">copy</span><br></span> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: #000000;">template </span><span style="color: #000000;"><</span><span style="color: #000000;"> </span><span style="color: #0000ff;">class</span><span style="color: #000000;"> InputIterator, </span><span style="color: #0000ff;">class</span><span style="color: #000000;"> OutputIterator </span><span style="color: #000000;">></span><span style="color: #000000;"><br>OutputIterator<br>copy( InputIterator first1, InputIterator last,<br>OutputIterator first2 );</span></div> 榪欎釜鍑芥暟榪斿洖涓涓狾utputIterator榪唬鍣?br>鍙傛暟<br>first錛氬紑濮嬫嫹璐濈殑絎竴涓厓绱?br>last錛氭嫹璐濆埌姝ゅ厓绱犱箣鍓嶏紝涓嶅寘鎷鍏冪礌<br>first2錛氭嫹璐濆埌姝よ凱浠e櫒銆傛垜浠彲浠ヤ嬌鐢ㄤ笂闈㈢殑back_inserter鍑芥暟榪斿洖鐨凮utputIterator <br> <img src ="http://www.shnenglu.com/shootingstars/aggbug/26263.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/shootingstars/" target="_blank">shootingstars</a> 2007-06-13 18:14 <a href="http://www.shnenglu.com/shootingstars/archive/2007/06/13/26263.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>濡備綍鍒犻櫎C++瀹瑰櫒涓殑鍊?/title><link>http://www.shnenglu.com/shootingstars/archive/2007/06/12/26144.html</link><dc:creator>shootingstars</dc:creator><author>shootingstars</author><pubDate>Tue, 12 Jun 2007 09:37:00 GMT</pubDate><guid>http://www.shnenglu.com/shootingstars/archive/2007/06/12/26144.html</guid><wfw:comment>http://www.shnenglu.com/shootingstars/comments/26144.html</wfw:comment><comments>http://www.shnenglu.com/shootingstars/archive/2007/06/12/26144.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/shootingstars/comments/commentRss/26144.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/shootingstars/services/trackbacks/26144.html</trackback:ping><description><![CDATA[C++鐨勫鍣ㄤ腑涓鑸兘鎻愪緵erase鍑芥暟錛屾鍑芥暟鎺ユ敹鐨勫弬鏁頒竴鑸湁涓涓槸涓涓凱浠e櫒錛?br>濡傛灉鍒犻櫎鏌愪竴涓肩殑璇濓紝鎴戜滑鍙兘涓鑸兘鐢ㄨ繃錛?br> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: #000000;">list</span><span style="color: #000000;"><</span><span style="color: #0000ff;">int</span><span style="color: #000000;">></span><span style="color: #000000;"> c;<br></span><span style="color: #008000;">//</span><span style="color: #008000;"> todo insert items<img style="width: 30px; height: 20px;" src="http://www.shnenglu.com/Images/dot.gif"></span><span style="color: #008000;"><br></span><span style="color: #0000ff;">for</span><span style="color: #000000;"> (list</span><span style="color: #000000;"><</span><span style="color: #0000ff;">int</span><span style="color: #000000;">></span><span style="color: #000000;">::iterator i </span><span style="color: #000000;">=</span><span style="color: #000000;"> c.begin(); i</span><span style="color: #000000;">!=</span><span style="color: #000000;"> c.end(); </span><span style="color: #000000;">++</span><span style="color: #000000;">i)<br>{<br>    </span><span style="color: #0000ff;">if</span><span style="color: #000000;"> ((</span><span style="color: #000000;">*</span><span style="color: #000000;">i)</span><span style="color: #000000;">></span><span style="color: #000000;">10</span><span style="color: #000000;">)<br>    {<br>        </span><span style="color: #008000;">//</span><span style="color: #008000;"> 濡傛灉鏈変竴涓煎ぇ浜?0錛屽垹闄や箣</span><span style="color: #008000;"><br></span><span style="color: #000000;">        c.erase(i);<br>        </span><span style="color: #0000ff;">break</span><span style="color: #000000;">;<br>    }<br>}<br></span></div> 涓婅堪浠g爜鍦ㄥ垹闄や竴涓厓绱犵殑鏃跺欏茍娌℃湁闂銆傘傘備絾鏄垜浠兂鍒犻櫎鎵鏈夊ぇ浜?0鐨勫鹼紝浜庢槸錛?br> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: #000000;">list</span><span style="color: #000000;"><</span><span style="color: #0000ff;">int</span><span style="color: #000000;">></span><span style="color: #000000;"> c;<br></span><span style="color: #008000;">//</span><span style="color: #008000;"> todo insert items</span><span style="color: #008000;"><br></span><span style="color: #0000ff;">for</span><span style="color: #000000;"> (list</span><span style="color: #000000;"><</span><span style="color: #0000ff;">int</span><span style="color: #000000;">></span><span style="color: #000000;">::iterator i </span><span style="color: #000000;">=</span><span style="color: #000000;"> c.begin(); i</span><span style="color: #000000;">!=</span><span style="color: #000000;"> c.end(); </span><span style="color: #000000;">++</span><span style="color: #000000;">i)<br>{<br>    </span><span style="color: #0000ff;">if</span><span style="color: #000000;"> ((</span><span style="color: #000000;">*</span><span style="color: #000000;">i)</span><span style="color: #000000;">></span><span style="color: #000000;">10</span><span style="color: #000000;">)<br>    {<br>        </span><span style="color: #008000;">//</span><span style="color: #008000;"> 鍒犻櫎鎵鏈夊ぇ浜?0鐨勫?/span><span style="color: #008000;"><br></span><span style="color: #000000;">        c.erase(i);<br>    }<br>}</span></div> 婊℃甯屾湜鐨勭紪璇戯紝榪愯銆傘傘備簬鏄紓甯稿彂鐢熴傘傘?br>鍟娿傘傘傚摝銆傘傘?br>鍘熸潵鏄垹闄よ凱浠e櫒i鍚庯紝i鎵鎸囩殑鍏冪礌宸茬粡澶辨晥浜嗭紝鐒跺悗緇檌++錛屽畠宸茬粡涓嶅湪瀛樺湪浜嗐傘傘備簬鏄粸灝借剳姹侊紝鍑虹浜嗕笅闈㈢殑浠g爜錛?br> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: #000000;">list</span><span style="color: #000000;"><</span><span style="color: #0000ff;">int</span><span style="color: #000000;">></span><span style="color: #000000;"> c;<br></span><span style="color: #008000;">//</span><span style="color: #008000;"> todo insert items</span><span style="color: #008000;"><br></span><span style="color: #000000;">list</span><span style="color: #000000;"><</span><span style="color: #0000ff;">int</span><span style="color: #000000;">></span><span style="color: #000000;">::iterator nextitr </span><span style="color: #000000;">=</span><span style="color: #000000;"> c.begin();<br></span><span style="color: #0000ff;">for</span><span style="color: #000000;"> (list</span><span style="color: #000000;"><</span><span style="color: #0000ff;">int</span><span style="color: #000000;">></span><span style="color: #000000;">::iterator i </span><span style="color: #000000;">=</span><span style="color: #000000;"> c.begin();;)<br>{<br>    </span><span style="color: #0000ff;">if</span><span style="color: #000000;">(nextitr </span><span style="color: #000000;">==</span><span style="color: #000000;"> c.end())<br>        </span><span style="color: #0000ff;">break</span><span style="color: #000000;">;<br>    </span><span style="color: #000000;">++</span><span style="color: #000000;">nextitr;<br>    </span><span style="color: #0000ff;">if</span><span style="color: #000000;"> ((</span><span style="color: #000000;">*</span><span style="color: #000000;">i)</span><span style="color: #000000;">></span><span style="color: #000000;">10</span><span style="color: #000000;">)<br>    {<br>        </span><span style="color: #008000;">//</span><span style="color: #008000;"> 濡傛灉鏈変竴涓煎ぇ浜?0錛屽垹闄や箣</span><span style="color: #008000;"><br></span><span style="color: #000000;">        c.erase(i);<br>    }<br>    i </span><span style="color: #000000;">=</span><span style="color: #000000;"> nextitr;<br>}<br></span></div> 涓婇潰鐨勪唬鐮佸緢瀹規(guī)槗鐞嗚В錛屽嵆鍦ㄥ垹闄や竴涓凱浠e櫒涔嬪墠錛屾妸瀹冪殑涔嬪悗鐨勮凱浠e櫒鍏堝瓨鍌紝鐒跺悗鍦ㄤ笅嬈″驚鐜殑鏃跺欏埄鐢ㄤ箣鍓嶅瓨鍌ㄧ殑榪唬鍣ㄣ?br>OK錛屾垜浠湅鍒頒笂闈㈣繖孌典唬鐮佸彲浠ュ伐浣滀簡錛岃涓轟技涔庝篃榪樻紜紝鍙槸銆傘傘備唬鐮佷技涔庡浜嗙偣銆傛垜鎯充唬鐮佽兘澶熷皯鐐瑰氨濂戒簡錛岄昏緫涔熶笉瑕侀偅涔堥夯鐑︺傞偅涔堟垜浠湅涓嬮潰鐨勪唬鐮侊紙杞澆鑷狤ffective STL錛夈?br> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: #000000;">list</span><span style="color: #000000;"><</span><span style="color: #0000ff;">int</span><span style="color: #000000;">></span><span style="color: #000000;"> c;<br></span><span style="color: #008000;">//</span><span style="color: #008000;"> todo insert items</span><span style="color: #008000;"></span><span style="color: #000000;"></span><span style="color: #000000;"><br></span><span style="color: #0000ff;">for</span><span style="color: #000000;"> (list</span><span style="color: #000000;"><</span><span style="color: #0000ff;">int</span><span style="color: #000000;">></span><span style="color: #000000;">::iterator i </span><span style="color: #000000;">=</span><span style="color: #000000;"> c.begin(); i</span><span style="color: #000000;">!=</span><span style="color: #000000;"> c.end();)<br>{<br>    </span><span style="color: #0000ff;">if</span><span style="color: #000000;"> ((</span><span style="color: #000000;">*</span><span style="color: #000000;">i)</span><span style="color: #000000;">></span><span style="color: #000000;">10</span><span style="color: #000000;">)<br>    {<br>        </span><span style="color: #008000;">//</span><span style="color: #008000;"> 濡傛灉鏈変竴涓煎ぇ浜?0錛屽垹闄や箣</span><span style="color: #008000;"><br></span><span style="color: #000000;">        c.erase(i</span><span style="color: #000000;">++</span><span style="color: #000000;">);<br>    }<br>    </span><span style="color: #0000ff;">else</span><span style="color: #000000;"><br>        i</span><span style="color: #000000;">++</span><span style="color: #000000;">;<br>}<br></span></div> 鍡傘傘傞珮鎵嬪氨鏄珮鎵嬶紙鎴戜互鍓嶆牴鏈病鏈夊湪鎰忚繃++i鍜宨++鍦ㄤ嬌鐢ㄧ殑榪囩▼涓兘鏈夎繖涔堝ぇ鐨勫尯鍒級<br>濂戒簡錛屾渶鍚庡啀鎻愪緵涓涓増鏈紝鍒╃敤list鐨剅emove_if鍑芥暟銆?br> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: #0000ff;">bool</span><span style="color: #000000;"> fun(</span><span style="color: #0000ff;">int</span><span style="color: #000000;"> i)<br>{<br>    </span><span style="color: #0000ff;">if</span><span style="color: #000000;">(i</span><span style="color: #000000;">></span><span style="color: #000000;">10</span><span style="color: #000000;">)<br>        </span><span style="color: #0000ff;">return</span><span style="color: #000000;"> </span><span style="color: #0000ff;">true</span><span style="color: #000000;">;<br>    </span><span style="color: #0000ff;">else</span><span style="color: #000000;"><br>        </span><span style="color: #0000ff;">return</span><span style="color: #000000;"> </span><span style="color: #0000ff;">false</span><span style="color: #000000;">;<br>}<br><br>list</span><span style="color: #000000;"><</span><span style="color: #0000ff;">int</span><span style="color: #000000;">></span><span style="color: #000000;"> c;<br></span><span style="color: #008000;">//</span><span style="color: #008000;"> todo insert items</span><span style="color: #008000;"><br></span><span style="color: #000000;">c.remove_if(fun);</span></div> 鍡紝鍏跺疄鍒犻櫎涓涓鍣ㄤ腑鐨勫肩殑鏂瑰紡榪樻槸鎸哄鐨勩?br> <img src ="http://www.shnenglu.com/shootingstars/aggbug/26144.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/shootingstars/" target="_blank">shootingstars</a> 2007-06-12 17:37 <a href="http://www.shnenglu.com/shootingstars/archive/2007/06/12/26144.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.shnenglu.com/" title="精品视频久久久久">精品视频久久久久</a> <div class="friend-links"> </div> </div> </footer> <a href="http://www.inconfont.cn" target="_blank">蜜桃麻豆WWW久久囤产精品</a>| <a href="http://www.shopzoom.cn" target="_blank">成人久久综合网</a>| <a href="http://www.ccjump.cn" target="_blank">性高湖久久久久久久久AAAAA</a>| <a href="http://www.pcadmin.cn" target="_blank">狠狠久久综合伊人不卡</a>| <a href="http://www.hbsannong.com.cn" target="_blank">人妻系列无码专区久久五月天</a>| <a href="http://www.hvnm.cn" target="_blank">久久午夜免费视频</a>| <a href="http://www.0108400.cn" target="_blank">久久线看观看精品香蕉国产</a>| <a href="http://www.rosettagetty.com.cn" target="_blank">亚洲AV伊人久久青青草原</a>| <a href="http://www.tengfangwang.cn" target="_blank">久久精品卫校国产小美女</a>| <a href="http://www.zhouyimen.cn" target="_blank">久久综合久久久</a>| <a href="http://www.the-music-cable.cn" target="_blank">色偷偷88欧美精品久久久</a>| <a href="http://www.ifim.cn" target="_blank">日本欧美久久久久免费播放网</a>| <a href="http://www.iz.sd.cn" target="_blank">久久精品视频91</a>| <a href="http://www.suichuan.net.cn" target="_blank">91久久精品视频</a>| <a href="http://www.pobk.cn" target="_blank">久久国产精品成人免费</a>| <a href="http://www.jpcn2.cn" target="_blank">久久精品99久久香蕉国产色戒 </a>| <a href="http://www.qshuai.cn" target="_blank">777午夜精品久久av蜜臀</a>| <a href="http://www.yiranblog.cn" target="_blank">国内精品久久久久国产盗摄</a>| <a href="http://www.zgcl.org.cn" target="_blank">久久人人爽人人爽人人爽</a>| <a href="http://www.btclt.cn" target="_blank">精品久久久久久国产免费了</a>| <a href="http://www.pqdaili.cn" target="_blank">久久精品天天中文字幕人妻</a>| <a href="http://www.jihejingjia.cn" target="_blank">久久亚洲欧洲国产综合</a>| <a href="http://www.571jia.cn" target="_blank">四虎国产精品成人免费久久</a>| <a href="http://www.vfql.cn" target="_blank">久久精品一区二区</a>| <a href="http://www.ifson.cn" target="_blank">精品久久久久久久无码</a>| <a href="http://www.zl6688.com.cn" target="_blank">jizzjizz国产精品久久</a>| <a href="http://www.xsylsh.cn" target="_blank">久久人人爽人人爽人人片AV麻烦</a>| <a href="http://www.job158.cn" target="_blank">久久99精品国产麻豆婷婷</a>| <a href="http://www.sobseo.cn" target="_blank">狠狠色噜噜狠狠狠狠狠色综合久久</a>| <a href="http://www.woman365.cn" target="_blank">一级做a爰片久久毛片免费陪</a>| <a href="http://www.baicar.cn" target="_blank">亚洲国产成人久久笫一页</a>| <a href="http://www.fengdingjun.cn" target="_blank">99久久国产综合精品网成人影院 </a>| <a href="http://www.maichayo.cn" target="_blank">国产精品久久久99</a>| <a href="http://www.imont.cn" target="_blank">国产精品午夜久久</a>| <a href="http://www.ddmir.cn" target="_blank">久久精品国产91久久综合麻豆自制</a>| <a href="http://www.airesou.cn" target="_blank">无码AV中文字幕久久专区</a>| <a href="http://www.zhangjiaying.cn" target="_blank">久久亚洲AV成人无码电影</a>| <a href="http://www.g8360.cn" target="_blank">久久久久se色偷偷亚洲精品av</a>| <a href="http://www.114out.cn" target="_blank">四虎久久影院</a>| <a href="http://www.dgdike.cn" target="_blank">久久狠狠爱亚洲综合影院</a>| <a href="http://www.e-meng.com.cn" target="_blank">久久青青草视频</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>