锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲第一永久AV网站久久精品男人的天堂AV ,精品无码久久久久久国产,久久亚洲私人国产精品vAhttp://m.shnenglu.com/windreamer/category/495.html<b>main(){main(puts(<font color=brown>"Hello,stranger!"</font>));}</b>zh-cnTue, 20 May 2008 23:58:47 GMTTue, 20 May 2008 23:58:47 GMT60[TAOCP鏉傝皥]鎴戠殑鎵捐尙淇℃湁浜?jiǎn)鍥為煶鈥︹?/title><link>http://m.shnenglu.com/windreamer/archive/2005/12/16/1814.html</link><dc:creator>Windreamer Is Not DREAMER</dc:creator><author>Windreamer Is Not DREAMER</author><pubDate>Fri, 16 Dec 2005 02:05:00 GMT</pubDate><guid>http://m.shnenglu.com/windreamer/archive/2005/12/16/1814.html</guid><wfw:comment>http://m.shnenglu.com/windreamer/comments/1814.html</wfw:comment><comments>http://m.shnenglu.com/windreamer/archive/2005/12/16/1814.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://m.shnenglu.com/windreamer/comments/commentRss/1814.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/windreamer/services/trackbacks/1814.html</trackback:ping><description><![CDATA[<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"> <P><SPAN style="FONT-SIZE: larger"><B>Is it a mistake in TAOCP</B></SPAN>   <BR><SPAN id=_user_mam@theory.stanford.edu>Maggie McLoughlin</SPAN> <FONT color=#00681c><mam@theory.stanford.edu></FONT> to Windreamer<BR><BR></P> <div class="46oqa2e" id=mb_1>Sequences with n=0 are empty. It's important in mathematics<BR>to deal with empty sets and strings etc in a meaningful way.<BR>If n = 0 and you're supposed to do something for 1 <= j <= n,<BR>you don't have to do anything.<BR><BR>Thanks for your interest in my book! -- Don Knuth<BR></DIV></BLOCKQUOTE> <HR> 鍛靛懙錛屽師鏉ユ槸鎴戝勾灝戞棤鐭ヤ簡(jiǎn)錛屽啀嬈¤禐涓涓婯nuth鐖風(fēng)埛鍐欎功鐨勭簿鑷?img src ="http://m.shnenglu.com/windreamer/aggbug/1814.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/windreamer/" target="_blank">Windreamer Is Not DREAMER</a> 2005-12-16 10:05 <a href="http://m.shnenglu.com/windreamer/archive/2005/12/16/1814.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>[TAOCP鏉傝皥]絎竴澶╋紝絎竴绔犵涓鑺傦紝涓涓柊寮濮?.....http://m.shnenglu.com/windreamer/archive/2005/12/12/1703.htmlWindreamer Is Not DREAMERWindreamer Is Not DREAMERMon, 12 Dec 2005 13:48:00 GMThttp://m.shnenglu.com/windreamer/archive/2005/12/12/1703.htmlhttp://m.shnenglu.com/windreamer/comments/1703.htmlhttp://m.shnenglu.com/windreamer/archive/2005/12/12/1703.html#Feedback3http://m.shnenglu.com/windreamer/comments/commentRss/1703.htmlhttp://m.shnenglu.com/windreamer/services/trackbacks/1703.html

瑕佽鐨勮瘽濂藉錛屽垪涓彁綰插厛


TAOCP鍒濊鎰熷彈

        銆奣he Art of Computer Programming銆?/STRONG>鐨勭涓鍗?澶х悊鐭寵姳綰圭殑灝佺毊,鎷垮湪鎵嬮噷娌夌敻鐢哥殑,榪欓儴涔︾粰鎴戠殑絎竴鍗拌薄灝辨槸榪欐牱--"鍘氶噸"--甯︽湁鐫紲炵鎰熷拰鍘嗗彶鎰熴?BR>
        鍏跺疄榪欓儴涔︾殑涓枃鐗堝墠璦,鎴戞棭灝辨湁騫告嫓璇昏繃,涓嶈繃鍜岃嫳鏂囧師鏂囩浉姣旇緝,鍦ㄤ腑鏂囩炕璇戠殑鍛抽亾鐪熺殑鏄樊浜?jiǎn)寰堝锛屾垜瑙夊緱鍙湁璇诲師鏂囨墠鑳芥劅鍒癒nuth鐣ュ甫璇欒皭鐨勮屽張鍚屾槸涓嶆槸涓ヨ皚鐨勯鏍鹼紝浠栧啓鏂囩珷鐨勯鏍煎叾瀹炵湡鐨勬尯澶╅┈琛岀┖鐨勶紝浠庡啓紼嬪簭鎵埌鍋氶キ錛屼粠綆楁硶榪欎釜璇嶈亰璧鳳紝榪界潃榪欎釜璇嶇殑鏉ュ巻錛岀珶鐒惰繕甯﹀嚭浜?jiǎn)鑾卞竷灏艰尐锛熺湡鏅曞Q屽紑鍙ョ帺絎戯紝Knuth緇濆鏄偅縐嶈侀〗绔ュ瀷鐨勪漢鐗╋紝浠栬繖鏈功杈懼埌濡傛鍘氬害浼拌姝ょ被"搴熻瘽"鍔熶笉鍙病銆?BR>
        浠嶢lgorithm鍒癊uclid's Algorithm涔熷氨鏄垜浠啛鎮(zhèn)夌殑杈楄漿鐩擱櫎姹傛渶澶у叕綰︽暟娉曪紝鎴戣繖涓畻娉曞皬鐧藉紑濮嬭繘鍏ヤ簡(jiǎn)浠栨墦寮鐨勭畻娉曚笘鐣?.....

        Knuth琛屾枃寰堝枩嬈㈡瘮杈冦佹瘮鍠匯佸姣旓紝榪欒璇昏呯湅璧鋒潵寰堣交鏉炬剦鎮(zhèn)︼紝涓嶈繃褰撲粬鐪熺殑鐜╄搗鏁板鏉ワ紝鎴戝氨鏈夌偣鍚冧笉娑堜簡(jiǎn)錛屾渶鍚庨潰瀵圭畻娉曠殑涓涓艦寮忓寲鎻忚堪錛屾秷鑰椾簡(jiǎn)鎴戜笉灝戠簿鍔涳紝涓嶈繃鐩墠鐪嬫潵榪樻槸澶ц嚧鏄庣櫧浜?IMG height=20 src="http://m.shnenglu.com/Emoticons/QQ/14.gif" width=20 border=0>

         鎬諱箣錛岃繖鏈洓鍚嶄箣涓嬬殑涔︼紝涔熺殑紜湁寰堝鐙埌鐨勫湴鏂癸紝浣滀負(fù)璁$畻鏈虹瀛﹂鍩熺殑鍙茶瘲錛屽畠緇欐垜鐨勭涓鍗拌薄鐨勭‘寰堟銆傚笇鏈涙垜鑳藉潥鎸佺潃鐪嬩笅鍘伙紝浠庝腑鍚告敹钀ュ吇銆?BR>



浠婂ぉ鐨勬敹鑾?/STRONG>

           铏界劧鍙湅浜?jiǎn)涓鑺傦紝涓嶈繃涔熸秷鑰椾簡(jiǎn)鎴戜笉灝戠殑鏃墮棿鍜岀簿鍔涳紙鐪嬫潵鍒殑涓浜涗簨鎯呬篃涓嶈兘澶借錛屼篃瑕佹姄绱т簡(jiǎn)錛?BR>
            浠婂ぉ鐨勬敹鑾峰緢澶氾紝棣栧厛瀵圭畻娉曡繖涓悕璇嶆湁浜?jiǎn)鏇村涓浜涚殑鎰熸ц璇嗭紝Knuth鎻愬嚭鐨勨滄湁闄愩佹槑紜畾涔夈佹湁杈撳叆銆佹湁杈撳嚭銆佹湁鏁堢巼鈥濊繖鍑犱釜鍘熷垯鎬葷粨寰楃湡鏄笉閿欙紝灝ゅ叾鏈鍓嶉潰鐨勪袱鐐瑰拰鏁堢巼闂錛屽線寰鏋勬垚浜?jiǎn)寰堝澶嶆潅鐨勯棶棰樺Q岃憲鍚嶇殑鍥劇伒鏈哄仠鏈洪棶棰樺ぇ姒傚氨鏄湪璇磋繖涓棶棰樺惂鈥︹?BR>
            鍙﹀瀵逛簬杈楄漿鐩擱櫎娉曠殑涓浜涙暟瀛︿笂鐨勬帹瀵間篃緇欎簡(jiǎn)鎴戜笉閿欑殑鎰熻錛岃櫧鐒朵功涓婃病鏈夋槑紜殑緇欎竴涓弗鏍肩殑璇佹槑錛屼絾鏄牴鎹粬鐨勫彊榪版垜椹笂灝變綋浼?xì)鍒颁簡(jiǎn)鐢ㄦ瘮杈冧弗鏍肩殑鏂规硶濡備綍鍐櫂q欎釜璇佹槑錛屼互鍙?qiáng)杩欎釜璇佹槑鐨勫叧閿偣锛堟垜瑙夊緱璇佹槑涓叾瀹炵敤鍒颁簡(jiǎn)閫氳繃鍙屽寘鍚潵浜夌浉絳夌殑鎵嬫硶錛岃繖涓槸鍏抽敭錛?BR>
            綆楁硶鐨勫艦寮忓寲鎻忚堪搴旇搗浜?jiǎn)鎴戝ぇ鐨勫叴瓒eQ屽洖鏉ョ殑璺笂鎯籌紝璨屼技榪欎釜濂藉儚褰㈡垚浜?jiǎn)鏌惪U嶆暟瀛︾粨鏋勶紝鑰屽叾涓婄殑f鏄犲皠錛屾瀯鎴愪簡(jiǎn)鏌愮浠f暟緇撴瀯錛屾病鏈変粩緇嗘兂榪囷紝涓嶈繃濂藉儚鏄繖鏍峰瓙鐨勫摝錛屾垜瑙夊緱璨屼技綆楁硶鐨勬湰璐ㄥ氨鏄煇縐嶈嚜鍔ㄧ姸鎬佹満錛屽彧涓嶈繃涓嶄竴瀹氭槸鏈夐檺鐘舵佺殑鍚э紝鑷沖皯浠庝粬鐨勬剰鎬濅笂鐪嬫槸榪欐牱鐨?BR>
            寮濮嬫病鏈夌悊瑙g浜屼釜錛屽姞涓婁簡(jiǎn)鏁堢巼綰︽潫鐨勭殑褰㈠紡鍖栬〃杈炬柟娉曠殑鎰忔濓紝鍚庢潵鑺變簡(jiǎn)鐐規(guī)椂闂寸湅浜?jiǎn)涓婨x1.1.8,鎴戣寰楁垜浼間箮鏄庣櫧浜?jiǎn)鐐?BR>
鎴戣涓篍x1.1.8鏄繖鏍風(fēng)殑涓涓姸鎬佽〃

            

j Theta_j Phi_j a_j b_j
0 a a 5 1
1 ab c 3 2
2 bc cb 1 2
3 b a 4 3
4 c b 0 4
5 c c 5 5

        涓轟簡(jiǎn)楠岃瘉錛屾垜鍐欎簡(jiǎn)涓畝鍗曠殑紼嬪簭鏉ヨ瘯楠屾垜鐨勭姸鎬佽〃錛堢湡鏄笉琛屼簡(jiǎn)錛屽ソ澶氫笢瑗胯緲葷湅鎵嬪唽錛屽啓紼嬪簭鐨勯熷害鎬繪槸涓婁笉鏉ワ級(jí)

 1#include    <iostream>
 2#include    <string>
 3
 4using namespace std;
 5int main ( int argc, char *argv[] )
 6{
 7    //                   0,     1,     2,     3,     4,     5
 8    string theta[]={   "a",  "ab",  "cb",      "b",   "c",   "c"};
 9    string phi  []={   "a",   "c",  "bc",    "a",   "b",   "c"};
10    int    a    []={     5,     3,     1,     4,     0,     5};
11    int    b    []={     1,     2,     2,     3,     4,     5};
12
13    int j=0;
14    int i=0;
15    string stat;
16    getline (cin,stat);
17    while(true)
18    {
19        unsigned int loc=stat.find(theta[j],0);
20        if (loc==string::npos)
21        {
22            j=a[j];
23        }

24        else
25        {
26            string temp=stat.substr(0,loc)+phi[j]+stat.substr(loc+theta[j].length());
27            stat=temp;
28            j=b[j];
29        }

30        cout<<i++<<":\tj("<<j<<")\tloc("<<loc<<")\t"<<stat<<endl;
31        cin.get();
32    }

33    return EXIT_SUCCESS;
34}
                /* ----------  end of function main  ---------- */
35


         鏈鍚庝竴瀹氳鎻愮殑鏄紝鎴戝ソ鍍忓彂鐜頒簡(jiǎn)涔﹂噷鐨勪竴澶勫皬Bug錛岃屼笖濂藉儚瀹樻柟緗戠珯閲岀殑Errata閲岄潰娌℃湁榪欎釜錛堜腑鏂囩増鍚屾牱鏈夎繖涓棶棰橈級(jí)錛屾垜宸茬粡鍐欎俊緇橩nuth浜?jiǎn)锛屽笇鏈涙垜鏄湡鐨勬墤謭颁簡(jiǎn)涓涓病浜哄彂鐜扮殑Bug鍟婏紙鍏跺疄鎴戠煡閬撹繖涓笉鍙兘錛?BR>



鍏充簬Galgo搴撶殑"鐬庢兂"

         蹇靛彣鍋氫竴涓硾鍨嬬殑綆楁硶搴撳凡緇忔湁濂介暱鏃墮棿浜?jiǎn)锛屾垜瑙夊緱杩欎釜浜嬫儏涓庡叾涓鐩磋繖涔圷Y錛岃繕?shù)笉濡傞珮鍏翠簡(jiǎn)灏卞啓涓鐐癸紝涓嶉珮鍏達(dá)紝灝辨墧鐫,

         鍏跺疄錛岃繖涓笘鐣屾槸涓嶇己娉涘瀷綆楁硶搴撶殑錛孲TL錛孊oost錛孊litz++涓殑娉涘瀷綆楁硶寰堝叏闈簡(jiǎn)錛屾垜鐨勮鍒掓槸鎶婁粬浠腑闂寸己灝戠殑閮ㄥ垎琛ヨ搗鏉ワ紝涓嶈兘浜掓搷浣滅殑鍦版柟綺樺悎璧鋒潵錛屽啀鏈夊氨鏄鍔犲MetaProgramming鐨勬敮鎸?BR>         鍛靛懙錛屽簲璇ヨ繕綆楁槸涓涓瘮杈冮泟浼熺殑璁″垝鍚?BR>         鎴戝笇鏈涜繖濂楀簱鑳藉敖鍙兘鐨勯珮鏁堢巼銆佸鏄撲嬌鐢ㄣ佸悓浜嬩繚璇佸畨鍏紝鐞嗘兂鐨勫鍦版槸鑳藉浠f浛ACM闆嗚闃熶嬌鐢ㄧ殑妯″潡

         鐩墠鎴戠殑璁炬兂鏄暣涓簱鏀懼湪Galgo榪欎釜namespace閲岋紝榪欎釜namespace鍒嗕負(fù)涓や釜瀛恘amespace錛屽垎鍒槸娉涘瀷綆楁硶Generic鍜屽厓緙栫▼綆楁硶Meta

          鎴戣寰楄繖鏍蜂竴涓簱鐨勫緩绔嬩笌緇存姢錛屼換閲嶈岄亾榪滀笉璇達(dá)紝娌″噯鍓嶄漢宸茬粡浣滆繃360閬嶄簡(jiǎn)錛屼笉榪囨病鍏崇郴錛屾潈褰撳ū涔愪簡(jiǎn)銆?BR>


First Step鈥斺擡uclid GCD鐨勪竴涓疄鐜?


           涓嶈浠涔堝簾璇濅簡(jiǎn)錛屽厛璐翠唬鐮侊細(xì)
 1//-------------------------------BEGIN:GAlgo_Euclid_GCD.hpp--------------------------//
 2#ifndef _GAlgo_Euclid_GCD_H_
 3#define _GAlgo_Euclid_GCD_H_
 4namespace GAlgo
 5{
 6    namespace Generic
 7    {
 8        template <typename T>
 9        T Euclid_GCD(const T& a,const T& b)
10        {
11            return ((a%b)==0)?b:Euclid_GCD(b,a%b);
12        }

13    }

14    namespace Meta
15    {
16        template <int A,int B>
17        struct Euclid_GCD
18        {
19            static const int value=Euclid_GCD<B,A%B>::value;
20        }
;
21
22        template <int A>
23        struct Euclid_GCD<A,0>
24        {
25            static const int value=A;
26        }
;
27    }

28}

29#endif
30
31//-------------------------------END:GAlgo_Euclid_GCD.hpp--------------------------//

         搴旇娌′粈涔堝ソ璇寸殑錛屾瘮杈冧腑瑙勪腑鐭╋紝甯歌鎵嬫硶錛屼笉榪囨牴鎹甌AOCP涓婄殑璇存硶錛屽彲鑳藉湪鏌愪簺m錛宯鐨勫彇鍊間笂闇瑕佸緢澶氶噸鐨勯掑綊榪欐椂鍊橫eta鐨勬柟娉曞彲鑳戒細(xì)閬囧埌鍥伴毦錛堝叾瀹炵涓縐嶄篃鏈夎繍琛屾椂鍫嗘爤婧㈠嚭鐨勫嵄闄╋級(jí)錛屾墍浠ヨ鈥︹﹁浠涔堝ソ鍛紝灝辮繖鏍蜂簡(jiǎn)

涓嬮潰鏄釜綆鍗曠殑嫻嬭瘯
 1#include "GAlgo_Euclid_GCD.hpp" 
 2#include <iostream>
 3using namespace std;
 4int main()
 5{
 6    cout<<GAlgo::Generic::Euclid_GCD(6,9)<<endl;
 7    cout<<GAlgo::Meta::Euclid_GCD<6,9>::value<<endl;
 8    return 0;
 9}

10



涓漢瑙夊緱浠婂悗鏈夌爺絀朵環(huán)鍊肩殑鏂瑰悜

         鎴戣寰楀浜庣畻娉曟弿榪板拰鍥劇伒鏈恒佹湁闄愮姸鎬佹満銆佷互鍙?qiáng)闅愰殣绾U︽垜鐪嬪埌鐨勯┈灝?dāng)绉戝か鐨勬煇浜涘伐浣滃Q堥┈灝?dāng)绉戝か閾惧Q変箣闂寸殑鍏崇郴娣卞叆鎸栨帢?shù)竴涓嬪簲璇ヤ細(xì)鏈変笉灝戞敹鑾鳳紝閭d釜鎴戝榪欎釜闂鍙兘浼?xì)鏈変竴涓暟瀛︾粨鏋勭殑鐚滄兂浼拌涔熷彲鑳藉彲浠ュ湪榪欎釜鏂瑰悜涓婅瘉瀹炴垨璇佷吉鈥︹?BR>         紿佺劧鎯沖幓鍚戝伓鍍忛粍鍏嗛晣璇鋒暀涓涓嬧︹﹁繕鏄瓑鎴戞妸鑳嗗瓙鍏堢粌澶у啀鍘誨惂鈥︹?img src ="http://m.shnenglu.com/windreamer/aggbug/1703.html" width = "1" height = "1" />

]]>
鎶婃垜鐨勬妧鏈崥瀹㈡斁鍦ㄥ湪榪欓噷浜?/title><link>http://m.shnenglu.com/windreamer/archive/2005/12/05/1536.html</link><dc:creator>Windreamer Is Not DREAMER</dc:creator><author>Windreamer Is Not DREAMER</author><pubDate>Mon, 05 Dec 2005 01:45:00 GMT</pubDate><guid>http://m.shnenglu.com/windreamer/archive/2005/12/05/1536.html</guid><wfw:comment>http://m.shnenglu.com/windreamer/comments/1536.html</wfw:comment><comments>http://m.shnenglu.com/windreamer/archive/2005/12/05/1536.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://m.shnenglu.com/windreamer/comments/commentRss/1536.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/windreamer/services/trackbacks/1536.html</trackback:ping><description><![CDATA[涓昏鍠滄浠栫殑璇硶鐫鑹插姛鑳斤紝鐪熺殑寰堟柟渚匡紝RSS絳夋柟闈㈢殑鍔熻兘涔熷緢鍏ㄩ潰......<IMG height=19 src="http://m.shnenglu.com/Emoticons/regular_smile.gif" width=19 border=0><BR><BR>嫻嬭瘯涓涓嬶細(xì)<BR><BR> <DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG id=Codehighlighter1_0_30_Open_Image onclick="this.style.display='none'; Codehighlighter1_0_30_Open_Text.style.display='none'; Codehighlighter1_0_30_Closed_Image.style.display='inline'; Codehighlighter1_0_30_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_0_30_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_0_30_Closed_Text.style.display='none'; Codehighlighter1_0_30_Open_Image.style.display='inline'; Codehighlighter1_0_30_Open_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align=top><SPAN id=Codehighlighter1_0_30_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">/**/</SPAN><SPAN id=Codehighlighter1_0_30_Open_Text><SPAN style="COLOR: #808080">//////////////////////////////</SPAN></SPAN><BR><IMG src="http://m.shnenglu.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">Prime.cpp</SPAN><SPAN style="COLOR: #008000"><BR><IMG id=Codehighlighter1_43_73_Open_Image onclick="this.style.display='none'; Codehighlighter1_43_73_Open_Text.style.display='none'; Codehighlighter1_43_73_Closed_Image.style.display='inline'; Codehighlighter1_43_73_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_43_73_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_43_73_Closed_Text.style.display='none'; Codehighlighter1_43_73_Open_Image.style.display='inline'; Codehighlighter1_43_73_Open_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_43_73_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_43_73_Open_Text><SPAN style="COLOR: #808080">//////////////////////////////</SPAN></SPAN><BR><IMG src="http://m.shnenglu.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000"><BR><IMG src="http://m.shnenglu.com/images/OutliningIndicators/None.gif" align=top>template</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> Val</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.shnenglu.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">struct</SPAN><SPAN style="COLOR: #000000"> IntType<BR><IMG id=Codehighlighter1_108_142_Open_Image onclick="this.style.display='none'; Codehighlighter1_108_142_Open_Text.style.display='none'; Codehighlighter1_108_142_Closed_Image.style.display='inline'; Codehighlighter1_108_142_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_108_142_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_108_142_Closed_Text.style.display='none'; Codehighlighter1_108_142_Open_Image.style.display='inline'; Codehighlighter1_108_142_Open_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_108_142_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_108_142_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff">const</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> value </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Val ;<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>template</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #0000ff">bool</SPAN><SPAN style="COLOR: #000000"> flag, typename T, typename U</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.shnenglu.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">struct</SPAN><SPAN style="COLOR: #000000"> Select<BR><IMG id=Codehighlighter1_203_224_Open_Image onclick="this.style.display='none'; Codehighlighter1_203_224_Open_Text.style.display='none'; Codehighlighter1_203_224_Closed_Image.style.display='inline'; Codehighlighter1_203_224_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_203_224_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_203_224_Closed_Text.style.display='none'; Codehighlighter1_203_224_Open_Image.style.display='inline'; Codehighlighter1_203_224_Open_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_203_224_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_224_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top> typedef T Result;<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>template</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">typename T, typename U</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.shnenglu.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">struct</SPAN><SPAN style="COLOR: #000000"> Select</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #0000ff">false</SPAN><SPAN style="COLOR: #000000">, T, U</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG id=Codehighlighter1_288_309_Open_Image onclick="this.style.display='none'; Codehighlighter1_288_309_Open_Text.style.display='none'; Codehighlighter1_288_309_Closed_Image.style.display='inline'; Codehighlighter1_288_309_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_288_309_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_288_309_Closed_Text.style.display='none'; Codehighlighter1_288_309_Open_Image.style.display='inline'; Codehighlighter1_288_309_Open_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_288_309_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_288_309_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top> typedef U Result;<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>template </SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">unsigned </SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> N,unsigned </SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> x</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.shnenglu.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">struct</SPAN><SPAN style="COLOR: #000000"> FindRoot<BR><IMG id=Codehighlighter1_369_478_Open_Image onclick="this.style.display='none'; Codehighlighter1_369_478_Open_Text.style.display='none'; Codehighlighter1_369_478_Closed_Image.style.display='inline'; Codehighlighter1_369_478_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_369_478_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_369_478_Closed_Text.style.display='none'; Codehighlighter1_369_478_Open_Image.style.display='inline'; Codehighlighter1_369_478_Open_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_369_478_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_369_478_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff">const</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> value</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">Select</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">(N</SPAN><SPAN style="COLOR: #000000">/</SPAN><SPAN style="COLOR: #000000">x)</SPAN><SPAN style="COLOR: #000000">==</SPAN><SPAN style="COLOR: #000000">x</SPAN><SPAN style="COLOR: #000000">||</SPAN><SPAN style="COLOR: #000000">((N</SPAN><SPAN style="COLOR: #000000">/</SPAN><SPAN style="COLOR: #000000">x</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">x)</SPAN><SPAN style="COLOR: #000000">/</SPAN><SPAN style="COLOR: #000000">2</SPAN><SPAN style="COLOR: #000000">==</SPAN><SPAN style="COLOR: #000000">x),IntType</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">x</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000">,FindRoot</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">N,(N</SPAN><SPAN style="COLOR: #000000">/</SPAN><SPAN style="COLOR: #000000">x</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">x)</SPAN><SPAN style="COLOR: #000000">/</SPAN><SPAN style="COLOR: #000000">2</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000">::Result::value;<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>template </SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">unsigned </SPAN><SPAN style="COLOR: #0000ff">int</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/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">struct</SPAN><SPAN style="COLOR: #000000"> Sqrt<BR><IMG id=Codehighlighter1_520_570_Open_Image onclick="this.style.display='none'; Codehighlighter1_520_570_Open_Text.style.display='none'; Codehighlighter1_520_570_Closed_Image.style.display='inline'; Codehighlighter1_520_570_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_520_570_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_520_570_Closed_Text.style.display='none'; Codehighlighter1_520_570_Open_Image.style.display='inline'; Codehighlighter1_520_570_Open_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_520_570_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_520_570_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff">const</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> value</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">FindRoot</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">N,N</SPAN><SPAN style="COLOR: #000000">/</SPAN><SPAN style="COLOR: #000000">2</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000">::value;<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>template </SPAN><SPAN style="COLOR: #000000"><></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.shnenglu.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">struct</SPAN><SPAN style="COLOR: #000000"> Sqrt</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">></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>template </SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> N,</SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> divider</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.shnenglu.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">struct</SPAN><SPAN style="COLOR: #000000"> TestPrime<BR><IMG id=Codehighlighter1_650_750_Open_Image onclick="this.style.display='none'; Codehighlighter1_650_750_Open_Text.style.display='none'; Codehighlighter1_650_750_Closed_Image.style.display='inline'; Codehighlighter1_650_750_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_650_750_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_650_750_Closed_Text.style.display='none'; Codehighlighter1_650_750_Open_Image.style.display='inline'; Codehighlighter1_650_750_Open_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_650_750_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_650_750_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff">const</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> value</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">Select</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">(N</SPAN><SPAN style="COLOR: #000000">%</SPAN><SPAN style="COLOR: #000000">divider)</SPAN><SPAN style="COLOR: #000000">==</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">,IntType</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000">,TestPrime</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">N,divider</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000">::Result::value;<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>template </SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> N</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.shnenglu.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">struct</SPAN><SPAN style="COLOR: #000000"> TestPrime</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">N,</SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG id=Codehighlighter1_793_822_Open_Image onclick="this.style.display='none'; Codehighlighter1_793_822_Open_Text.style.display='none'; Codehighlighter1_793_822_Closed_Image.style.display='inline'; Codehighlighter1_793_822_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_793_822_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_793_822_Closed_Text.style.display='none'; Codehighlighter1_793_822_Open_Image.style.display='inline'; Codehighlighter1_793_822_Open_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_793_822_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_793_822_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff">const</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> value</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/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>template </SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">unsigned </SPAN><SPAN style="COLOR: #0000ff">int</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/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">struct</SPAN><SPAN style="COLOR: #000000"> IsPrime<BR><IMG id=Codehighlighter1_867_931_Open_Image onclick="this.style.display='none'; Codehighlighter1_867_931_Open_Text.style.display='none'; Codehighlighter1_867_931_Closed_Image.style.display='inline'; Codehighlighter1_867_931_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_867_931_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_867_931_Closed_Text.style.display='none'; Codehighlighter1_867_931_Open_Image.style.display='inline'; Codehighlighter1_867_931_Open_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_867_931_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_867_931_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff">const</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> value</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">TestPrime</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">N,Sqrt</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">N</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000">::value</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000">::value;<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>template </SPAN><SPAN style="COLOR: #000000"><></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.shnenglu.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">struct</SPAN><SPAN style="COLOR: #000000"> IsPrime</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">2</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG id=Codehighlighter1_965_994_Open_Image onclick="this.style.display='none'; Codehighlighter1_965_994_Open_Text.style.display='none'; Codehighlighter1_965_994_Closed_Image.style.display='inline'; Codehighlighter1_965_994_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_965_994_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_965_994_Closed_Text.style.display='none'; Codehighlighter1_965_994_Open_Image.style.display='inline'; Codehighlighter1_965_994_Open_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_965_994_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_965_994_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff">const</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> value</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/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>template </SPAN><SPAN style="COLOR: #000000"><></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.shnenglu.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">struct</SPAN><SPAN style="COLOR: #000000"> IsPrime</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #000000">></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></SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> printf(</SPAN><SPAN style="COLOR: #0000ff">const</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">char</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">,<IMG src="http://m.shnenglu.com/images/dot.gif">);<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"> main()<BR><IMG id=Codehighlighter1_1071_1134_Open_Image onclick="this.style.display='none'; Codehighlighter1_1071_1134_Open_Text.style.display='none'; Codehighlighter1_1071_1134_Closed_Image.style.display='inline'; Codehighlighter1_1071_1134_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_1071_1134_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1071_1134_Closed_Text.style.display='none'; Codehighlighter1_1071_1134_Open_Image.style.display='inline'; Codehighlighter1_1071_1134_Open_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_1071_1134_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_1071_1134_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff">const</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> yes</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">IsPrime</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">123127</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000">::value;<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\n</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">,yes);<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></DIV><img src ="http://m.shnenglu.com/windreamer/aggbug/1536.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/windreamer/" target="_blank">Windreamer Is Not DREAMER</a> 2005-12-05 09:45 <a href="http://m.shnenglu.com/windreamer/archive/2005/12/05/1536.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://m.shnenglu.com/" title="精品视频久久久久">精品视频久久久久</a> <div class="friend-links"> </div> </div> </footer> <a href="http://www.5656936.cn" target="_blank">伊人久久大香线蕉综合网站</a>| <a href="http://www.xinmeige.com.cn" target="_blank">久久久久夜夜夜精品国产</a>| <a href="http://www.33k4.cn" target="_blank">久久久久亚洲AV成人网人人网站</a>| <a href="http://www.hxinfocom.cn" target="_blank">大蕉久久伊人中文字幕</a>| <a href="http://www.fvxg.cn" target="_blank">手机看片久久高清国产日韩</a>| <a href="http://www.xxxhj.cn" target="_blank">久久久久久精品成人免费图片</a>| <a href="http://www.cbsfq.cn" target="_blank">亚洲熟妇无码另类久久久</a>| <a href="http://www.hjj9588.cn" target="_blank">久久Av无码精品人妻系列</a>| <a href="http://www.cqtqtz.cn" target="_blank">国产精品成人久久久久久久</a>| <a href="http://www.expo2006sy.com.cn" target="_blank">日本精品久久久久久久久免费</a>| <a href="http://www.upboss.cn" target="_blank">精品国产乱码久久久久软件</a>| <a href="http://www.520jj.cn" target="_blank">99精品国产在热久久无毒不卡 </a>| <a href="http://www.jianluanwang.cn" target="_blank">国产成人久久精品麻豆一区</a>| <a href="http://www.lftdly.cn" target="_blank">久久久99精品成人片中文字幕 </a>| <a href="http://www.furuike.com.cn" target="_blank">久久精品国产亚洲av麻豆色欲</a>| <a href="http://www.gegqmpvka.cn" target="_blank">免费观看久久精彩视频</a>| <a href="http://www.xxupng.cn" target="_blank">久久这里的只有是精品23</a>| <a href="http://www.shufa520.cn" target="_blank">99久久人妻无码精品系列蜜桃</a>| <a href="http://www.eksn.cn" target="_blank">亚洲国产香蕉人人爽成AV片久久</a>| <a href="http://www.fygscn.cn" target="_blank">久久男人Av资源网站无码软件</a>| <a href="http://www.jiyiabc.cn" target="_blank">精品久久久久久久中文字幕</a>| <a href="http://www.dztd.gd.cn" target="_blank">久久人妻少妇嫩草AV蜜桃</a>| <a href="http://www.0546bbs.cn" target="_blank">国产精品免费久久</a>| <a href="http://www.gmbs.com.cn" target="_blank">国产精品一久久香蕉国产线看观看 </a>| <a href="http://www.wggls.cn" target="_blank">欧美久久精品一级c片片</a>| <a href="http://www.commonsoft.cn" target="_blank">77777亚洲午夜久久多喷</a>| <a href="http://www.sd167.cn" target="_blank">伊人久久综在合线亚洲2019</a>| <a href="http://www.818pkmu.cn" target="_blank">亚洲伊人久久大香线蕉综合图片</a>| <a href="http://www.604664.cn" target="_blank">久久精品国产第一区二区</a>| <a href="http://www.sh-tx.cn" target="_blank">久久久精品一区二区三区</a>| <a href="http://www.80008000.cn" target="_blank">久久精品中文字幕一区</a>| <a href="http://www.par354.cn" target="_blank">一级做a爰片久久毛片毛片</a>| <a href="http://www.diylady.cn" target="_blank">91久久精品国产91性色也</a>| <a href="http://www.yefaa.cn" target="_blank">97久久超碰国产精品2021</a>| <a href="http://www.thinkct.com.cn" target="_blank">亚洲中文字幕无码久久2020</a>| <a href="http://www.sevengreen.cn" target="_blank">亚洲国产精品成人AV无码久久综合影院 </a>| <a href="http://www.enliangjiancai.cn" target="_blank">大香伊人久久精品一区二区</a>| <a href="http://www.sunriseydy.cn" target="_blank">久久久久久国产精品美女</a>| <a href="http://www.hfhgsb.com.cn" target="_blank">国产精品gz久久久</a>| <a href="http://www.34lz.cn" target="_blank">久久精品中文字幕有码</a>| <a href="http://www.hbswmm.cn" target="_blank">久久久免费观成人影院 </a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>