锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品专区h在线观看,噜噜噜在线观看免费视频日韩,免费人成精品欧美精品http://m.shnenglu.com/Ylemzy/category/10806.html瓚寵抗鐨勮凍榪?/description>zh-cnFri, 27 Apr 2012 04:30:05 GMTFri, 27 Apr 2012 04:30:05 GMT60LPCTSTR,LPCSTR,LPSTR鍜孡PTSTR鐨勫惈涔?/title><link>http://m.shnenglu.com/Ylemzy/articles/171353.html</link><dc:creator>鐏⒊榛?/dc:creator><author>鐏⒊榛?/author><pubDate>Sat, 14 Apr 2012 06:26:00 GMT</pubDate><guid>http://m.shnenglu.com/Ylemzy/articles/171353.html</guid><wfw:comment>http://m.shnenglu.com/Ylemzy/comments/171353.html</wfw:comment><comments>http://m.shnenglu.com/Ylemzy/articles/171353.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/Ylemzy/comments/commentRss/171353.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/Ylemzy/services/trackbacks/171353.html</trackback:ping><description><![CDATA[<div><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; color: #494949; font-family: simsun; text-align: left; background-color: #ffffff; ">UNICODE錛氬畠鏄敤涓や釜瀛楄妭琛ㄧず涓涓瓧絎︾殑鏂規硶銆傛瘮濡傚瓧絎?A'鍦ˋSCII涓嬮潰鏄竴涓瓧絎︼紝鍙?A'鍦║NICODE涓嬮潰鏄袱涓瓧絎?楂樺瓧絎︾敤0濉厖錛岃屼笖姹夊瓧'紼?鍦ˋSCII涓嬮潰鏄袱涓瓧鑺傦紝鑰屽湪UNICODE涓嬩粛鏃ф槸涓や釜瀛楄妭銆俇NICODE鐨勭敤澶勫氨鏄畾闀胯〃紺轟笘鐣屾枃瀛楋紝鎹粺璁★紝鐢ㄤ袱涓瓧鑺傚彲浠ョ紪 鐜板瓨鐨勬墍鏈夋枃瀛楄屾病鏈変簩涔夈?nbsp;<wbr> <wbr> <wbr><br /> <wbr> <wbr> <wbr><br />MBCS錛屽畠鏄瀛楄妭瀛楃闆嗭紝瀹冩槸涓嶅畾闀胯〃紺轟笘鐣屾枃瀛楃殑緙?銆侻BCS琛ㄧず鑻辨枃瀛楁瘝鏃跺氨鍜孉SCII涓 錛堣繖涔熸槸鎴戜滑瀹規槗鎶奙BCS鍜孉SCII鎼炴販鐨勫師 錛夛紝浣嗚〃紺哄叾浠栨枃瀛楁椂灝遍渶瑕佺敤澶氬瓧鑺傘?nbsp;<wbr> <wbr> <wbr></p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; color: #494949; font-family: simsun; text-align: left; background-color: #ffffff; ">WINDOWS涓嬮潰鐨勭▼搴忚璁″彲浠ユ敮鎸丮BCS鍜孶NICODE涓ょ緙栫爜鐨勫瓧絎︿覆錛屽叿浣撶敤<br />閭g灝辯湅瀹氫箟浜哅BCS瀹忚繕鏄疷NICODE瀹忋侻BCS瀹忓搴旂殑瀛楃涓叉寚閽堟槸char*涔熷氨鏄疞PSTR錛孶NICODE瀵瑰簲鐨勬寚閽堟槸unsigned short*涔熷氨鏄疞PWSTR錛屼負浜嗗啓紼嬪簭鏂逛究寰蔣瀹氫箟浜嗙被鍨婰PTSTR錛屽湪MBCS涓嬩粬灝辨槸char*,鍦║NICODE涓嬪畠鏄痷nsigned char*,榪?灝卞彲浠ラ噸瀹氫箟涓涓畯榪涜涓嶅悓瀛楃闆嗙殑杞崲浜嗐?/p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; color: #494949; font-family: simsun; text-align: left; background-color: #ffffff; ">LPTSTR銆丩PCSTR銆丩PCTSTR銆丩PSTR鐨勬剰涔夛細</p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; color: #494949; font-family: simsun; text-align: left; background-color: #ffffff; "> <wbr> <wbr> <wbr>  <wbr> <wbr> LPSTR: 32bit鎸囬拡鎸囧悜涓涓瓧絎︿覆錛屾瘡涓瓧絎﹀崰1瀛楄妭<br /> <wbr> <wbr> <wbr> LPCSTR: 32-bit鎸囬拡鎸囧悜涓涓父瀛楃涓詫紝姣忎釜瀛楃鍗?瀛楄妭<br /> <wbr> <wbr> LPCTSTR: 32-bit鎸囬拡鎸囧悜涓涓父瀛楃涓?姣忓瓧絎﹀彲鑳藉崰1瀛楄妭鎴?瀛楄妭錛屽彇鍐充簬Unicode鏄惁瀹氫箟<br /> <wbr> <wbr> <wbr> <wbr> LPTSTR: 32-bit鎸囬拡姣忓瓧絎﹀彲鑳藉崰1瀛楄妭鎴?瀛楄妭錛屽彇鍐充簬Unicode鏄惁瀹氫箟</p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; color: #494949; font-family: simsun; text-align: left; background-color: #ffffff; ">Windows浣跨敤涓ょ瀛楃闆咥NSI鍜孶NICODE錛屽墠鑰呭氨鏄氬父浣跨敤鐨勫崟瀛楄妭鏂瑰紡錛屼絾榪欑鏂瑰紡澶勭悊璞′腑鏂囪繖鏍風殑鍙屽瓧鑺傚瓧絎︿笉鏂逛究錛屽鏄撳嚭鐜板崐涓眽瀛楃殑鎯呭喌銆傝屽悗鑰呮槸鍙屽瓧鑺傛柟寮忥紝鏂逛究澶勭悊鍙屽瓧鑺傚瓧絎︺俉indowsNT鐨勬墍鏈変笌瀛楃鏈夊叧鐨勫嚱鏁伴兘鎻愪緵涓ょ鏂瑰紡鐨勭増鏈紝鑰學indows9x鍙敮鎸丄NSI鏂瑰紡銆俖T涓鑸悓瀛楀父鏁扮浉鍏籌紝濡俖T("Hello"銆傚鏋滀綘緙栬瘧涓涓▼搴忎負ANSI鏂瑰紡錛宊T瀹為檯涓嶈搗浠諱綍浣滅敤銆傝屽鏋滅紪璇戜竴涓▼搴忎負UNICODE鏂瑰紡錛屽垯緙栬瘧鍣ㄤ細鎶?Hello"瀛楃涓蹭互UNICODE鏂瑰紡淇濆瓨銆俖T鍜宊L鐨勫尯鍒湪浜庯紝_L涓嶇浣犳槸浠ヤ粈涔堟柟寮忕紪璇戯紝涓寰嬩互UNICODE鏂瑰紡淇濆瓨.</p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; color: #494949; font-family: simsun; text-align: left; background-color: #ffffff; ">Windows鏍稿績緙栫▼鐨勭涓绔犮?/p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; color: #494949; font-family: simsun; text-align: left; background-color: #ffffff; ">L鏄〃紺哄瓧絎︿覆璧勬簮涓篣nicode鐨勩?/p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; color: #494949; font-family: simsun; text-align: left; background-color: #ffffff; ">姣斿<br />wchar_t Str[] = L"Hello World!";<br />榪欎釜灝辨槸鍙屽瓙鑺傚瓨鍌ㄥ瓧絎︿簡銆?/p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; color: #494949; font-family: simsun; text-align: left; background-color: #ffffff; ">_T鏄竴涓傞厤鐨勫畯锝?/p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; color: #494949; font-family: simsun; text-align: left; background-color: #ffffff; ">褰?br />#ifdef _UNICODE鐨勬椂鍊?br />_T灝辨槸L<br />娌℃湁#ifdef _UNICODE鐨勬椂鍊?br />_T灝辨槸ANSI鐨勩?/p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; color: #494949; font-family: simsun; text-align: left; background-color: #ffffff; ">姣斿</p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; color: #494949; font-family: simsun; text-align: left; background-color: #ffffff; ">LPTSTR lpStr = new TCHAR[32];<br />TCHAR* szBuf = _T("Hello");<br />浠ヤ笂涓ゅ彞浣垮緱鏃犺鏄湪UNICODE緙栬瘧鏉′歡涓嬮兘鏄紜紪璇戠殑銆?br />鑰屼笖MS鎺ㄨ崘浣犱嬌鐢ㄧ浉鍖歸厤鐨勫瓧絎︿覆鍑芥暟銆?br />姣斿澶勭悊LPTSTR鎴栬匧PCTSTR 鐨勬椂鍊欙紝涓嶈鐢╯trlen ,鑰屾槸瑕佺敤_tcslen<br />鍚﹀垯鍦║NICODE鐨勭紪璇戞潯浠朵笅錛宻trlen涓嶈兘澶勭悊 wchar_t*鐨勫瓧絎︿覆銆?/p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; color: #494949; font-family: simsun; text-align: left; background-color: #ffffff; ">T鏄潪甯告湁鎰忔濈殑涓涓鍙鳳紙TCHAR銆丩PCTSTR銆丩PTSTR銆乢T()銆乢TEXT()...錛夛紝瀹冭〃紺轟嬌鐢ㄤ竴縐嶄腑闂寸被鍨嬶紝鏃笉鏄庣‘琛ㄧず浣跨敤 MBCS錛屼篃涓嶆槑紜〃紺轟嬌鐢?UNICODE銆傞偅鍒板簳浣跨敤鍝瀛楃闆?緙栬瘧鐨勬椂鍊欐墠鍐沖畾<br /><br /><br /><strong style="font-weight: bold; ">LPTSTR鍜孭STR鍖哄埆<br /></strong><br />LP鍜孭鍦╳in32涓槸絳夋晥鐨勶紝閮芥槸鎸囬拡鐨勬剰鎬濄?nbsp;<wbr> <wbr> <wbr><br />PTSTR鐨勫畾涔?nbsp;typedef LPWSTR PTSTR, LPTSTR;<br /> <wbr> <wbr> <wbr> STR琛ㄧず瀛楃涓層?nbsp;<wbr> <wbr> <wbr><br /> <wbr> <wbr> <wbr> 闂灝卞嚭鍦═涓婇潰銆?nbsp;<wbr> <wbr> <wbr><br /> <wbr> <wbr> <wbr> T鏄竴涓畯錛屽綋娌″畾涔塽nicode鏃朵負絀猴紝瀹氫箟unicode鍚庤〃紺轟負瀹藉瓧絎︺?nbsp;<wbr> <wbr> <wbr><br /> <wbr> <wbr> <wbr> 鎵浠ュ綋瀹氫箟unicode鍚庯紝PTSTR杞崲涓篜STR錛圠PSTR錛屼竴鏍鋒剰鎬?灝變笉鑳界洿鎺ヨ漿鎹簡錛屽洜涓轟竴涓槸unicode,涓涓槸ascii <wbr> <wbr> <wbr><br /> <wbr> <wbr> <wbr> 緇撹錛歶nicode涓嬶紝PTSTR杞崲涓篜STR鏄釜緙栫爜杞崲闂銆?nbsp;<wbr> <wbr> <wbr><br /> <wbr> <wbr> <wbr> 緙栫爜杞崲鍙互鐢∕S鐨勫嚱鏁板畬鎴愩?nbsp;<wbr> <wbr> <wbr><br /> <wbr> <wbr> <wbr> WideCharToMultiByte灝唘nicode杞崲鎴恆scii <wbr> <wbr> <wbr><br /> <wbr> <wbr> <wbr> MultiByteToWideChar灝哸scii杞崲鎴恥nicode <wbr> <br />杞澆鑷?/p><div><h1><a style="color: #6d3a23; "><span id="blognamespan">bighorn鐨勫崥瀹?/span></a></h1></div></div><img src ="http://m.shnenglu.com/Ylemzy/aggbug/171353.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/Ylemzy/" target="_blank">鐏⒊榛?/a> 2012-04-14 14:26 <a href="http://m.shnenglu.com/Ylemzy/articles/171353.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>DES鍔犲瘑綆楁硶http://m.shnenglu.com/Ylemzy/articles/142724.html鐏⒊榛?/dc:creator>鐏⒊榛?/author>Fri, 25 Mar 2011 09:00:00 GMThttp://m.shnenglu.com/Ylemzy/articles/142724.htmlhttp://m.shnenglu.com/Ylemzy/comments/142724.htmlhttp://m.shnenglu.com/Ylemzy/articles/142724.html#Feedback0http://m.shnenglu.com/Ylemzy/comments/commentRss/142724.htmlhttp://m.shnenglu.com/Ylemzy/services/trackbacks/142724.html闃呰鍏ㄦ枃

]]>
鎸変綅寮傛垨http://m.shnenglu.com/Ylemzy/articles/96147.html鐏⒊榛?/dc:creator>鐏⒊榛?/author>Mon, 14 Sep 2009 11:46:00 GMThttp://m.shnenglu.com/Ylemzy/articles/96147.htmlhttp://m.shnenglu.com/Ylemzy/comments/96147.htmlhttp://m.shnenglu.com/Ylemzy/articles/96147.html#Feedback0http://m.shnenglu.com/Ylemzy/comments/commentRss/96147.htmlhttp://m.shnenglu.com/Ylemzy/services/trackbacks/96147.html鍙備笌榪愮畻鐨勪袱涓鹼紝濡傛灉涓や釜鐩稿簲bit浣嶇浉鍚岋紝鍒欑粨鏋滀負0錛屽惁鍒欎負1銆?/span>
鍗籌細
銆銆銆0^0 = 0錛?
      1^0 = 1錛?
      0^1 = 1錛?
      1^1 = 0

渚嬪錛?0100001^00010001=10110000

鎸変綅寮傛垨鐨?涓壒鐐?/font>:
(1) 0^0=0,0^1=1  0寮傛垨浠諱綍鏁幫紳浠諱綍鏁?/span>
(2) 1^0=1,1^1=0  1寮傛垨浠諱綍鏁幫紞浠諱綍鏁板彇鍙?/span>
(3)              浠諱綍鏁板紓鎴栬嚜宸憋紳鎶婅嚜宸辯疆0
                 
鎸変綅寮傛垨鐨勫嚑涓父瑙佺敤閫?/font>:
(1) 浣挎煇浜涚壒瀹氱殑浣嶇炕杞?/span>
    渚嬪瀵規暟10100001鐨勭2浣嶅拰絎?浣嶇炕杞紝鍒欏彲浠ュ皢璇ユ暟涓?0000110榪涜鎸変綅寮傛垨榪愮畻銆?/span>
銆銆銆銆銆  10100001^00000110 = 10100111

(2) 瀹炵幇涓や釜鍊肩殑浜ゆ崲錛岃屼笉蹇呬嬌鐢ㄤ復鏃跺彉閲忋?/span>
    渚嬪浜ゆ崲涓や釜鏁存暟a=10100001錛宐=00000110鐨勫鹼紝鍙氳繃涓嬪垪璇彞瀹炵幇錛?/span>
銆銆銆銆a = a^b錛?銆銆//a=10100111
銆銆銆銆b = b^a錛?銆銆//b=10100001
銆銆銆銆a = a^b錛?銆銆//a=00000110

(3) 鍦ㄦ眹緙栬璦涓粡甯哥敤浜庡皢鍙橀噺緗浂錛?/span>
    xor   a錛宎

(4) 蹇熷垽鏂袱涓兼槸鍚︾浉絳?/span>
    涓句緥1: 鍒ゆ柇涓や釜鏁存暟a錛宐鏄惁鐩哥瓑錛屽垯鍙氳繃涓嬪垪璇彞瀹炵幇錛?/span>
        return ((a ^ b) == 0)
   
    涓句緥2: Linux涓渶鍒濈殑ipv6_addr_equal()鍑芥暟鐨勫疄鐜板涓?
    static inline int ipv6_addr_equal(const struct in6_addr *a1, const struct in6_addr *a2)
    {
        return (a1->s6_addr32[0] == a2->s6_addr32[0] &&
            a1->s6_addr32[1] == a2->s6_addr32[1] &&
            a1->s6_addr32[2] == a2->s6_addr32[2] &&
            a1->s6_addr32[3] == a2->s6_addr32[3]);
    }
   
    鍙互鍒╃敤鎸変綅寮傛垨瀹炵幇蹇熸瘮杈? 鏈鏂扮殑瀹炵幇宸茬粡淇敼涓?
    static inline int ipv6_addr_equal(const struct in6_addr *a1, const struct in6_addr *a2)
    {
    return (((a1->s6_addr32[0] ^ a2->s6_addr32[0]) |
        (a1->s6_addr32[1] ^ a2->s6_addr32[1]) |
        (a1->s6_addr32[2] ^ a2->s6_addr32[2]) |
        (a1->s6_addr32[3] ^ a2->s6_addr32[3])) == 0);
    }

]]>
鏈澶у瓙孌靛拰http://m.shnenglu.com/Ylemzy/articles/95066.html鐏⒊榛?/dc:creator>鐏⒊榛?/author>Wed, 02 Sep 2009 01:07:00 GMThttp://m.shnenglu.com/Ylemzy/articles/95066.htmlhttp://m.shnenglu.com/Ylemzy/comments/95066.htmlhttp://m.shnenglu.com/Ylemzy/articles/95066.html#Feedback0http://m.shnenglu.com/Ylemzy/comments/commentRss/95066.htmlhttp://m.shnenglu.com/Ylemzy/services/trackbacks/95066.html鏈澶у瓙孌靛拰錛?br>瀵逛竴涓暟瀛椾覆T錛屾眰鍏舵煇涓孌靛厓绱犱箣鍜岋紝浣垮緱鍏跺拰鏄渶澶с?/span> ( 娉細濡傛灉鎵鏈夌殑鏁板瓧閮戒笉澶т簬0錛屽垯瑙勫畾鍏跺拰涓?銆?

姹傛硶錛?/span>
                / if (sum[m-1] + T[m] >= 0){ sum[m] = sum[m -1] + T[m]}
sum[m] =
                \else {sum[m] = T[m]}

sum[m]鏄埌涓嬫爣涓簃鐨勫厓绱犱負姝㈢殑鏈澶у瓙孌靛拰銆?br>
姹傚嚭sum[m]鍚庯紝綰挎壂鏁扮粍sum鐨勬渶澶у煎氨鏄墍姹傘?/span>

int sum;
void MaxSum(int n)
{
    int i, b = 0;
    for (i = 0; i < n; i++)
    {
        if (b >= 0)
        {
            b += T[i];
        }
        else
        {
            b = T[i];
        }
        if (sum < b)
        {
            sum = b;
        }
    }
}



]]>
math搴撳嚱鏁扮殑鐩稿叧搴旂敤鐭ヨ瘑http://m.shnenglu.com/Ylemzy/articles/93979.html鐏⒊榛?/dc:creator>鐏⒊榛?/author>Thu, 20 Aug 2009 16:53:00 GMThttp://m.shnenglu.com/Ylemzy/articles/93979.htmlhttp://m.shnenglu.com/Ylemzy/comments/93979.htmlhttp://m.shnenglu.com/Ylemzy/articles/93979.html#Feedback0http://m.shnenglu.com/Ylemzy/comments/commentRss/93979.htmlhttp://m.shnenglu.com/Ylemzy/services/trackbacks/93979.htmldouble exp(x):鏄綆梕鐨刋嬈℃柟
x鐨勫鉤鏂癸細x*x鎴杧^2鎴杁ouble pow(x,y)(璁$畻x鐨剏鏂癸紝濡俻ow(x,2))


鎵浠ワ細

f(x)=x^2-1/exp(x)
欏轟究緇欏嚭C涓殑math.h涓殑鍑芥暟錛氫粎渚涘弬鑰?br>C璇█涓殑鏁板鍑芥暟(maths.h)
  
acos
double acos(x)
double x;
璁$畻arccos(x)鐨勫?
璁$畻緇撴灉
x搴斿湪-1鍒?鑼冨洿鍐?

asin
double asin(x)
double x;
璁$畻arcsin鐨勫?
璁$畻緇撴灉
x搴斿湪-1鍒?鑼冨洿鍐?

atan
double atan(x)
double x;
璁$畻arctan(x)鐨勫?
璁$畻緇撴灉
  

atan2
double atan2(x,y)
double x,y;
璁$畻arctan(x/y)鐨勫?
璁$畻緇撴灉
  

cos
double cos(x)
double x;
璁$畻cos(x)鐨勫?
璁$畻緇撴灉
x鐨勫崟浣嶄負寮у害

cosh
double cosh(x)
double x;
璁$畻x鐨勫弻鏇蹭綑寮osh(x)鐨勫?
璁$畻緇撴灉
  

exp
double exp(x)
double x;
姹俥鐨剎嬈℃柟騫?
璁$畻緇撴灉
  

fabs
double fabs(x)
double x;
姹?x鐨勭粷瀵瑰?
璁$畻緇撴灉
  

floor
double floor(x)
double x;
姹備笉澶т簬x鐨勬渶澶ф暣鏁?
璇ユ暣鏁扮殑鍙岀簿搴﹀疄鏁?
  

fmod
double fmod(x,y)
double x,y;
姹傛暣闄/y鐨勪綑鏁?
榪斿洖浣欐暟鐨勫弻綺懼害鏁?
  

frexp
double frexp(val,eptr)
double val;
int *eptr ;
鎶婂弻綺懼害鏁皏al鍒嗚В涓烘暟瀛楅儴鍒?灝炬暟)x鍜屼互2涓哄簳鐨勬寚鏁皀,鍗硋al=x*(2鐨?n嬈℃柟),瀛樻斁鍦╡ptr鎸囧悜鐨勫彉閲忎腑.
榪斿洖鏁板瓧閮ㄥ垎x
0.5x<1
  

log
double log(x)
double x;
姹俵nx
璁$畻緇撴灉
  

log10
double log10(x)
double x;
姹備互10涓哄簳x鐨勫鏁?
璁$畻緇撴灉
  

modf
double modf(val,iptr)
double val;
double iptr;
鎶婂弻綺懼害鏁皏al鍒嗚В涓烘暣鏁伴儴鍒嗗拰灝忔暟閮ㄥ垎,鎶婃暣鏁伴儴鍒嗗瓨鍒癷ptr鎸囧悜鐨勫崟鍏?
val鐨勫皬鏁伴儴鍒?
  

pow
double pow(x,y)
double x,y;
璁$畻x鐨剏嬈″箓
璁$畻緇撴灉
  

sin
double sin(x)
double x;
璁$畻sinx鐨勫?
璁$畻緇撴灉
x鐨勫崟浣嶄負寮у害

sinh
double sinh(x)
double x;
璁$畻x鐨勫弻鏇叉寮﹀嚱鏁皊inh(x)鐨勫?
璁$畻緇撴灉
  

sqrt
double sqrt(x)
double x;
璁$畻x鐨勫鉤鏂規牴
璁$畻緇撴灉
x搴斿ぇ浜庢垨絳変簬0

tan
double tan(x)
double x;
璁$畻tan(x)鐨勫?
璁$畻緇撴灉
x鍗曚綅涓哄害

tanh
double tanh(x)
double x;
璁$畻x鐨勫弻鏇叉鍒囧嚱鏁皌anh(x)鐨勫?
璁$畻緇撴灉


]]>
蹇熸帓搴?/title><link>http://m.shnenglu.com/Ylemzy/articles/87465.html</link><dc:creator>鐏⒊榛?/dc:creator><author>鐏⒊榛?/author><pubDate>Fri, 12 Jun 2009 03:01:00 GMT</pubDate><guid>http://m.shnenglu.com/Ylemzy/articles/87465.html</guid><wfw:comment>http://m.shnenglu.com/Ylemzy/comments/87465.html</wfw:comment><comments>http://m.shnenglu.com/Ylemzy/articles/87465.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/Ylemzy/comments/commentRss/87465.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/Ylemzy/services/trackbacks/87465.html</trackback:ping><description><![CDATA[<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top><span style="COLOR: #000000">#include</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">stdio.h</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>typedef </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> elemtype;<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000"> Part(elemtype r[], </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> low, </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> high, </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">pivotloc);<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000"> QuickSort(elemtype r[], </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> low, </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> high);<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> main()<br><img id=Codehighlighter1_159_446_Open_Image onclick="this.style.display='none'; Codehighlighter1_159_446_Open_Text.style.display='none'; Codehighlighter1_159_446_Closed_Image.style.display='inline'; Codehighlighter1_159_446_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_159_446_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_159_446_Closed_Text.style.display='none'; Codehighlighter1_159_446_Open_Image.style.display='inline'; Codehighlighter1_159_446_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedBlock.gif" align=top></span><span id=Codehighlighter1_159_446_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_159_446_Open_Text><span style="COLOR: #000000">{<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> i, m;<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    elemtype r[</span><span style="COLOR: #000000">1000</span><span style="COLOR: #000000">];<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    </span><span style="COLOR: #0000ff">while</span><span style="COLOR: #000000"> (</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">)<br><img id=Codehighlighter1_203_415_Open_Image onclick="this.style.display='none'; Codehighlighter1_203_415_Open_Text.style.display='none'; Codehighlighter1_203_415_Closed_Image.style.display='inline'; Codehighlighter1_203_415_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_203_415_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_203_415_Closed_Text.style.display='none'; Codehighlighter1_203_415_Open_Image.style.display='inline'; Codehighlighter1_203_415_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top>    </span><span id=Codehighlighter1_203_415_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_203_415_Open_Text><span style="COLOR: #000000">{<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>        scanf(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">%d</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">, </span><span style="COLOR: #000000">&</span><span style="COLOR: #000000">m);<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>        </span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000"> (i </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">; i </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000"> m; i</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)<br><img id=Codehighlighter1_252_279_Open_Image onclick="this.style.display='none'; Codehighlighter1_252_279_Open_Text.style.display='none'; Codehighlighter1_252_279_Closed_Image.style.display='inline'; Codehighlighter1_252_279_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_252_279_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_252_279_Closed_Text.style.display='none'; Codehighlighter1_252_279_Open_Image.style.display='inline'; Codehighlighter1_252_279_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top>        </span><span id=Codehighlighter1_252_279_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_252_279_Open_Text><span style="COLOR: #000000">{<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>            scanf(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">%d</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">, </span><span style="COLOR: #000000">&</span><span style="COLOR: #000000">r[i]);<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>        }</span></span><span style="COLOR: #000000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>        QuickSort(r, </span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">, m </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://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>        printf(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">\n鎺掑簭緇撴灉-------------------------\n</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>        </span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000"> (i </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">; i </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000"> m; i</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)<br><img id=Codehighlighter1_384_412_Open_Image onclick="this.style.display='none'; Codehighlighter1_384_412_Open_Text.style.display='none'; Codehighlighter1_384_412_Closed_Image.style.display='inline'; Codehighlighter1_384_412_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_384_412_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_384_412_Closed_Text.style.display='none'; Codehighlighter1_384_412_Open_Image.style.display='inline'; Codehighlighter1_384_412_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top>        </span><span id=Codehighlighter1_384_412_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_384_412_Open_Text><span style="COLOR: #000000">{<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>            printf(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">%d </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">, r[i]);<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>        }</span></span><span style="COLOR: #000000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>    }</span></span><span style="COLOR: #000000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    system(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">pause</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br><img src="http://m.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://m.shnenglu.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</span></span><span style="COLOR: #000000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000"> Part(elemtype r[], </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> low, </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> high, </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">pivotloc)<br><img id=Codehighlighter1_506_1173_Open_Image onclick="this.style.display='none'; Codehighlighter1_506_1173_Open_Text.style.display='none'; Codehighlighter1_506_1173_Closed_Image.style.display='inline'; Codehighlighter1_506_1173_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_506_1173_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_506_1173_Closed_Text.style.display='none'; Codehighlighter1_506_1173_Open_Image.style.display='inline'; Codehighlighter1_506_1173_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedBlock.gif" align=top></span><span id=Codehighlighter1_506_1173_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_506_1173_Open_Text><span style="COLOR: #000000">{<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> j, l </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> low, h </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> high;<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    elemtype pivotkey </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> r[low];</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">紜畾姣旇緝鍩烘暟 </span><span style="COLOR: #008000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">    </span><span style="COLOR: #0000ff">while</span><span style="COLOR: #000000"> (high </span><span style="COLOR: #000000">!=</span><span style="COLOR: #000000"> low)<br><img id=Codehighlighter1_595_903_Open_Image onclick="this.style.display='none'; Codehighlighter1_595_903_Open_Text.style.display='none'; Codehighlighter1_595_903_Closed_Image.style.display='inline'; Codehighlighter1_595_903_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_595_903_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_595_903_Closed_Text.style.display='none'; Codehighlighter1_595_903_Open_Image.style.display='inline'; Codehighlighter1_595_903_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top>    </span><span id=Codehighlighter1_595_903_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_595_903_Open_Text><span style="COLOR: #000000">{<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>        </span><span style="COLOR: #0000ff">while</span><span style="COLOR: #000000"> (low </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000"> high </span><span style="COLOR: #000000">&&</span><span style="COLOR: #000000"> pivotkey </span><span style="COLOR: #000000"><=</span><span style="COLOR: #000000"> r[high])</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">鏌ユ壘r[low]鍙寵竟灝忎簬pivotkey鐨勫厓绱爎[high] </span><span style="COLOR: #008000"><br><img id=Codehighlighter1_676_691_Open_Image onclick="this.style.display='none'; Codehighlighter1_676_691_Open_Text.style.display='none'; Codehighlighter1_676_691_Closed_Image.style.display='inline'; Codehighlighter1_676_691_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_676_691_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_676_691_Closed_Text.style.display='none'; Codehighlighter1_676_691_Open_Image.style.display='inline'; Codehighlighter1_676_691_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top></span><span style="COLOR: #000000">        </span><span id=Codehighlighter1_676_691_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_676_691_Open_Text><span style="COLOR: #000000">{<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>            high</span><span style="COLOR: #000000">--</span><span style="COLOR: #000000">;<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>        }</span></span><span style="COLOR: #000000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>        </span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000"> (low </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000"> high)<br><img id=Codehighlighter1_713_748_Open_Image onclick="this.style.display='none'; Codehighlighter1_713_748_Open_Text.style.display='none'; Codehighlighter1_713_748_Closed_Image.style.display='inline'; Codehighlighter1_713_748_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_713_748_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_713_748_Closed_Text.style.display='none'; Codehighlighter1_713_748_Open_Image.style.display='inline'; Codehighlighter1_713_748_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top>        </span><span id=Codehighlighter1_713_748_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_713_748_Open_Text><span style="COLOR: #000000">{<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>            r[low] </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> r[high];<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>            low</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">;<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>        }</span></span><span style="COLOR: #000000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>        </span><span style="COLOR: #0000ff">while</span><span style="COLOR: #000000"> (low </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000"> high </span><span style="COLOR: #000000">&&</span><span style="COLOR: #000000"> r[low] </span><span style="COLOR: #000000"><=</span><span style="COLOR: #000000"> pivotkey)</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">鏌ユ壘r[high]宸﹁竟澶т簬pivotkey鐨勫厓绱爎[low] </span><span style="COLOR: #008000"><br><img id=Codehighlighter1_828_842_Open_Image onclick="this.style.display='none'; Codehighlighter1_828_842_Open_Text.style.display='none'; Codehighlighter1_828_842_Closed_Image.style.display='inline'; Codehighlighter1_828_842_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_828_842_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_828_842_Closed_Text.style.display='none'; Codehighlighter1_828_842_Open_Image.style.display='inline'; Codehighlighter1_828_842_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top></span><span style="COLOR: #000000">        </span><span id=Codehighlighter1_828_842_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_828_842_Open_Text><span style="COLOR: #000000">{<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>            low</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">;<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>        }</span></span><span style="COLOR: #000000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>        </span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000"> (low </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000"> high)<br><img id=Codehighlighter1_864_900_Open_Image onclick="this.style.display='none'; Codehighlighter1_864_900_Open_Text.style.display='none'; Codehighlighter1_864_900_Closed_Image.style.display='inline'; Codehighlighter1_864_900_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_864_900_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_864_900_Closed_Text.style.display='none'; Codehighlighter1_864_900_Open_Image.style.display='inline'; Codehighlighter1_864_900_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top>        </span><span id=Codehighlighter1_864_900_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_864_900_Open_Text><span style="COLOR: #000000">{<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>            r[high] </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> r[low];<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>            high</span><span style="COLOR: #000000">--</span><span style="COLOR: #000000">;<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>        }</span></span><span style="COLOR: #000000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>    }</span></span><span style="COLOR: #000000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    r[high] </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> pivotkey;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">灝嗘瘮杈冨熀鏁皃ivotkey璧嬬粰鍒嗙晫鐐?nbsp;</span><span style="COLOR: #008000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">    </span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">pivotloc </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> high;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">鏍囪鍒嗙晫鐐?nbsp;</span><span style="COLOR: #008000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">    </span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000"> (j </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> l; j </span><span style="COLOR: #000000"><=</span><span style="COLOR: #000000"> h; j</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)<br><img id=Codehighlighter1_1001_1155_Open_Image onclick="this.style.display='none'; Codehighlighter1_1001_1155_Open_Text.style.display='none'; Codehighlighter1_1001_1155_Closed_Image.style.display='inline'; Codehighlighter1_1001_1155_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_1001_1155_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1001_1155_Closed_Text.style.display='none'; Codehighlighter1_1001_1155_Open_Image.style.display='inline'; Codehighlighter1_1001_1155_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top>    </span><span id=Codehighlighter1_1001_1155_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_1001_1155_Open_Text><span style="COLOR: #000000">{<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>        </span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000"> (j </span><span style="COLOR: #000000">==</span><span style="COLOR: #000000"> low)<br><img id=Codehighlighter1_1021_1113_Open_Image onclick="this.style.display='none'; Codehighlighter1_1021_1113_Open_Text.style.display='none'; Codehighlighter1_1021_1113_Closed_Image.style.display='inline'; Codehighlighter1_1021_1113_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_1021_1113_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1021_1113_Closed_Text.style.display='none'; Codehighlighter1_1021_1113_Open_Image.style.display='inline'; Codehighlighter1_1021_1113_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top>        </span><span id=Codehighlighter1_1021_1113_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_1021_1113_Open_Text><span style="COLOR: #000000">{<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>            printf(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"><%d> </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">, r[j]);</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">鎵撳嵃鍒嗙晫鐐圭殑鍊? r[l]鍒皉[low-1]鐨勬墍鏈夊厓绱犻兘灝忎簬鍒嗙晫鐐? r[low+1]鍒皉[h]寰楁墍鏈夊厓绱犻兘澶т簬鍒嗙晫鐐?nbsp;</span><span style="COLOR: #008000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top></span><span style="COLOR: #000000">        }</span></span><span style="COLOR: #000000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>        </span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000"><br><img id=Codehighlighter1_1124_1152_Open_Image onclick="this.style.display='none'; Codehighlighter1_1124_1152_Open_Text.style.display='none'; Codehighlighter1_1124_1152_Closed_Image.style.display='inline'; Codehighlighter1_1124_1152_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_1124_1152_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1124_1152_Closed_Text.style.display='none'; Codehighlighter1_1124_1152_Open_Image.style.display='inline'; Codehighlighter1_1124_1152_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top>        </span><span id=Codehighlighter1_1124_1152_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_1124_1152_Open_Text><span style="COLOR: #000000">{<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>            printf(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">%d </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">, r[j]);<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>        }</span></span><span style="COLOR: #000000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>    }</span></span><span style="COLOR: #000000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    printf(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">\n</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</span></span><span style="COLOR: #000000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000"> QuickSort(elemtype r[], </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> low, </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> high)<br><img id=Codehighlighter1_1223_1428_Open_Image onclick="this.style.display='none'; Codehighlighter1_1223_1428_Open_Text.style.display='none'; Codehighlighter1_1223_1428_Closed_Image.style.display='inline'; Codehighlighter1_1223_1428_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_1223_1428_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1223_1428_Closed_Text.style.display='none'; Codehighlighter1_1223_1428_Open_Image.style.display='inline'; Codehighlighter1_1223_1428_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedBlock.gif" align=top></span><span id=Codehighlighter1_1223_1428_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_1223_1428_Open_Text><span style="COLOR: #000000">{<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> i, j;<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    </span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000"> (low </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000"> high)<br><img id=Codehighlighter1_1254_1426_Open_Image onclick="this.style.display='none'; Codehighlighter1_1254_1426_Open_Text.style.display='none'; Codehighlighter1_1254_1426_Closed_Image.style.display='inline'; Codehighlighter1_1254_1426_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_1254_1426_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1254_1426_Closed_Text.style.display='none'; Codehighlighter1_1254_1426_Open_Image.style.display='inline'; Codehighlighter1_1254_1426_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top>    </span><span id=Codehighlighter1_1254_1426_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_1254_1426_Open_Text><span style="COLOR: #000000">{<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>        Part(r, low, high, </span><span style="COLOR: #000000">&</span><span style="COLOR: #000000">i);<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>        </span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">鍥犱負Part鍑芥暟錛屼嬌r[low]鍒皉[i-1]鐨勬墍鏈夊厓绱犻兘灝忎簬r[i], r[i+1]鍒皉[high]寰楁墍鏈夊厓绱犻兘澶т簬r[i]錛屾墍浠ヤ笉闇瑕佸湪灝唕[i]鍙備笌鎺掑簭 </span><span style="COLOR: #008000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">        QuickSort(r, low, i </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://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>        QuickSort(r, i </span><span style="COLOR: #000000">+</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">, high);<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>    }</span></span><span style="COLOR: #000000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</span></span><span style="COLOR: #000000"><br><img id=Codehighlighter1_1430_1463_Open_Image onclick="this.style.display='none'; Codehighlighter1_1430_1463_Open_Text.style.display='none'; Codehighlighter1_1430_1463_Closed_Image.style.display='inline'; Codehighlighter1_1430_1463_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_1430_1463_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1430_1463_Closed_Text.style.display='none'; Codehighlighter1_1430_1463_Open_Image.style.display='inline'; Codehighlighter1_1430_1463_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedBlock.gif" align=top></span><span id=Codehighlighter1_1430_1463_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">/**/</span><span id=Codehighlighter1_1430_1463_Open_Text><span style="COLOR: #008000">/*</span><span style="COLOR: #008000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>10<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>9 11 4 5 21 17 15 13 11 4<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top></span><span style="COLOR: #008000">*/</span></span><span style="COLOR: #000000">    </span></div> <img src ="http://m.shnenglu.com/Ylemzy/aggbug/87465.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/Ylemzy/" target="_blank">鐏⒊榛?/a> 2009-06-12 11:01 <a href="http://m.shnenglu.com/Ylemzy/articles/87465.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>绱爢鎺掑簭http://m.shnenglu.com/Ylemzy/articles/87458.html鐏⒊榛?/dc:creator>鐏⒊榛?/author>Fri, 12 Jun 2009 01:36:00 GMThttp://m.shnenglu.com/Ylemzy/articles/87458.htmlhttp://m.shnenglu.com/Ylemzy/comments/87458.htmlhttp://m.shnenglu.com/Ylemzy/articles/87458.html#Feedback0http://m.shnenglu.com/Ylemzy/comments/commentRss/87458.htmlhttp://m.shnenglu.com/Ylemzy/services/trackbacks/87458.html#include<stdio.h>
typedef 
int elemtype;
void Adjust(elemtype r[], int k, int n);
void HeapSort(elemtype r[], int n);

int main()
{
    
int i, m;
    elemtype r[
1000];
    
while (1)
    
{
        scanf(
"%d"&m);
        
if (m == 0)
        
{
            
break;
        }

        
for (i = 1; i <= m; i++)
        
{
            scanf(
"%d"&r[i]);
        }

        HeapSort(r, m);
    }

    system(
"pause");
    
return 0;
}

void Adjust(elemtype r[], int k, int n)//榪欓噷瀵規暟緇勮繘琛屽崌搴忔帓搴?nbsp;
{
    
int i, j;
    elemtype tmp;
    tmp 
= r[k];
    i 
= k;
    
while (i * 2 <= n)//鍦ㄦ湁瀛╁瓙鐨勬儏鍐典笅閬嶅巻瀛╁瓙銆倀mp鏄綋鍓嶇粨鐐瑰鹼紝瀹冧繚鎸佷笉鍙?nbsp;
    {
        j 
= 2 * i;
        
if (j + 1 <= n && r[j+1> r[j])//鎵懼嚭宸﹀彸瀛╁瓙涓殑杈冨ぇ鑰卌hildLarger 
        {
            j
++;
        }

        
if (tmp < r[j])
        
{
            r[i] 
= r[j];//濡傛灉緇撶偣姣攃hildLarger灝忥紝灝嗗瀛愪笂縐誨埌緇撶偣 
            i = j;//灝嗕笅鏍囩Щ鎸囧悜childLarger鐨勪綅緗?nbsp;
        }

        
else
        
{
            
break;//琛ㄦ槑i鎸囧悜鐨勭粨鐐圭殑瀛╁瓙閮芥瘮tmp灝?nbsp;
        }

    }

    r[i] 
= tmp;
}

void HeapSort(elemtype r[], int n)
{
    
int i, j;
    elemtype tmp;
    
for (i = n / 2; i >= 1; i--)//鎶婃爲璋冩暣鎴愬ぇ欏跺爢 
    {
        Adjust(r, i, n);
    }

    printf(
"\n\n澶ч《鍫?===========================\n"); 
    
for (j = 1; j <= n; j++)
    
{
        printf(
"%d ", r[j]);
    }

    printf(
"===================================\n");    
    
for (i = n; i >= 2; i--)
    
{
        tmp 
= r[i];
        r[i] 
= r[1];
        r[
1= tmp;
        Adjust(r, 
1, i - 1);//i - 1鐩殑鏄笉璁〢djust鎶奿涓婄Щ錛屽洜涓簉[i]鏄痳[1]鍒皉[i]涓殑鏈澶у?nbsp;
        printf("\n-------------------------------------\n");
        
for (j = 1; j <= n; j++)
        
{
            printf(
"%d ", r[j]);
        }

    }

}


/*
11
1 3 2 5 11 7 4 13 19 6 9
*/


]]>
褰掑茍鎺掑簭http://m.shnenglu.com/Ylemzy/articles/87411.html鐏⒊榛?/dc:creator>鐏⒊榛?/author>Thu, 11 Jun 2009 07:40:00 GMThttp://m.shnenglu.com/Ylemzy/articles/87411.htmlhttp://m.shnenglu.com/Ylemzy/comments/87411.htmlhttp://m.shnenglu.com/Ylemzy/articles/87411.html#Feedback0http://m.shnenglu.com/Ylemzy/comments/commentRss/87411.htmlhttp://m.shnenglu.com/Ylemzy/services/trackbacks/87411.html#include<stdio.h>
#include
<stdlib.h>
#define MAX 500001
int array[MAX], array1[MAX];
__int64 sum;
void MergeSort(intint);
void Merge(intintint);

int main()
{
    
int n, m, i, j = 0;
    
while (1)
    
{
        sum 
= 0;
        scanf(
"%d"&m);
        
if (m == 0)
        
{
            
break;
        }

        
for (i = 0; i < m; i++)
        
{
            scanf(
"%d"&array[i]);
        }

        MergeSort(
0, m - 1);
        printf(
"鎺掑簭緇撴灉\n"); 
        
for (i = 0; i < m; i++)
        
{
            printf(
"%d\t", array[i]);
        }

    }

    system(
"pause");
    
return 0;
}


void MergeSort(int i, int j)
{
    
int h;
    
if (i < j)
    
{
        
/* 灝嗛暱搴︿負m鐨勮緭鍏ュ簭鍒楀垎鎴愪袱涓暱搴︿負n/2鐨勫瓙搴忓垪 */
        h 
= (i + j)/2;
        printf(
"i = %d h = %d j = %d\n", i, h, j);
        
/* 瀵逛袱涓瓙搴忓垪鍒嗗埆榪涜褰掑茍鎺掑簭 */
        MergeSort(i, h);
        MergeSort(h 
+ 1, j);
        
/* 灝?涓帓濂界殑瀛愬簭鍒楀悎騫舵垚鏈緇堟湁搴忓簭鍒?nbsp;*/
        Merge(i, h, j);
    }

}

void Merge(int i, int h, int j)
{
    
int k = 0, y = h + 1, x = i;
     
/* 2涓緭鍏ュ尯闂撮兘涓嶄負絀烘椂 */

    
while (x <= h && y <= j)
    
{
        
/* 鍙栧叧閿瓧灝忕殑璁板綍杞Щ鑷寵緭鍑哄尯闂?nbsp;*/

        
if (array[x] > array[y])
        
{
            array1[k
++= array[y++];
            sum 
+= h - x + 1;
        }

        
else
        
{
            array1[k
++= array[x++];
        }

    }

    
/* 灝嗛潪絀虹殑杈撳叆鍖洪棿杞Щ鑷寵緭鍑哄尯闂?nbsp;*/
    
while (x <= h)
    
{
        array1[k
++= array[x++];
    }

    
while (y <= j)
    
{
        array1[k
++= array[y++];
    }

     
/* 褰掑茍瀹屾垚鍚庡皢緇撴灉澶嶅埗鍒板師杈撳叆鏁扮粍 */

    printf(
"褰撳墠緇撴灉\n"); 
    
for(x = 0; x < k; x++)
    
{
        array[i 
+ x] = array1[x];
        printf(
"%d ", array[i + x]);
    }

    printf(
"\n");
}

/*
6
1 2 5 6 3 4

*/


]]>
qsort蹇熸帓搴?/title><link>http://m.shnenglu.com/Ylemzy/articles/86987.html</link><dc:creator>鐏⒊榛?/dc:creator><author>鐏⒊榛?/author><pubDate>Sun, 07 Jun 2009 07:33:00 GMT</pubDate><guid>http://m.shnenglu.com/Ylemzy/articles/86987.html</guid><wfw:comment>http://m.shnenglu.com/Ylemzy/comments/86987.html</wfw:comment><comments>http://m.shnenglu.com/Ylemzy/articles/86987.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/Ylemzy/comments/commentRss/86987.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/Ylemzy/services/trackbacks/86987.html</trackback:ping><description><![CDATA[<p>qsort鍖呭惈鍦?lt;stdlib.h>澶存枃浠朵腑錛屾鍑芥暟<span id=reply_content_102844294>鏍規嵁浣犵粰鐨勬瘮杈冩潯浠惰繘琛屽揩閫熸帓搴忥紝閫氳繃鎸囬拡縐誨姩瀹炵幇鎺掑簭銆傛帓搴忎箣鍚庣殑緇撴灉浠嶇劧鏀懼湪鍘熸暟緇勪腑銆備嬌鐢╭sort鍑芥暟蹇呴』鑷繁鍐欎竴涓瘮杈冨嚱鏁般?/span></p> <p>鍑芥暟鍘熷瀷錛?/p> <p><span style="COLOR: rgb(0,0,255)">void qsort ( void * base, size_t num, size_t size, int ( * comparator ) ( const void *, const void * ) );</span></p> <p>鐢ㄦ硶浠ュ強鍙傛暟璇存槑錛?/p> <p> </p> <p><strong>base</strong> 鈥斺旇鎺掑簭鐨勬暟緇勮搗濮嬪湴鍧錛堟暟緇勫悕錛?br><strong>num</strong> 鈥斺旀暟緇勫厓绱犱釜鏁?br><strong>size</strong> 鈥斺旀暟緇勬瘡涓涓厓绱犵殑澶у皬<br><strong>comparator</strong> 鈥斺斿嚱鏁版寚閽堬紝鎸囧悜姣旇緝鍑芥暟錛堟瘮杈冭鍒欙級</p> 渚嬪錛?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://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top><span style="COLOR: #000000">typedef </span><span style="COLOR: #0000ff">struct</span><span style="COLOR: #000000"><br><img id=Codehighlighter1_15_45_Open_Image onclick="this.style.display='none'; Codehighlighter1_15_45_Open_Text.style.display='none'; Codehighlighter1_15_45_Closed_Image.style.display='inline'; Codehighlighter1_15_45_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_15_45_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_15_45_Closed_Text.style.display='none'; Codehighlighter1_15_45_Open_Image.style.display='inline'; Codehighlighter1_15_45_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedBlock.gif" align=top></span><span id=Codehighlighter1_15_45_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_15_45_Open_Text><span style="COLOR: #000000">{<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    </span><span style="COLOR: #0000ff">char</span><span style="COLOR: #000000"> p1[</span><span style="COLOR: #000000">11</span><span style="COLOR: #000000">];<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    </span><span style="COLOR: #0000ff">char</span><span style="COLOR: #000000"> p2[</span><span style="COLOR: #000000">11</span><span style="COLOR: #000000">];<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</span></span><span style="COLOR: #000000">T;<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>T str[size];<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> q_cmp(</span><span style="COLOR: #0000ff">const</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">a, </span><span style="COLOR: #0000ff">const</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">b)<br><img id=Codehighlighter1_103_147_Open_Image onclick="this.style.display='none'; Codehighlighter1_103_147_Open_Text.style.display='none'; Codehighlighter1_103_147_Closed_Image.style.display='inline'; Codehighlighter1_103_147_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_103_147_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_103_147_Closed_Text.style.display='none'; Codehighlighter1_103_147_Open_Image.style.display='inline'; Codehighlighter1_103_147_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedBlock.gif" align=top></span><span id=Codehighlighter1_103_147_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_103_147_Open_Text><span style="COLOR: #000000">{<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    </span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000"> strcmp(((T</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">)a)</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">p2, ((T</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">)b)</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">p2);<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</span></span><span style="COLOR: #000000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>………………<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>………………<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>………………<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>qsort(str, i, </span><span style="COLOR: #0000ff">sizeof</span><span style="COLOR: #000000">(T), q_cmp);</span></div> <br> <p>涓銆佸int綾誨瀷鏁扮粍鎺掑簭<br><span style="COLOR: rgb(0,0,255)"><br>int num[100];</span></p> <p><span style="COLOR: rgb(0,0,255)">int cmp ( const void *a , const void *b )<br>{<br>return *(int *)a - *(int *)b;//*(int *)a琛ㄧずa鎵鎸囧悜鐨勫湴鍧鐨勫唴瀹?br>}</span></p> <p><span style="COLOR: rgb(0,0,255)">qsort(num,100,sizeof(num[0]),cmp);</span></p> <p>浜屻佸char綾誨瀷鏁扮粍鎺掑簭錛堝悓int綾誨瀷錛?/p> <p><span style="COLOR: rgb(0,0,255)">char word[100];</span></p> <p><span style="COLOR: rgb(0,0,255)">int cmp( const void *a , const void *b )<br>{<br>return *(char *)a - *(int *)b;<br>}</span></p> <p><span style="COLOR: rgb(0,0,255)">qsort(word,100,sizeof(word[0]),cmp);</span></p> <p>涓夈佸double綾誨瀷鏁扮粍鎺掑簭<br><span style="COLOR: rgb(0,0,255)"><br>double in[100];</span></p> <p><span style="COLOR: rgb(0,0,255)">int cmp( const void *a , const void *b )<br>{<br>return *(double *)a > *(double *)b ? 1 : -1;//鍙岀簿搴︽垨楂樼簿搴︾殑鏈濂界敤姣旇緝絎﹀彿姣旇緝澶у皬錛岄伩鍏嶇簿搴﹁宸殑閿欒</span></p> <p><span style="COLOR: rgb(0,0,255)">qsort(in,100,sizeof(in[0]),cmp);</span></p> <p>鍥涖佸緇撴瀯浣撲竴綰ф帓搴?/p> <p><span style="COLOR: rgb(0,0,255)">struct Sample<br>{<br>double data;<br>int other;<br>}s[100]</span></p> <p><span style="COLOR: rgb(153,204,0)">//鎸夌収data鐨勫間粠灝忓埌澶у皢緇撴瀯浣撴帓搴?/span></p> <p><span style="COLOR: rgb(0,0,255)">int cmp( const void *a ,const void *b)<br>{<br>return (*(Sample *)a).data > (*(Sample *)b).data ? 1 : -1;<br>}</span></p> <p><span style="COLOR: rgb(0,0,255)">qsort(s,100,sizeof(s[0]),cmp);</span></p> <p>浜斻佸緇撴瀯浣撲簩綰ф帓搴?/p> <p><span style="COLOR: rgb(0,0,255)">struct Sample<br>{<br>int x;<br>int y;<br>}s[100];<br><span style="COLOR: rgb(153,204,0)"><br>//鎸夌収x浠庡皬鍒板ぇ鎺掑簭錛屽綋x鐩哥瓑鏃舵寜鐓浠庡ぇ鍒板皬鎺掑簭</span></span></p> <p><span style="COLOR: rgb(0,0,255)">int cmp( const void *a , const void *b )<br>{<br>struct Sample *c = (Sample *)a;<br>struct Sample *d = (Sample *)b;<br>if(c->x != d->x) return c->x - d->x;<br>else return d->y - c->y;<br>}</span></p> <p><span style="COLOR: rgb(0,0,255)">qsort(s,100,sizeof(s[0]),cmp);</span></p> <p>鍏佸瀛楃涓茶繘琛屾帓搴?/p> <p><span style="COLOR: rgb(0,0,255)">struct Sample<br>{<br>int data;<br>char str[100];<br>}s[100];<br><span style="COLOR: rgb(153,204,0)"><br>//鎸夌収緇撴瀯浣撲腑瀛楃涓瞫tr鐨勫瓧鍏擱『搴忔帓搴?/span></span></p> <p><span style="COLOR: rgb(0,0,255)">int cmp ( const void *a , const void *b )<br>{<br>return strcmp( (*(Sample *)a)->str , (*(Sample *)b)->str );<br>}</span></p> <p><span style="COLOR: rgb(0,0,255)">qsort(s,100,sizeof(s[0]),cmp);</span></p> <p><span style="COLOR: rgb(0,0,0)">闄勫姞涓涓畬鏁寸偣鐨勪唬鐮侊紝瀵瑰瓧絎︿覆浜岀淮鏁扮粍鎺掑簭錛?/span></p> <p><span style="COLOR: rgb(0,0,255)">#include <stdio.h><br>#include <stdlib.h><br>#include <string.h></span></p> <p><span style="COLOR: rgb(0,0,255)">char s[2001][1001];</span></p> <p><span style="COLOR: rgb(0,0,255)">int cmp(const void *a, const void *b){<br>    return strcmp((char *)a,(char *)b);<br>}</span></p> <p><span style="COLOR: rgb(0,0,255)">int main(){<br>    int i,n;<br>    scanf("%d",&n);<br>    getchar();<br>    for(i=0;i<n;i++) gets(s[i]);<br>    qsort(s,n,1001*sizeof(char),cmp);<br>    for(i=0;i<n;i++) puts(s[i]);<br>    return 0;<br>}<br><br><a title=Slyar ><a target=_blank>寮曠敤浜巗lyar<br></a></a></span></p> <img src ="http://m.shnenglu.com/Ylemzy/aggbug/86987.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/Ylemzy/" target="_blank">鐏⒊榛?/a> 2009-06-07 15:33 <a href="http://m.shnenglu.com/Ylemzy/articles/86987.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>bsearch浜屽垎鏌ユ壘http://m.shnenglu.com/Ylemzy/articles/86986.html鐏⒊榛?/dc:creator>鐏⒊榛?/author>Sun, 07 Jun 2009 07:15:00 GMThttp://m.shnenglu.com/Ylemzy/articles/86986.htmlhttp://m.shnenglu.com/Ylemzy/comments/86986.htmlhttp://m.shnenglu.com/Ylemzy/articles/86986.html#Feedback0http://m.shnenglu.com/Ylemzy/comments/commentRss/86986.htmlhttp://m.shnenglu.com/Ylemzy/services/trackbacks/86986.htmlC璇█涓?bsearch 鍖呭惈鍦?lt;stdlib.h>澶存枃浠朵腑錛屾鍑芥暟鍙互鏍規嵁浣犵粰鐨勬潯浠跺疄鐜頒簩鍒嗘煡鎵撅紝濡傛灉鎵懼埌鍏冪礌鍒欒繑鍥炴寚鍚戣鍏冪礌鐨勬寚閽堬紝鍚﹀垯榪斿洖NULL錛涘浜庢湁澶氫釜鍏冪礌鍖歸厤鎴愬姛鐨勬儏鍐碉紝bsearch()鏈畾涔夎繑鍥炲摢涓涓備嬌鐢?bsearch 鍑芥暟涔熻鑷繁瀹氫箟姣旇緝瀛愬嚱鏁般?/span>

void *bsearch(const void *key, const void *base, size_t num, size_t size, int (*cmp)(const void *, const void *));

key鈥斺?/strong> 鎸囧悜瑕佹煡鎵劇殑鍏冪礌

base鈥斺?/strong> 鎸囧悜榪涜鏌ユ壘鐨勬暟緇?/p>

num 鈥斺旀暟緇勪腑鍏冪礌鐨勪釜鏁?/p>

size鈥斺?/strong> 鏁扮粍涓瘡涓厓绱犵殑澶у皬錛屼竴鑸敤sizeof( T )琛ㄧず錛孴涓鑸槸鏁扮粍鐨勫厓绱犵被鍨?/p>

cmp 鈥斺旀瘮杈冧袱涓厓绱犵殑鍑芥暟錛屽畾涔夋瘮杈冭鍒欍傞渶瑕佹敞鎰忕殑鏄紝鏌ユ壘鏁扮粍蹇呴』鏄粡榪囬鍏堟帓搴忕殑錛岃屾帓搴忕殑瑙勫垯瑕佸拰姣旇緝瀛愬嚱鏁癱mp鐨勮鍒欑浉鍚屻?br>


姣斿錛?br>
typedef struct
{
 
char p1[11];
 
char p2[11];
}
T;
T str[size];
int b_cmp(const void *a, const void* b)//瀹氫箟(b_cmp)鍙互闅忎究鏀?/span>
{
 
return strcmp((char*)a, ((T*)b)->p2);
}

char s[10];
………………
………………
………………
*ptr = (T*)bsearch(s, str, i, sizeof(T), b_cmp);
s鏄鏌ユ壘鐨勫璞★紝鑰宻tr鏄緵鏌ユ壘鐨勬暟緇?/span>

寮曠敤浜巗lyar

]]>
閭繪帴琛紙瀹為獙錛?/title><link>http://m.shnenglu.com/Ylemzy/articles/86882.html</link><dc:creator>鐏⒊榛?/dc:creator><author>鐏⒊榛?/author><pubDate>Fri, 05 Jun 2009 16:04:00 GMT</pubDate><guid>http://m.shnenglu.com/Ylemzy/articles/86882.html</guid><wfw:comment>http://m.shnenglu.com/Ylemzy/comments/86882.html</wfw:comment><comments>http://m.shnenglu.com/Ylemzy/articles/86882.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/Ylemzy/comments/commentRss/86882.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/Ylemzy/services/trackbacks/86882.html</trackback:ping><description><![CDATA[     鎽樿: 嫻嬭瘯鏍蜂緥璇瘋緭鍏ュ浘欏剁偣涓暟!6璇瘋緭鍏ヨ繛閫氱殑涓や釜鐐癸紝浠ヨ緭鍏? 0緇撴潫!1 21 32 45 66 34 30 0浣犺緭鍏ョ殑鍥句負:0 1 1 0 0 01 0 0 1 0 01 0 0 1 0 10 1 1 0 0 00 0 0 0 0 10 0 1 0 1 0璇瘋緭鍏ヤ綘鐨勬搷浣滅被鍨嬶細        閫鍑?0  &nbs...  <a href='http://m.shnenglu.com/Ylemzy/articles/86882.html'>闃呰鍏ㄦ枃</a><img src ="http://m.shnenglu.com/Ylemzy/aggbug/86882.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/Ylemzy/" target="_blank">鐏⒊榛?/a> 2009-06-06 00:04 <a href="http://m.shnenglu.com/Ylemzy/articles/86882.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>浜屽弶鏍戠殑SPF闂http://m.shnenglu.com/Ylemzy/articles/85581.html鐏⒊榛?/dc:creator>鐏⒊榛?/author>Sun, 24 May 2009 04:06:00 GMThttp://m.shnenglu.com/Ylemzy/articles/85581.htmlhttp://m.shnenglu.com/Ylemzy/comments/85581.htmlhttp://m.shnenglu.com/Ylemzy/articles/85581.html#Feedback0http://m.shnenglu.com/Ylemzy/comments/commentRss/85581.htmlhttp://m.shnenglu.com/Ylemzy/services/trackbacks/85581.html闃呰鍏ㄦ枃

]]>
鍝堝か鏇兼爲鐩稿叧瀹炵幇http://m.shnenglu.com/Ylemzy/articles/83623.html鐏⒊榛?/dc:creator>鐏⒊榛?/author>Thu, 21 May 2009 15:23:00 GMThttp://m.shnenglu.com/Ylemzy/articles/83623.htmlhttp://m.shnenglu.com/Ylemzy/comments/83623.htmlhttp://m.shnenglu.com/Ylemzy/articles/83623.html#Feedback1http://m.shnenglu.com/Ylemzy/comments/commentRss/83623.htmlhttp://m.shnenglu.com/Ylemzy/services/trackbacks/83623.html
#include<stdio.h>
#define n 10
#define m n * 2 - 1
typedef 
struct
{
    
int weight;
    
int lchild, rchild, parent;
}
HTNode;
typedef HTNode HuffmanTree[m];
HuffmanTree t;

void IniHuffumanTree(HuffmanTree t)//鍒濆鍖栨瘡涓厓绱?nbsp;
{
    
int i;
    
for (i = 0; i < m; i++)
    
{
        t[i].weight 
= 0;
        t[i].lchild 
= t[i].rchild = t[i].parent = -1;
    }

}


void InputWeight(HuffmanTree t)//杈撳叆姣忎釜緇撶偣錛堟爲錛夌殑鏉冨?nbsp;
{
    
int i;
    
for (i = 0; i < n; i++)
    
{
        scanf(
"%d"&t[i].weight);
    }

}

void SelectMin(HuffmanTree t, int i, int *p1, int *p2)//鍦ㄦ.鏋椾腑鎵懼嚭涓や釜鏉冩渶灝忕殑鏍?nbsp;
{
    
int j;
    
int min1, min2;
    min1 
= min2 = -1;
    
for (j = 0; j <= i; j++)
    
{
        
if (t[j].parent == -1)//琛ㄧず鏃犲弻浜茬殑緇撶偣 
        {
            
if (t[j].weight < min1 || min1 == -1)
            
{
                
if (min1 != -1)//鍥犱負t[j].weight < min1錛屽張min2 > min1錛屾晠灝唌in1鐨勭浉鍏蟲暟鎹祴緇檓in2 
                {
                    
*p2 = *p1;
                    min2 
= min1;
                }

                
*p1 = j;
                min1 
= t[j].weight;
            }

            
else if (t[j].weight < min2 || min2 == -1
            
{
                
*p2 = j;
                min2 
= t[j].weight;
            }

        }

    }

}

void CreateHuffmanTree(HuffmanTree t)//鍒涘緩鍝堝か鏇兼爲 
{
    
int i, p1, p2;
    IniHuffumanTree(t);
    InputWeight(t);
    
for (i = n; i < m; i++)
    
{
        SelectMin(t, i 
- 1&p1, &p2);
        t[p1].parent 
= t[p2].parent = i;
        t[i].lchild 
= p1;
        t[i].rchild 
= p2;
        t[i].weight 
= t[p1].weight + t[p2].weight;
    }

}

void Preorder(HuffmanTree t, int j)//瀵瑰搱澶浖鏍戠殑鍓嶅簭閬嶅巻 
{
    
int i = -1, h, stack[50];
    stack[
++i] = h = j;
    
while (h != -1)
    
{
        h 
= stack[i--];
        printf(
"%d ", t[h].weight);
        
if (t[h].rchild != -1)
        
{
            stack[
++i] = t[h].rchild;
        }

        
if (t[h].lchild != -1)
        
{
            stack[
++i] = t[h].lchild;
        }

        
if (i == -1)
        
{
            
return;
        }

    }

}
 

int main()
{
    
int i;
    CreateHuffmanTree(t);
    
for (i = 0; i < m; i++)
    
{
        printf(
"%d ", t[i].weight);
    }

    printf(
"\n");
    Preorder(t, m 
- 1);
    system(
"pause");
    
return 0;
}
        
/*嫻嬭瘯鏁版嵁 
1 2 3 4 5 6 7 8 9 10            
            


]]>
浜屽弶鏍戠浉鍏沖疄鐜?/title><link>http://m.shnenglu.com/Ylemzy/articles/83615.html</link><dc:creator>鐏⒊榛?/dc:creator><author>鐏⒊榛?/author><pubDate>Thu, 21 May 2009 15:04:00 GMT</pubDate><guid>http://m.shnenglu.com/Ylemzy/articles/83615.html</guid><wfw:comment>http://m.shnenglu.com/Ylemzy/comments/83615.html</wfw:comment><comments>http://m.shnenglu.com/Ylemzy/articles/83615.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/Ylemzy/comments/commentRss/83615.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/Ylemzy/services/trackbacks/83615.html</trackback:ping><description><![CDATA[     鎽樿:   #include<stdio.h> #include<stdlib.h> #define MAXSIZE 100 typedef int DATATYPE; int n, countLevel = 0; typedef ...  <a href='http://m.shnenglu.com/Ylemzy/articles/83615.html'>闃呰鍏ㄦ枃</a><img src ="http://m.shnenglu.com/Ylemzy/aggbug/83615.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/Ylemzy/" target="_blank">鐏⒊榛?/a> 2009-05-21 23:04 <a href="http://m.shnenglu.com/Ylemzy/articles/83615.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <a href="http://m.shnenglu.com/">青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品</a> <div style="position:fixed;left:-9000px;top:-9000px;"><font id="pjuwb"></font><button id="pjuwb"><pre id="pjuwb"></pre></button><sub id="pjuwb"></sub><tbody id="pjuwb"><var id="pjuwb"><address id="pjuwb"></address></var></tbody><listing id="pjuwb"><label id="pjuwb"><strong id="pjuwb"></strong></label></listing><wbr id="pjuwb"><small id="pjuwb"><tbody id="pjuwb"></tbody></small></wbr><ins id="pjuwb"><xmp id="pjuwb"></xmp></ins><style id="pjuwb"></style><label id="pjuwb"><em id="pjuwb"><li id="pjuwb"></li></em></label><samp id="pjuwb"></samp><menu id="pjuwb"><input id="pjuwb"></input></menu><pre id="pjuwb"><tbody id="pjuwb"><tfoot id="pjuwb"><button id="pjuwb"></button></tfoot></tbody></pre><form id="pjuwb"></form><i id="pjuwb"><style id="pjuwb"><label id="pjuwb"><sup id="pjuwb"></sup></label></style></i><li id="pjuwb"><table id="pjuwb"><abbr id="pjuwb"></abbr></table></li><video id="pjuwb"></video><dfn id="pjuwb"></dfn><progress id="pjuwb"></progress><strong id="pjuwb"></strong><mark id="pjuwb"></mark><em id="pjuwb"></em><tbody id="pjuwb"><p id="pjuwb"><strike id="pjuwb"><acronym id="pjuwb"></acronym></strike></p></tbody><option id="pjuwb"></option><strike id="pjuwb"></strike><u id="pjuwb"></u><td id="pjuwb"><center id="pjuwb"><tr id="pjuwb"></tr></center></td><em id="pjuwb"><mark id="pjuwb"><em id="pjuwb"><tt id="pjuwb"></tt></em></mark></em><strong id="pjuwb"></strong><wbr id="pjuwb"></wbr><s id="pjuwb"></s><strong id="pjuwb"></strong><legend id="pjuwb"></legend><nav id="pjuwb"></nav><dl id="pjuwb"><th id="pjuwb"><dl id="pjuwb"></dl></th></dl><noframes id="pjuwb"><ins id="pjuwb"></ins></noframes><font id="pjuwb"></font><strike id="pjuwb"><i id="pjuwb"><style id="pjuwb"><label id="pjuwb"></label></style></i></strike><output id="pjuwb"></output><thead id="pjuwb"><pre id="pjuwb"></pre></thead><source id="pjuwb"></source><menuitem id="pjuwb"><wbr id="pjuwb"></wbr></menuitem><pre id="pjuwb"><span id="pjuwb"><pre id="pjuwb"><big id="pjuwb"></big></pre></span></pre><cite id="pjuwb"><fieldset id="pjuwb"><s id="pjuwb"><rt id="pjuwb"></rt></s></fieldset></cite><big id="pjuwb"><progress id="pjuwb"><big id="pjuwb"></big></progress></big><samp id="pjuwb"><delect id="pjuwb"></delect></samp><dl id="pjuwb"></dl><strike id="pjuwb"><nav id="pjuwb"><dl id="pjuwb"><strong id="pjuwb"></strong></dl></nav></strike><tbody id="pjuwb"><b id="pjuwb"><optgroup id="pjuwb"><rp id="pjuwb"></rp></optgroup></b></tbody><em id="pjuwb"></em><xmp id="pjuwb"><blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote></xmp> <i id="pjuwb"><abbr id="pjuwb"><i id="pjuwb"><abbr id="pjuwb"></abbr></i></abbr></i><center id="pjuwb"><acronym id="pjuwb"><center id="pjuwb"></center></acronym></center><pre id="pjuwb"></pre><ul id="pjuwb"><thead id="pjuwb"></thead></ul><blockquote id="pjuwb"><pre id="pjuwb"><sup id="pjuwb"></sup></pre></blockquote><acronym id="pjuwb"></acronym><big id="pjuwb"><s id="pjuwb"></s></big><th id="pjuwb"></th><th id="pjuwb"></th><tbody id="pjuwb"></tbody><thead id="pjuwb"><strike id="pjuwb"></strike></thead><th id="pjuwb"><dl id="pjuwb"><wbr id="pjuwb"></wbr></dl></th><dl id="pjuwb"><strong id="pjuwb"></strong></dl><abbr id="pjuwb"><noframes id="pjuwb"><noscript id="pjuwb"></noscript></noframes></abbr><td id="pjuwb"><ol id="pjuwb"></ol></td><li id="pjuwb"><noscript id="pjuwb"><abbr id="pjuwb"></abbr></noscript></li><small id="pjuwb"><bdo id="pjuwb"><nav id="pjuwb"></nav></bdo></small><style id="pjuwb"></style><optgroup id="pjuwb"><table id="pjuwb"></table></optgroup><center id="pjuwb"><tr id="pjuwb"><dfn id="pjuwb"></dfn></tr></center><th id="pjuwb"></th><u id="pjuwb"></u><tfoot id="pjuwb"><legend id="pjuwb"><i id="pjuwb"></i></legend></tfoot><mark id="pjuwb"></mark><meter id="pjuwb"></meter><nav id="pjuwb"></nav><acronym id="pjuwb"><pre id="pjuwb"><acronym id="pjuwb"><ul id="pjuwb"></ul></acronym></pre></acronym><acronym id="pjuwb"><pre id="pjuwb"><acronym id="pjuwb"><ul id="pjuwb"></ul></acronym></pre></acronym><nobr id="pjuwb"></nobr><sub id="pjuwb"><th id="pjuwb"><menuitem id="pjuwb"><wbr id="pjuwb"></wbr></menuitem></th></sub><thead id="pjuwb"><sub id="pjuwb"></sub></thead><ul id="pjuwb"><address id="pjuwb"><menuitem id="pjuwb"><meter id="pjuwb"></meter></menuitem></address></ul><dfn id="pjuwb"></dfn><pre id="pjuwb"></pre><input id="pjuwb"><cite id="pjuwb"><fieldset id="pjuwb"></fieldset></cite></input><u id="pjuwb"><form id="pjuwb"><u id="pjuwb"></u></form></u><kbd id="pjuwb"><em id="pjuwb"><mark id="pjuwb"></mark></em></kbd><tr id="pjuwb"></tr><del id="pjuwb"><form id="pjuwb"><address id="pjuwb"></address></form></del><tfoot id="pjuwb"><legend id="pjuwb"><ol id="pjuwb"><dl id="pjuwb"></dl></ol></legend></tfoot><menu id="pjuwb"><nobr id="pjuwb"><th id="pjuwb"><nobr id="pjuwb"></nobr></th></nobr></menu><fieldset id="pjuwb"></fieldset><pre id="pjuwb"><blockquote id="pjuwb"><samp id="pjuwb"></samp></blockquote></pre><xmp id="pjuwb"><sup id="pjuwb"><pre id="pjuwb"></pre></sup></xmp><span id="pjuwb"><progress id="pjuwb"></progress></span><font id="pjuwb"></font><var id="pjuwb"><abbr id="pjuwb"></abbr></var><strong id="pjuwb"><label id="pjuwb"><i id="pjuwb"><legend id="pjuwb"></legend></i></label></strong><tr id="pjuwb"><em id="pjuwb"><em id="pjuwb"><output id="pjuwb"></output></em></em></tr><thead id="pjuwb"><strike id="pjuwb"></strike></thead> <acronym id="pjuwb"></acronym><i id="pjuwb"></i><tt id="pjuwb"></tt><rt id="pjuwb"><source id="pjuwb"><rt id="pjuwb"></rt></source></rt><strike id="pjuwb"><acronym id="pjuwb"></acronym></strike><del id="pjuwb"></del><font id="pjuwb"><output id="pjuwb"><ins id="pjuwb"><output id="pjuwb"></output></ins></output></font><kbd id="pjuwb"><tr id="pjuwb"><kbd id="pjuwb"></kbd></tr></kbd><pre id="pjuwb"><sup id="pjuwb"><delect id="pjuwb"><samp id="pjuwb"></samp></delect></sup></pre><samp id="pjuwb"></samp><track id="pjuwb"></track><tr id="pjuwb"></tr><center id="pjuwb"></center><fieldset id="pjuwb"></fieldset><i id="pjuwb"></i><td id="pjuwb"></td><rt id="pjuwb"></rt><object id="pjuwb"></object><pre id="pjuwb"><progress id="pjuwb"><sub id="pjuwb"><thead id="pjuwb"></thead></sub></progress></pre><kbd id="pjuwb"><tr id="pjuwb"><option id="pjuwb"></option></tr></kbd><output id="pjuwb"><ins id="pjuwb"></ins></output><ol id="pjuwb"></ol><source id="pjuwb"></source><strong id="pjuwb"></strong><ruby id="pjuwb"></ruby><sub id="pjuwb"><meter id="pjuwb"><menuitem id="pjuwb"><meter id="pjuwb"></meter></menuitem></meter></sub><pre id="pjuwb"></pre><center id="pjuwb"></center><tr id="pjuwb"><tbody id="pjuwb"><xmp id="pjuwb"><dd id="pjuwb"></dd></xmp></tbody></tr><video id="pjuwb"></video><pre id="pjuwb"></pre><form id="pjuwb"><optgroup id="pjuwb"></optgroup></form><samp id="pjuwb"></samp><kbd id="pjuwb"></kbd><strong id="pjuwb"><option id="pjuwb"></option></strong><object id="pjuwb"></object><abbr id="pjuwb"><noframes id="pjuwb"><abbr id="pjuwb"></abbr></noframes></abbr><ul id="pjuwb"><del id="pjuwb"><button id="pjuwb"><pre id="pjuwb"></pre></button></del></ul><abbr id="pjuwb"></abbr><strong id="pjuwb"><code id="pjuwb"><strong id="pjuwb"></strong></code></strong><option id="pjuwb"></option><optgroup id="pjuwb"><bdo id="pjuwb"><code id="pjuwb"></code></bdo></optgroup><mark id="pjuwb"><em id="pjuwb"><font id="pjuwb"></font></em></mark><acronym id="pjuwb"><code id="pjuwb"></code></acronym><dl id="pjuwb"></dl><em id="pjuwb"></em><object id="pjuwb"><input id="pjuwb"><object id="pjuwb"></object></input></object><output id="pjuwb"><dd id="pjuwb"></dd></output><option id="pjuwb"><button id="pjuwb"><option id="pjuwb"></option></button></option><small id="pjuwb"></small></div> <a href="http://wwwsao117.com" target="_blank">欧美日韩国产999</a>| <a href="http://playav111.com" target="_blank">欧美一区二区三区的</a>| <a href="http://miaoxp.com" target="_blank">欧美成人蜜桃</a>| <a href="http://5773000.com" target="_blank">久久三级视频</a>| <a href="http://05ec.com" target="_blank">久久嫩草精品久久久精品</a>| <a href="http://syfeichi.com" target="_blank">国产精品日日摸夜夜添夜夜av</a>| <a href="http://www520590.com" target="_blank">亚洲精品一二区</a>| <a href="http://388268.com" target="_blank">一区二区三区四区五区视频</a>| <a href="http://83mmmm.com" target="_blank">亚洲一区在线免费</a>| <a href="http://chukewang.com" target="_blank">欧美在线播放视频</a>| <a href="http://fuwu56.com" target="_blank">免费一级欧美在线大片</a>| <a href="http://taikonghua.com" target="_blank">欧美连裤袜在线视频</a>| <a href="http://qiaoka526.com" target="_blank">国产精品麻豆va在线播放</a>| <a href="http://32m8.com" target="_blank">国内一区二区三区在线视频</a>| <a href="http://mengmujia.com" target="_blank">最新亚洲一区</a>| <a href="http://278263.com" target="_blank">欧美在线视频一区</a>| <a href="http://0370city.com" target="_blank">欧美福利电影网</a>| <a href="http://baigoso.com" target="_blank">一区二区三区日韩精品</a>| <a href="http://www-485050.com" target="_blank">久久电影一区</a>| <a href="http://ythbhg.com" target="_blank">国产精品成人在线观看</a>| <a href="http://xjksrbh.com" target="_blank">在线日韩中文</a>| <a href="http://zhongrenma.com" target="_blank">欧美一级网站</a>| <a href="http://a718sx.com" target="_blank">最新精品在线</a>| <a href="http://by4433.com" target="_blank">亚洲老司机av</a>| <a href="http://ttzbdl.com" target="_blank">玖玖玖国产精品</a>| <a href="http://hellomusiczone.com" target="_blank">国产精品九九久久久久久久</a>| <a href="http://322033.com" target="_blank">亚洲第一网站</a>| <a href="http://exsecular.com" target="_blank">午夜精品久久久久久久蜜桃app</a>| <a href="http://zhuankee.com" target="_blank">美女久久网站</a>| <a href="http://www-18873.com" target="_blank">亚洲伊人色欲综合网</a>| <a href="http://fsdashen.com" target="_blank">欧美国产视频日韩</a>| <a href="http://javdb04.com" target="_blank">国产真实久久</a>| <a href="http://0934photo.com" target="_blank">香蕉国产精品偷在线观看不卡</a>| <a href="http://v58q.com" target="_blank">欧美国产在线视频</a>| <a href="http://cnxwlm.com" target="_blank">欧美亚洲视频在线看网址</a>| <a href="http://4534com.com" target="_blank">欧美三级视频</a>| <a href="http://luqintang.com" target="_blank">亚洲欧洲一区二区在线播放</a>| <a href="http://wewe520.com" target="_blank">欧美伊人久久</a>| <a href="http://www-222kkk.com" target="_blank">亚洲无线视频</a>| <a href="http://chinasck.com" target="_blank">欧美涩涩网站</a>| <a href="http://gzw33.com" target="_blank">日韩视频在线一区</a>| <a href="http://tv-miya188.com" target="_blank">裸体一区二区</a>| <a href="http://ztsctgs.com" target="_blank">亚洲主播在线播放</a>| <a href="http://jxjx11.com" target="_blank">欧美视频一二三区</a>| <a href="http://17oooo.com" target="_blank">日韩视频在线永久播放</a>| <a href="http://521nb.com" target="_blank">欧美高清影院</a>| <a href="http://go1818.com" target="_blank">久久中文欧美</a>| <a href="http://konwoosh.com" target="_blank">在线播放豆国产99亚洲</a>| <a href="http://339871.com" target="_blank">久久久免费精品</a>| <a href="http://cz-sensor.com" target="_blank">亚洲女与黑人做爰</a>| <a href="http://77smsm.com" target="_blank">国产精品美女久久久久av超清</a>| <a href="http://8x1080x.com" target="_blank">99精品欧美一区二区蜜桃免费</a>| <a href="http://05511253.com" target="_blank">欧美顶级大胆免费视频</a>| <a href="http://233116.com" target="_blank">欧美一区二区在线看</a>| <a href="http://dehuabz.com" target="_blank">国产精品乱子乱xxxx</a>| <a href="http://2456yo.com" target="_blank">亚洲永久视频</a>| <a href="http://236664.com" target="_blank">中文高清一区</a>| <a href="http://www-137999.com" target="_blank">欧美特黄视频</a>| <a href="http://592xyy.com" target="_blank">亚洲主播在线</a>| <a href="http://033232.com" target="_blank">一区二区精品在线</a>| <a href="http://9511331.com" target="_blank">欧美日韩成人在线观看</a>| <a href="http://wwwyinyinai149.com" target="_blank">亚洲日本成人女熟在线观看</a>| <a href="http://18av-2.com" target="_blank">免费亚洲电影</a>| <a href="http://miaoxp.com" target="_blank">在线视频你懂得一区二区三区</a>| <a href="http://cp3824.com" target="_blank">国自产拍偷拍福利精品免费一</a>| <a href="http://270909.com" target="_blank">亚洲欧美日韩精品久久亚洲区</a>| <a href="http://798814.com" target="_blank">美女视频网站黄色亚洲</a>| <a href="http://aqd1t.com" target="_blank">亚洲女ⅴideoshd黑人</a>| <a href="http://bbww55.com" target="_blank">国产精品日韩在线一区</a>| <a href="http://my6557.com" target="_blank">欧美一区在线直播</a>| <a href="http://www901aaa.com" target="_blank">午夜免费在线观看精品视频</a>| <a href="http://989p.com" target="_blank">国产精品一区二区你懂的</a>| <a href="http://345521.com" target="_blank">欧美影片第一页</a>| <a href="http://anxingou365.com" target="_blank">欧美在线一区二区</a>| <a href="http://wawabt.com" target="_blank">在线观看欧美一区</a>| <a href="http://039658.com" target="_blank">欧美激情中文不卡</a>| <a href="http://xiehaihua.com" target="_blank">欧美国产一区二区三区激情无套</a>| <a href="http://www979vv.com" target="_blank">亚洲美女在线一区</a>| <a href="http://www149aa.com" target="_blank">一本色道久久</a>| <a href="http://ktokt.com" target="_blank">国产亚洲网站</a>| <a href="http://khc83.com" target="_blank">亚洲承认在线</a>| <a href="http://ll992.com" target="_blank">国产精品国产三级国产专区53 </a>| <a href="http://ddnwater.com" target="_blank">欧美v亚洲v综合ⅴ国产v</a>| <a href="http://787282.com" target="_blank">亚洲激情网站</a>| <a href="http://www344399.com" target="_blank">日韩视频在线一区</a>| <a href="http://74va.com" target="_blank">国产精品网站一区</a>| <a href="http://avtbr123.com" target="_blank">久久琪琪电影院</a>| <a href="http://rxbbei.com" target="_blank">欧美高清在线视频</a>| <a href="http://www47755.com" target="_blank">亚洲影院高清在线</a>| <a href="http://yw3329.com" target="_blank">久久精品男女</a>| <a href="http://aydsrmyy.com" target="_blank">一区二区三区国产</a>| <a href="http://2589999.com" target="_blank">性做久久久久久</a>| <a href="http://jinlijun.com" target="_blank">亚洲欧洲另类</a>| <a href="http://htzhuanli.com" target="_blank">亚洲免费一级电影</a>| <a href="http://www224558.com" target="_blank">亚洲国产精品久久久</a>| <a href="http://969093.com" target="_blank">一区二区三区四区蜜桃</a>| <a href="http://timonna.com" target="_blank">在线观看亚洲视频啊啊啊啊</a>| <a href="http://69ru.com" target="_blank">99综合在线</a>| <a href="http://yeyesaoqi.com" target="_blank">加勒比av一区二区</a>| <a href="http://605012.com" target="_blank">一本色道久久88综合日韩精品</a>| <a href="http://maokk88.com" target="_blank">狠狠色综合网站久久久久久久</a>| <a href="http://777888789.com" target="_blank">91久久综合亚洲鲁鲁五月天</a>| <a href="http://mmmm43.com" target="_blank">国产亚洲毛片在线</a>| <a href="http://www57669.com" target="_blank">毛片一区二区三区</a>| <a href="http://668756.com" target="_blank">亚洲综合日本</a>| <a href="http://xw4433.com" target="_blank">欧美v国产在线一区二区三区</a>| <a href="http://337795.com" target="_blank">亚洲欧美成人</a>| <a href="http://wy172.com" target="_blank">韩日欧美一区二区</a>| <a href="http://wwwwy9001.com" target="_blank">亚洲精品久久久久久一区二区</a>| <a href="http://909059c.com" target="_blank">国产精品人人做人人爽人人添</a>| <a href="http://677968.com" target="_blank">免费在线看一区</a>| <a href="http://www-232323.com" target="_blank">国产精品美女主播在线观看纯欲</a>| <a href="http://770456.com" target="_blank">你懂的视频欧美</a>| <a href="http://xxxyyy168.com" target="_blank">国产精品一级久久久</a>| <a href="http://www01614.com" target="_blank">亚洲日本va在线观看</a>| <a href="http://wallypanel.com" target="_blank">黄色成人小视频</a>| <a href="http://daqinhkvip.com" target="_blank">亚洲一区国产</a>| <a href="http://3344xo.com" target="_blank">亚洲一级网站</a>| <a href="http://myasker.com" target="_blank">欧美精品一区二区三区一线天视频</a>| <a href="http://543422.com" target="_blank">久久深夜福利</a>| <a href="http://888nei.com" target="_blank">日韩一级黄色大片</a>| <a href="http://www515678.com" target="_blank">欧美成人蜜桃</a>| <a href="http://17ccem.com" target="_blank">国产片一区二区</a>| <a href="http://987kt.com" target="_blank">一区二区三区回区在观看免费视频</a>| <a href="http://www330849.com" target="_blank">亚洲国产精品v</a>| <a href="http://xingmaokeji.com" target="_blank">欧美中文字幕视频</a>| <a href="http://6u6uuu666.com" target="_blank">羞羞答答国产精品www一本</a>| <a href="http://zyjzz.com" target="_blank">欧美日韩在线免费视频</a>| <a href="http://www-136445.com" target="_blank">欧美黑人多人双交</a>| <a href="http://sewuyueyue.com" target="_blank">在线观看日韩av电影</a>| <a href="http://hh474.com" target="_blank">久久九九全国免费精品观看</a>| <a href="http://qhzyxcd.com" target="_blank">欧美中文在线观看国产</a>| <a href="http://wilcherish.com" target="_blank">国产精品有限公司</a>| <a href="http://northboiler.com" target="_blank">亚洲欧美激情在线视频</a>| <a href="http://2jjzz.com" target="_blank">小处雏高清一区二区三区</a>| <a href="http://92ebook.com" target="_blank">欧美日韩在线看</a>| <a href="http://hkbsi.com" target="_blank">夜夜嗨av一区二区三区四区</a>| <a href="http://uu774.com" target="_blank">在线视频你懂得一区</a>| <a href="http://5cok.com" target="_blank">欧美日韩在线三级</a>| <a href="http://essuee.com" target="_blank">99精品欧美一区</a>| <a href="http://www-787788.com" target="_blank">中文精品视频</a>| <a href="http://66636by.com" target="_blank">国产精品av久久久久久麻豆网</a>| <a href="http://638179.com" target="_blank">亚洲精品韩国</a>| <a href="http://xtgoldsky.com" target="_blank">一区二区冒白浆视频</a>| <a href="http://wwwq4yy.com" target="_blank">欧美日韩午夜激情</a>| <a href="http://xsxcn.com" target="_blank">好吊成人免视频</a>| <a href="http://www4455va.com" target="_blank">久久福利资源站</a>| <a href="http://83mmmm.com" target="_blank">欧美国产日韩xxxxx</a>| <a href="http://www36633.com" target="_blank">日韩午夜精品</a>| <a href="http://by99969.com" target="_blank">国产精品久久久久av</a>| <a href="http://2cc8.com" target="_blank">欧美一级成年大片在线观看</a>| <a href="http://yjizzdizhigmail.com" target="_blank">久久国产精品久久w女人spa</a>| <a href="http://kkwwxx.com" target="_blank">伊人春色精品</a>| <a href="http://hnluvlux.com" target="_blank">欧美欧美在线</a>| <a href="http://687989.com" target="_blank">亚洲欧美国产va在线影院</a>| <a href="http://7v51.com" target="_blank">欧美在线视频观看免费网站</a>| <a href="http://628155.com" target="_blank">一区视频在线播放</a>| <a href="http://017492.com" target="_blank">欧美不卡福利</a>| <a href="http://sxxawef.com" target="_blank">一区二区三区久久精品</a>| <a href="http://cnc800.com" target="_blank">久久精品视频免费观看</a>| <a href="http://520637.com" target="_blank">亚洲电影自拍</a>| <a href="http://854277.com" target="_blank">欧美四级伦理在线</a>| <a href="http://124909.com" target="_blank">欧美综合二区</a>| <a href="http://123086.com" target="_blank">亚洲狼人精品一区二区三区</a>| <a href="http://kanzhelu31.com" target="_blank">亚洲欧美视频一区</a>| <a href="http://305838.com" target="_blank">国产亚洲一区二区精品</a>| <a href="http://wb2014.com" target="_blank">免播放器亚洲</a>| <a href="http://mkaqiu.com" target="_blank">一区二区三区国产精华</a>| <a href="http://uu6623.com" target="_blank">久久性天堂网</a>| <a href="http://www11111111.com" target="_blank">av不卡在线观看</a>| <a href="http://211186.com" target="_blank">欧美午夜一区</a>| <a href="http://by56677.com" target="_blank">久久久久国产精品麻豆ai换脸</a>| <a href="http://spyfaw.com" target="_blank">亚洲韩国青草视频</a>| <a href="http://gzhachi.com" target="_blank">亚洲欧美成人一区二区在线电影</a>| <a href="http://cabenn.com" target="_blank">国产亚洲欧美一级</a>| <a href="http://shiselol.com" target="_blank">久久嫩草精品久久久精品</a>| <a href="http://esdzu.com" target="_blank">亚洲精品国产精品国自产观看浪潮</a>| <a href="http://caoliu2022.com" target="_blank">亚洲小视频在线</a>| <a href="http://dy25777.com" target="_blank">国内精品一区二区三区</a>| <a href="http://www3344uh.com" target="_blank">欧美激情视频网站</a>| <a href="http://trhht.com" target="_blank">欧美一区二区三区在线播放</a>| <a href="http://d1112.com" target="_blank">亚洲电影免费观看高清完整版在线</a>| <a href="http://961318.com" target="_blank">亚洲午夜国产成人av电影男同</a>| <a href="http://666043.com" target="_blank">久久久天天操</a>| <a href="http://xprinter3d.com" target="_blank">999亚洲国产精</a>| <a href="http://www-493049.com" target="_blank">欧美在线视频全部完</a>| <a href="http://521nb.com" target="_blank">午夜激情综合网</a>| <a href="http://340996.com" target="_blank">亚洲美女一区</a>| <a href="http://by4672.com" target="_blank">国产日韩欧美电影在线观看</a>| <a href="http://xxxbobba.com" target="_blank">欧美一区二区三区啪啪</a>| <a href="http://3333328.com" target="_blank">久久综合色一综合色88</a>| <a href="http://kgg93.com" target="_blank">日韩午夜电影在线观看</a>| <a href="http://aqdit2022.com" target="_blank">久久成人一区二区</a>| <a href="http://xxxx90.com" target="_blank">亚洲日本黄色</a>| <a href="http://hnjlhgw.com" target="_blank">伊甸园精品99久久久久久</a>| <a href="http://www-477499.com" target="_blank">欧美日韩在线直播</a>| <a href="http://scratbag.com" target="_blank">久久亚洲不卡</a>| <a href="http://lovehefei.com" target="_blank">久久成人国产</a>| <a href="http://xxxxxdywvip18.com" target="_blank">夜夜夜久久久</a>| <a href="http://123086.com" 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>