锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久亚洲国产午夜精品理论片 ,中文字幕精品无码久久久久久3D日动漫 ,国产福利电影一区二区三区,免费久久久久久久精 http://www.shnenglu.com/cuijixin/ ---鐢峰効浠楀墤鑷í琛?/description>zh-cnSun, 11 May 2025 08:23:13 GMTSun, 11 May 2025 08:23:13 GMT60(杞澆)char涓巙nsigned char鐨勬湰璐ㄥ尯鍒?/title><link>http://www.shnenglu.com/cuijixin/archive/2015/01/07/209420.html</link><dc:creator>闅忔剰闂?/dc:creator><author>闅忔剰闂?/author><pubDate>Wed, 07 Jan 2015 03:52:00 GMT</pubDate><guid>http://www.shnenglu.com/cuijixin/archive/2015/01/07/209420.html</guid><description><![CDATA[<p><span style="font-size: 10pt">鍘熸枃鍦板潃錛?/span><a ><span style="font-size: 10pt">http://www.cnblogs.com/qytan36/archive/2010/09/27/1836569.html</span></a><br /><br />      鍦–涓紝榛樿鐨勫熀紜鏁版嵁綾誨瀷鍧囦負signed錛岀幇鍦ㄦ垜浠互char涓轟緥錛岃鏄?signed)char涓巙nsigned char涔嬮棿鐨勫尯鍒?br /><br />      棣栧厛鍦ㄥ唴瀛樹腑錛宑har涓巙nsigned char娌℃湁浠涔堜笉鍚岋紝閮芥槸涓涓瓧鑺傦紝鍞竴鐨勫尯鍒槸錛宑har鐨勬渶楂樹綅涓虹鍙蜂綅錛屽洜姝har鑳借〃紺虹殑鑼冨洿鏄?128~127錛寀nsigned char娌℃湁絎﹀彿浣嶏紝鍥犳鑳借〃紺虹殑鑼冨洿鏄?~255錛岃繖涓ソ鐞嗚В錛?涓猙it錛屾渶澶?56縐嶆儏鍐碉紝鍥犳鏃犺濡備綍閮借兘琛ㄧず256涓暟瀛椼?br /><br />      鍦ㄥ疄闄呬嬌鐢ㄨ繃紼嬩腑鏈変粈涔堝尯鍒憿錛?br /><br />      涓昏鏄鍙蜂綅錛屼絾鏄湪鏅氱殑璧嬪鹼紝璇誨啓鏂囦歡鍜岀綉緇滃瓧鑺傛祦閮芥病浠涔堝尯鍒紝鍙嶆灝辨槸涓涓瓧鑺傦紝涓嶇鏈楂樹綅鏄粈涔堬紝鏈緇堣鍙栫粨鏋滈兘涓鏍鳳紝鍙槸浣犳庝箞鐞嗚В鏈楂樹綅鑰屽凡錛屽湪灞忓箷涓婇潰鐨勬樉紺哄彲鑳戒笉涓鏍楓?br /><br />      浣嗘槸鎴戜滑鍗村彂鐜板湪琛ㄧずbyte鏃訛紝閮界敤unsigned char錛岃繖鏄負浠涔堝憿錛?br /><br />      棣栧厛鎴戜滑閫氬父鎰忎箟涓婄悊瑙o紝byte娌℃湁浠涔堢鍙蜂綅涔嬭錛屾洿閲嶈鐨勬槸濡傛灉灝哹yte鐨勫艱祴緇檌nt錛宭ong絳夋暟鎹被鍨嬫椂錛岀郴緇熶細鍋氫竴浜涢澶栫殑宸ヤ綔銆?br /><br />      濡傛灉鏄痗har錛岄偅涔堢郴緇熻涓烘渶楂樹綅鏄鍙蜂綅錛岃宨nt鍙兘鏄?6浣嶆垨鑰?2浣嶏紝閭d箞緋葷粺浼氬鏈楂樹綅鍋氭墿灞曪紙娉ㄦ剰錛岃祴緇檜nsigned int涔熶細鍋氭墿灞曪級錛岃屽鏋滄槸unsigned char錛岄偅涔堢郴緇熶笉浼氬仛鎵╁睍銆?br /><br />      榪欏氨鏄簩鑰呯殑鏈澶у尯鍒?br /><br />      鍚岀悊鍙互鎺ㄥ鍒板叾浠栫殑綾誨瀷錛屾瘮濡俿hort錛寀nsigned short錛岀瓑絳夈?br /><br />      鍏蜂綋鍙互閫氳繃涓嬮潰鐨勫皬渚嬪瓙鐪嬬湅鍏跺尯鍒細<br /><br />      </p> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img alt="" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" /><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 alt="" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" /><br /><img alt="" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" /></span><span style="color: #0000ff">void</span><span style="color: #000000"> f(unsigned </span><span style="color: #0000ff">char</span><span style="color: #000000"> v)<br /><img id="Codehighlighter1_43_331_Open_Image" onclick="this.style.display='none'; Codehighlighter1_43_331_Open_Text.style.display='none'; Codehighlighter1_43_331_Closed_Image.style.display='inline'; Codehighlighter1_43_331_Closed_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none" id="Codehighlighter1_43_331_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_43_331_Closed_Text.style.display='none'; Codehighlighter1_43_331_Open_Image.style.display='inline'; Codehighlighter1_43_331_Open_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif"></span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_43_331_Closed_Text"><img alt="" src="http://www.shnenglu.com/Images/dot.gif" /></span><span id="Codehighlighter1_43_331_Open_Text"><span style="color: #000000">{<br /><img alt="" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" />    </span><span style="color: #0000ff">char</span><span style="color: #000000"> c </span><span style="color: #000000">=</span><span style="color: #000000"> v;<br /><img alt="" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" />    unsigned </span><span style="color: #0000ff">char</span><span style="color: #000000"> uc </span><span style="color: #000000">=</span><span style="color: #000000"> v;<br /><img alt="" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" />    unsigned </span><span style="color: #0000ff">int</span><span style="color: #000000"> a </span><span style="color: #000000">=</span><span style="color: #000000"> c, b </span><span style="color: #000000">=</span><span style="color: #000000"> uc;<br /><img alt="" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" />    </span><span style="color: #0000ff">int</span><span style="color: #000000"> i </span><span style="color: #000000">=</span><span style="color: #000000"> c, j </span><span style="color: #000000">=</span><span style="color: #000000"> uc;<br /><img alt="" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" />    printf(</span><span style="color: #000000">"</span><span style="color: #000000">------------------------\n</span><span style="color: #000000">"</span><span style="color: #000000">);<br /><img alt="" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" />    printf(</span><span style="color: #000000">"</span><span style="color: #000000">%%c: %c, %c\n</span><span style="color: #000000">"</span><span style="color: #000000">, c, uc);<br /><img alt="" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" />    printf(</span><span style="color: #000000">"</span><span style="color: #000000">%%X: %X, %X\n</span><span style="color: #000000">"</span><span style="color: #000000">, c, uc);<br /><img alt="" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" />    printf(</span><span style="color: #000000">"</span><span style="color: #000000">%%u: %u, %u\n</span><span style="color: #000000">"</span><span style="color: #000000">, a, b);<br /><img alt="" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" />    printf(</span><span style="color: #000000">"</span><span style="color: #000000">%%d: %d, %d\n</span><span style="color: #000000">"</span><span style="color: #000000">, i, j);<br /><img alt="" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockEnd.gif" />}</span></span><span style="color: #000000"><br /><img alt="" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" /><br /><img alt="" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" /></span><span style="color: #0000ff">int</span><span style="color: #000000"> main(</span><span style="color: #0000ff">int</span><span style="color: #000000"> argc, </span><span style="color: #0000ff">char</span><span style="color: #000000"> </span><span style="color: #000000">*</span><span style="color: #000000">argv[])<br /><img id="Codehighlighter1_367_409_Open_Image" onclick="this.style.display='none'; Codehighlighter1_367_409_Open_Text.style.display='none'; Codehighlighter1_367_409_Closed_Image.style.display='inline'; Codehighlighter1_367_409_Closed_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none" id="Codehighlighter1_367_409_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_367_409_Closed_Text.style.display='none'; Codehighlighter1_367_409_Open_Image.style.display='inline'; Codehighlighter1_367_409_Open_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif"></span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_367_409_Closed_Text"><img alt="" src="http://www.shnenglu.com/Images/dot.gif" /></span><span id="Codehighlighter1_367_409_Open_Text"><span style="color: #000000">{<br /><img alt="" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" />    f(</span><span style="color: #000000">0x80</span><span style="color: #000000">);<br /><img alt="" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" />    f(</span><span style="color: #000000">0x7F</span><span style="color: #000000">);<br /><img alt="" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" />    </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000">;<br /><img alt="" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockEnd.gif" />}</span></span></div> <p>      杈撳嚭緇撴灉錛?/p> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img alt="" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" /><span style="color: #000000">------------------------</span><span style="color: #000000"><br /><img alt="" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" /></span><span style="color: #000000">%</span><span style="color: #000000">c: €, €<br /><img alt="" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" /></span><span style="color: #000000">%</span><span style="color: #000000">X: FFFFFF80, </span><span style="color: #000000">80</span><span style="color: #000000"><br /><img alt="" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" /></span><span style="color: #000000">%</span><span style="color: #000000">u: </span><span style="color: #000000">4294967168</span><span style="color: #000000">, </span><span style="color: #000000">128</span><span style="color: #000000"><br /><img alt="" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" /></span><span style="color: #000000">%</span><span style="color: #000000">d: </span><span style="color: #000000">-</span><span style="color: #000000">128</span><span style="color: #000000">, </span><span style="color: #000000">128</span><span style="color: #000000"><br /><img alt="" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" /></span><span style="color: #000000">------------------------</span><span style="color: #000000"><br /><img alt="" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" /></span><span style="color: #000000">%</span><span style="color: #000000">c: , <br /><img alt="" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" /></span><span style="color: #000000">%</span><span style="color: #000000">X: 7F, 7F<br /><img alt="" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" /></span><span style="color: #000000">%</span><span style="color: #000000">u: </span><span style="color: #000000">127</span><span style="color: #000000">, </span><span style="color: #000000">127</span><span style="color: #000000"><br /><img alt="" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" /></span><span style="color: #000000">%</span><span style="color: #000000">d: </span><span style="color: #000000">127</span><span style="color: #000000">, </span><span style="color: #000000">127</span><span style="color: #000000"><br /><img alt="" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" />璇鋒寜浠繪剰閿戶緇? . .</span></div> <p><br />      鐢辨鍙錛屾渶楂樹綅鑻ヤ負0鏃訛紝浜岃呮病鏈夊尯鍒紱鑻ヤ負闈?鏃訛紝鍒欐湁鍖哄埆浜嗐?br /><br /><br /><br /></p><img src ="http://www.shnenglu.com/cuijixin/aggbug/209420.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/cuijixin/" target="_blank">闅忔剰闂?/a> 2015-01-07 11:52 <a href="http://www.shnenglu.com/cuijixin/archive/2015/01/07/209420.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>C璇█錛歡etopt_long()鍑芥暟鐨勪綔鐢?/title><link>http://www.shnenglu.com/cuijixin/archive/2010/06/13/117788.html</link><dc:creator>闅忔剰闂?/dc:creator><author>闅忔剰闂?/author><pubDate>Sun, 13 Jun 2010 07:32:00 GMT</pubDate><guid>http://www.shnenglu.com/cuijixin/archive/2010/06/13/117788.html</guid><wfw:comment>http://www.shnenglu.com/cuijixin/comments/117788.html</wfw:comment><comments>http://www.shnenglu.com/cuijixin/archive/2010/06/13/117788.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/cuijixin/comments/commentRss/117788.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/cuijixin/services/trackbacks/117788.html</trackback:ping><description><![CDATA[     鎽樿:     Linux緋葷粺涓嬶紝闇瑕佸ぇ閲忕殑鍛戒護琛岄夐」錛屽鏋滆嚜宸辨墜鍔ㄨВ鏋愪粬浠殑璇濆疄鍦ㄦ槸鏈夎繚杞歡澶嶇敤鐨勬濇兂錛屼笉榪囪繕濂斤紝GNU C library鐣欑粰鎴戜滑涓涓В鏋愬懡浠よ鐨勬帴鍙?X/Open瑙勮寖)錛屽ソ濂戒嬌鐢ㄥ畠鍙互浣夸綘鐨勭▼搴忔敼瑙備笉灝戙?nbsp;   浣跨敤getopt_long()闇瑕佸紩鍏ュご鏂囦歡錛?include<getopt.h> &nbs...  <a href='http://www.shnenglu.com/cuijixin/archive/2010/06/13/117788.html'>闃呰鍏ㄦ枃</a><img src ="http://www.shnenglu.com/cuijixin/aggbug/117788.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/cuijixin/" target="_blank">闅忔剰闂?/a> 2010-06-13 15:32 <a href="http://www.shnenglu.com/cuijixin/archive/2010/06/13/117788.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>10涓瘎濮旀墦鍒嗭紝鍘繪帀涓涓渶楂樺垎錛屽幓鎺変竴涓渶浣庡垎錛屾眰騫沖潎鍒嗭紝騫跺璇勫榪涜璇勫垽http://www.shnenglu.com/cuijixin/archive/2010/05/26/116407.html闅忔剰闂?/dc:creator>闅忔剰闂?/author>Wed, 26 May 2010 09:16:00 GMThttp://www.shnenglu.com/cuijixin/archive/2010/05/26/116407.htmlhttp://www.shnenglu.com/cuijixin/comments/116407.htmlhttp://www.shnenglu.com/cuijixin/archive/2010/05/26/116407.html#Feedback2http://www.shnenglu.com/cuijixin/comments/commentRss/116407.htmlhttp://www.shnenglu.com/cuijixin/services/trackbacks/116407.html
 1#include <iostream>
 2#include <cmath>
 3using namespace std;
 4
 5int main()
 6{
 7// max:淇濆瓨鏈楂樺垎錛沵in:淇濆瓨鏈浣庡垎錛泂um:淇濆瓨鎬誨垎錛沘vg:淇濆瓨騫沖潎鍒?/span>
 8    int i, max, min, sum, avg;
 9    max = -32768;
10    min = 32767;
11    sum = 0;
12    int p[10];
13
14// 灝嗚瘎濮旂殑鎵撳垎瀛樺湪鏁扮粍p涓紝姹傚嚭騫沖潎鍒?/span>
15    for (i = 1; i <= 10; i++)
16    {
17        cout << "Input number " << i << "";
18        cin >> p[i - 1];
19
20        if (p[i - 1> max)
21        {
22            max = p[i - 1];
23        }

24        if (p[i - 1< min)
25        {
26            min = p[i - 1];
27        }

28        sum += p[i - 1];
29    }

30
31    cout << "Canceled max score:" << max 
32        << " Canceled min score:" << min << endl;
33
34    cout << "Average score:" << (avg = (sum - max - min)/8<< endl;
35
36// 姣旇緝姣忎釜璇勫鎵撳垎鍚屽鉤鍧囧肩殑緇濆鍊鹼紝姹傚嚭宸窛鏈澶у拰鏈灝忕殑璇勫
37    max = -32768;
38    min = 32767;
39    int badguy = -1;
40    int goodguy = -1;
41
42    for (i = 0; i < 10; i++)
43    {
44        if (abs(p[i]-avg) > max)
45        {
46            max = p[i] - avg;
47            badguy = i + 1;
48        }

49    }

50    for (i = 0; i < 10; i++)
51    {
52        if (abs(p[i] - avg) < min)
53        {
54            min = p[i] - avg;
55            goodguy = i + 1;
56        }

57    }

58
59    cout << "goodguy is " << goodguy << endl;
60    cout << "badguy is "  << badguy << endl;
61
62    return 0;
63}


]]>
瀹炵幇鍑芥暟y=x*x鐨勫浘褰笌鍦嗙殑鍥懼艦鍙犲姞鏄劇ずhttp://www.shnenglu.com/cuijixin/archive/2010/05/26/116389.html闅忔剰闂?/dc:creator>闅忔剰闂?/author>Wed, 26 May 2010 06:57:00 GMThttp://www.shnenglu.com/cuijixin/archive/2010/05/26/116389.htmlhttp://www.shnenglu.com/cuijixin/comments/116389.htmlhttp://www.shnenglu.com/cuijixin/archive/2010/05/26/116389.html#Feedback1http://www.shnenglu.com/cuijixin/comments/commentRss/116389.htmlhttp://www.shnenglu.com/cuijixin/services/trackbacks/116389.html 1/************************************************************************
 2    涓巗in(x)鍜宑os(x)鍙犲姞鏄劇ず鏄竴涓濊礬錛屾病鏈夎冭檻綆楁硶鐨勬椂闂村鏉傚害錛?br> 3    鎵撳嵃鍦嗘椂鍒╃敤鍥懼艦鐨勫乏鍙沖縐版с傛牴鎹渾鐨勬柟紼嬶細
 4                R*R = X*X + Y*Y
 5    鍙互璁$畻鍑哄渾涓婃瘡涓鐐硅鍜屽垪鐨勫叧緋匯?br> 6************************************************************************/

 7#include <iostream>
 8#include <cmath>
 9using namespace std;
10
11int main()
12{
13    double y;
14    int x, m, n;
15
16    for (y = 10; y >= -10; y--)
17    {
18        m = 1.9*sqrt(100 - y*y);
19        n = 1.9*sqrt(y);
20        
21        for (x = 1; x <= 30; x++)
22        {
23            if (x == n && x == m)
24            {
25                cout << "+";
26            }

27            else if (x == 30 - m)
28            {
29                cout << "+";
30            }

31            else if (x == 30 - n)
32            {
33                cout << "*";
34            }

35            else
36                cout << " ";
37        }

38
39        for (; x <= 60; x++)
40        {
41            if (x == n && x == m)
42            {
43                cout << "+";
44            }

45            else if (x == 30 + m)
46            {
47                cout << "+";
48            }

49            else if (x == 30 + n)
50            {
51                cout << "*";
52            }

53            else
54                cout << " ";
55        }

56        cout << endl;
57    }

58
59    return 0;
60}


]]>
瀹炵幇0~360搴in(x)鏇茬嚎涓巆os(x)鏇茬嚎鍥懼艦鐨勫悓鏃舵樉紺?/title><link>http://www.shnenglu.com/cuijixin/archive/2010/05/26/116382.html</link><dc:creator>闅忔剰闂?/dc:creator><author>闅忔剰闂?/author><pubDate>Wed, 26 May 2010 05:55:00 GMT</pubDate><guid>http://www.shnenglu.com/cuijixin/archive/2010/05/26/116382.html</guid><wfw:comment>http://www.shnenglu.com/cuijixin/comments/116382.html</wfw:comment><comments>http://www.shnenglu.com/cuijixin/archive/2010/05/26/116382.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/cuijixin/comments/commentRss/116382.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/cuijixin/services/trackbacks/116382.html</trackback:ping><description><![CDATA[<p> c璇█瓚e懗緙栫▼鐧句緥綺捐В涓殑涔犻錛屽弬鑰冧簡璇ヤ功涓殑澶翠袱涓緥瀛愶細鍋囧畾鍥懼艦鐨勬誨搴︿負62鍒楋紝cos(x)鏇茬嚎鐢?+"琛ㄧず錛宻in(x)鏇茬嚎鐢?*"琛ㄧず銆?br></p> <div style="BORDER-BOTTOM: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; PADDING-BOTTOM: 4px; BACKGROUND-COLOR: #eeeeee; PADDING-LEFT: 4px; WIDTH: 98%; PADDING-RIGHT: 5px; FONT-SIZE: 13px; WORD-BREAK: break-all; BORDER-TOP: #cccccc 1px solid; BORDER-RIGHT: #cccccc 1px solid; PADDING-TOP: 4px"><span style="COLOR: #008080"> 1</span><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif"><span style="COLOR: #000000">#include </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">iostream</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 2</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif">#include </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">cmath</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 3</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif"></span><span style="COLOR: #0000ff">using</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">namespace</span><span style="COLOR: #000000"> std;<br></span><span style="COLOR: #008080"> 4</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif"><br></span><span style="COLOR: #008080"> 5</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif"></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> main()<br></span><span style="COLOR: #008080"> 6</span><span style="COLOR: #000000"><img id=Codehighlighter1_70_862_Open_Image onclick="this.style.display='none'; Codehighlighter1_70_862_Open_Text.style.display='none'; Codehighlighter1_70_862_Closed_Image.style.display='inline'; Codehighlighter1_70_862_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_70_862_Closed_Image onclick="this.style.display='none'; Codehighlighter1_70_862_Closed_Text.style.display='none'; Codehighlighter1_70_862_Open_Image.style.display='inline'; Codehighlighter1_70_862_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedBlock.gif"></span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id=Codehighlighter1_70_862_Closed_Text><img src="http://www.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_70_862_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080"> 7</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">    </span><span style="COLOR: #0000ff">double</span><span style="COLOR: #000000"> y;<br></span><span style="COLOR: #008080"> 8</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">    </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> m, n, x, yy;<br></span><span style="COLOR: #008080"> 9</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif"><br></span><span style="COLOR: #008080">10</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">    </span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000"> (yy </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">; yy </span><span style="COLOR: #000000"><=</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">20</span><span style="COLOR: #000000">; yy</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)<br></span><span style="COLOR: #008080">11</span><span style="COLOR: #000000"><img id=Codehighlighter1_133_860_Open_Image onclick="this.style.display='none'; Codehighlighter1_133_860_Open_Text.style.display='none'; Codehighlighter1_133_860_Closed_Image.style.display='inline'; Codehighlighter1_133_860_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_133_860_Closed_Image onclick="this.style.display='none'; Codehighlighter1_133_860_Closed_Text.style.display='none'; Codehighlighter1_133_860_Open_Image.style.display='inline'; Codehighlighter1_133_860_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif">    </span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id=Codehighlighter1_133_860_Closed_Text><img src="http://www.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_133_860_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">12</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">        y </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> yy </span><span style="COLOR: #000000">*</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">0.1</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">13</span><span style="COLOR: #000000"><img id=Codehighlighter1_173_197_Open_Image onclick="this.style.display='none'; Codehighlighter1_173_197_Open_Text.style.display='none'; Codehighlighter1_173_197_Closed_Image.style.display='inline'; Codehighlighter1_173_197_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_173_197_Closed_Image onclick="this.style.display='none'; Codehighlighter1_173_197_Closed_Text.style.display='none'; Codehighlighter1_173_197_Open_Image.style.display='inline'; Codehighlighter1_173_197_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif">        m </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> acos(</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">-</span><span style="COLOR: #000000"> y)</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">10</span><span style="COLOR: #000000">;    </span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id=Codehighlighter1_173_197_Closed_Text>/**/</span><span id=Codehighlighter1_173_197_Open_Text><span style="COLOR: #008000">/*</span><span style="COLOR: #008000"> m:cos(x)鏇茬嚎涓妝鐐瑰搴旂殑鍧愭爣鍒?nbsp;</span><span style="COLOR: #008000">*/</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">14</span><span style="COLOR: #000000"><img id=Codehighlighter1_221_245_Open_Image onclick="this.style.display='none'; Codehighlighter1_221_245_Open_Text.style.display='none'; Codehighlighter1_221_245_Closed_Image.style.display='inline'; Codehighlighter1_221_245_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_221_245_Closed_Image onclick="this.style.display='none'; Codehighlighter1_221_245_Closed_Text.style.display='none'; Codehighlighter1_221_245_Open_Image.style.display='inline'; Codehighlighter1_221_245_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif">        n </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> asin(</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">-</span><span style="COLOR: #000000"> y)</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">10</span><span style="COLOR: #000000">; </span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id=Codehighlighter1_221_245_Closed_Text>/**/</span><span id=Codehighlighter1_221_245_Open_Text><span style="COLOR: #008000">/*</span><span style="COLOR: #008000"> n:sin(x)鏇茬嚎涓妝鐐瑰搴旂殑鍧愭爣鍒?nbsp;</span><span style="COLOR: #008000">*/</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">15</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif"><br></span><span style="COLOR: #008080">16</span><span style="COLOR: #000000"><img id=Codehighlighter1_276_292_Open_Image onclick="this.style.display='none'; Codehighlighter1_276_292_Open_Text.style.display='none'; Codehighlighter1_276_292_Closed_Image.style.display='inline'; Codehighlighter1_276_292_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_276_292_Closed_Image onclick="this.style.display='none'; Codehighlighter1_276_292_Closed_Text.style.display='none'; Codehighlighter1_276_292_Open_Image.style.display='inline'; Codehighlighter1_276_292_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif">        </span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000"> (x </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">; x </span><span style="COLOR: #000000"><=</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">31</span><span style="COLOR: #000000">; x</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">) </span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id=Codehighlighter1_276_292_Closed_Text>/**/</span><span id=Codehighlighter1_276_292_Open_Text><span style="COLOR: #008000">/*</span><span style="COLOR: #008000"> 0~180搴︾殑鍥懼儚鏄劇ず </span><span style="COLOR: #008000">*/</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">17</span><span style="COLOR: #000000"><img id=Codehighlighter1_296_584_Open_Image onclick="this.style.display='none'; Codehighlighter1_296_584_Open_Text.style.display='none'; Codehighlighter1_296_584_Closed_Image.style.display='inline'; Codehighlighter1_296_584_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_296_584_Closed_Image onclick="this.style.display='none'; Codehighlighter1_296_584_Closed_Text.style.display='none'; Codehighlighter1_296_584_Open_Image.style.display='inline'; Codehighlighter1_296_584_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif">        </span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id=Codehighlighter1_296_584_Closed_Text><img src="http://www.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_296_584_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">18</span><span style="COLOR: #000000"><img id=Codehighlighter1_323_336_Open_Image onclick="this.style.display='none'; Codehighlighter1_323_336_Open_Text.style.display='none'; Codehighlighter1_323_336_Closed_Image.style.display='inline'; Codehighlighter1_323_336_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_323_336_Closed_Image onclick="this.style.display='none'; Codehighlighter1_323_336_Closed_Text.style.display='none'; Codehighlighter1_323_336_Open_Image.style.display='inline'; Codehighlighter1_323_336_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif">            </span><span style="COLOR: #0000ff">if</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"> m)    </span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id=Codehighlighter1_323_336_Closed_Text>/**/</span><span id=Codehighlighter1_323_336_Open_Text><span style="COLOR: #008000">/*</span><span style="COLOR: #008000"> 鐩鎬氦鏃舵墦鍗?+' </span><span style="COLOR: #008000">*/</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">19</span><span style="COLOR: #000000"><img id=Codehighlighter1_341_363_Open_Image onclick="this.style.display='none'; Codehighlighter1_341_363_Open_Text.style.display='none'; Codehighlighter1_341_363_Closed_Image.style.display='inline'; Codehighlighter1_341_363_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_341_363_Closed_Image onclick="this.style.display='none'; Codehighlighter1_341_363_Closed_Text.style.display='none'; Codehighlighter1_341_363_Open_Image.style.display='inline'; Codehighlighter1_341_363_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif">            </span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id=Codehighlighter1_341_363_Closed_Text><img src="http://www.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_341_363_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">20</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">                cout </span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">21</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif">            }</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">22</span><span style="COLOR: #000000"><img id=Codehighlighter1_401_423_Open_Image onclick="this.style.display='none'; Codehighlighter1_401_423_Open_Text.style.display='none'; Codehighlighter1_401_423_Closed_Image.style.display='inline'; Codehighlighter1_401_423_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_401_423_Closed_Image onclick="this.style.display='none'; Codehighlighter1_401_423_Closed_Text.style.display='none'; Codehighlighter1_401_423_Open_Image.style.display='inline'; Codehighlighter1_401_423_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif">            </span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000"> (x </span><span style="COLOR: #000000">==</span><span style="COLOR: #000000"> m </span><span style="COLOR: #000000">||</span><span style="COLOR: #000000"> x </span><span style="COLOR: #000000">==</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">62</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">-</span><span style="COLOR: #000000"> m)  </span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id=Codehighlighter1_401_423_Closed_Text>/**/</span><span id=Codehighlighter1_401_423_Open_Text><span style="COLOR: #008000">/*</span><span style="COLOR: #008000"> 鎵撳嵃涓嶇浉浜ゆ椂鐨刢os(x)鏇茬嚎鍥懼艦 </span><span style="COLOR: #008000">*/</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">23</span><span style="COLOR: #000000"><img id=Codehighlighter1_428_450_Open_Image onclick="this.style.display='none'; Codehighlighter1_428_450_Open_Text.style.display='none'; Codehighlighter1_428_450_Closed_Image.style.display='inline'; Codehighlighter1_428_450_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_428_450_Closed_Image onclick="this.style.display='none'; Codehighlighter1_428_450_Closed_Text.style.display='none'; Codehighlighter1_428_450_Open_Image.style.display='inline'; Codehighlighter1_428_450_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif">            </span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id=Codehighlighter1_428_450_Closed_Text><img src="http://www.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_428_450_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">24</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">                cout </span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">25</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif">            }</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">26</span><span style="COLOR: #000000"><img id=Codehighlighter1_488_510_Open_Image onclick="this.style.display='none'; Codehighlighter1_488_510_Open_Text.style.display='none'; Codehighlighter1_488_510_Closed_Image.style.display='inline'; Codehighlighter1_488_510_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_488_510_Closed_Image onclick="this.style.display='none'; Codehighlighter1_488_510_Closed_Text.style.display='none'; Codehighlighter1_488_510_Open_Image.style.display='inline'; Codehighlighter1_488_510_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif">            </span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">if</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"> </span><span style="COLOR: #000000">31</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">-</span><span style="COLOR: #000000"> n ) </span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id=Codehighlighter1_488_510_Closed_Text>/**/</span><span id=Codehighlighter1_488_510_Open_Text><span style="COLOR: #008000">/*</span><span style="COLOR: #008000"> 鎵撳嵃涓嶇浉浜ゆ椂鐨剆in(x)鏇茬嚎鍥懼艦 </span><span style="COLOR: #008000">*/</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">27</span><span style="COLOR: #000000"><img id=Codehighlighter1_515_537_Open_Image onclick="this.style.display='none'; Codehighlighter1_515_537_Open_Text.style.display='none'; Codehighlighter1_515_537_Closed_Image.style.display='inline'; Codehighlighter1_515_537_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_515_537_Closed_Image onclick="this.style.display='none'; Codehighlighter1_515_537_Closed_Text.style.display='none'; Codehighlighter1_515_537_Open_Image.style.display='inline'; Codehighlighter1_515_537_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif">            </span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id=Codehighlighter1_515_537_Closed_Text><img src="http://www.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_515_537_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">28</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">                cout </span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">29</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif">            }</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">30</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">            </span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">31</span><span style="COLOR: #000000"><img id=Codehighlighter1_567_580_Open_Image onclick="this.style.display='none'; Codehighlighter1_567_580_Open_Text.style.display='none'; Codehighlighter1_567_580_Closed_Image.style.display='inline'; Codehighlighter1_567_580_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_567_580_Closed_Image onclick="this.style.display='none'; Codehighlighter1_567_580_Closed_Text.style.display='none'; Codehighlighter1_567_580_Open_Image.style.display='inline'; Codehighlighter1_567_580_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif">                cout </span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">;                </span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id=Codehighlighter1_567_580_Closed_Text>/**/</span><span id=Codehighlighter1_567_580_Open_Text><span style="COLOR: #008000">/*</span><span style="COLOR: #008000"> 鍏朵粬鎯呭喌鎵撳嵃絀烘牸 </span><span style="COLOR: #008000">*/</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">32</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif">        }</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">33</span><span style="COLOR: #000000"><img id=Codehighlighter1_609_627_Open_Image onclick="this.style.display='none'; Codehighlighter1_609_627_Open_Text.style.display='none'; Codehighlighter1_609_627_Closed_Image.style.display='inline'; Codehighlighter1_609_627_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_609_627_Closed_Image onclick="this.style.display='none'; Codehighlighter1_609_627_Closed_Text.style.display='none'; Codehighlighter1_609_627_Open_Image.style.display='inline'; Codehighlighter1_609_627_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif">        </span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000"> (; x </span><span style="COLOR: #000000"><=</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">62</span><span style="COLOR: #000000">; x</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">) </span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id=Codehighlighter1_609_627_Closed_Text>/**/</span><span id=Codehighlighter1_609_627_Open_Text><span style="COLOR: #008000">/*</span><span style="COLOR: #008000"> 180~360搴︾殑鍥懼儚鏄劇ず </span><span style="COLOR: #008000">*/</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">34</span><span style="COLOR: #000000"><img id=Codehighlighter1_631_841_Open_Image onclick="this.style.display='none'; Codehighlighter1_631_841_Open_Text.style.display='none'; Codehighlighter1_631_841_Closed_Image.style.display='inline'; Codehighlighter1_631_841_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_631_841_Closed_Image onclick="this.style.display='none'; Codehighlighter1_631_841_Closed_Text.style.display='none'; Codehighlighter1_631_841_Open_Image.style.display='inline'; Codehighlighter1_631_841_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif">        </span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id=Codehighlighter1_631_841_Closed_Text><img src="http://www.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_631_841_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">35</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">            </span><span style="COLOR: #0000ff">if</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"> m)<br></span><span style="COLOR: #008080">36</span><span style="COLOR: #000000"><img id=Codehighlighter1_661_683_Open_Image onclick="this.style.display='none'; Codehighlighter1_661_683_Open_Text.style.display='none'; Codehighlighter1_661_683_Closed_Image.style.display='inline'; Codehighlighter1_661_683_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_661_683_Closed_Image onclick="this.style.display='none'; Codehighlighter1_661_683_Closed_Text.style.display='none'; Codehighlighter1_661_683_Open_Image.style.display='inline'; Codehighlighter1_661_683_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif">            </span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id=Codehighlighter1_661_683_Closed_Text><img src="http://www.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_661_683_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">37</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">                cout </span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">38</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif">            }</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">39</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">            </span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000"> (x </span><span style="COLOR: #000000">==</span><span style="COLOR: #000000"> m </span><span style="COLOR: #000000">||</span><span style="COLOR: #000000"> x </span><span style="COLOR: #000000">==</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">62</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">-</span><span style="COLOR: #000000"> m)<br></span><span style="COLOR: #008080">40</span><span style="COLOR: #000000"><img id=Codehighlighter1_723_745_Open_Image onclick="this.style.display='none'; Codehighlighter1_723_745_Open_Text.style.display='none'; Codehighlighter1_723_745_Closed_Image.style.display='inline'; Codehighlighter1_723_745_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_723_745_Closed_Image onclick="this.style.display='none'; Codehighlighter1_723_745_Closed_Text.style.display='none'; Codehighlighter1_723_745_Open_Image.style.display='inline'; Codehighlighter1_723_745_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif">            </span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id=Codehighlighter1_723_745_Closed_Text><img src="http://www.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_723_745_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">41</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">                cout </span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">42</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif">            }</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">43</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">            </span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000"> (x </span><span style="COLOR: #000000">==</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">31</span><span style="COLOR: #000000"> </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"> </span><span style="COLOR: #000000">62</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">+</span><span style="COLOR: #000000"> n)<br></span><span style="COLOR: #008080">44</span><span style="COLOR: #000000"><img id=Codehighlighter1_790_812_Open_Image onclick="this.style.display='none'; Codehighlighter1_790_812_Open_Text.style.display='none'; Codehighlighter1_790_812_Closed_Image.style.display='inline'; Codehighlighter1_790_812_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_790_812_Closed_Image onclick="this.style.display='none'; Codehighlighter1_790_812_Closed_Text.style.display='none'; Codehighlighter1_790_812_Open_Image.style.display='inline'; Codehighlighter1_790_812_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif">            </span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id=Codehighlighter1_790_812_Closed_Text><img src="http://www.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_790_812_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">45</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">                cout </span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">46</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif">            }</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">47</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">            </span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">48</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">                cout </span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">49</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif">        }</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">50</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">        cout </span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000"> endl;<br></span><span style="COLOR: #008080">51</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif">    }</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">52</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedBlockEnd.gif">}</span></span></div> <img src ="http://www.shnenglu.com/cuijixin/aggbug/116382.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/cuijixin/" target="_blank">闅忔剰闂?/a> 2010-05-26 13:55 <a href="http://www.shnenglu.com/cuijixin/archive/2010/05/26/116382.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Linux makefile 鏁欑▼ 闈炲父璇︾粏錛屼笖鏄撴噦http://www.shnenglu.com/cuijixin/archive/2010/01/04/104748.html闅忔剰闂?/dc:creator>闅忔剰闂?/author>Mon, 04 Jan 2010 03:09:00 GMThttp://www.shnenglu.com/cuijixin/archive/2010/01/04/104748.htmlhttp://www.shnenglu.com/cuijixin/comments/104748.htmlhttp://www.shnenglu.com/cuijixin/archive/2010/01/04/104748.html#Feedback0http://www.shnenglu.com/cuijixin/comments/commentRss/104748.htmlhttp://www.shnenglu.com/cuijixin/services/trackbacks/104748.html闃呰鍏ㄦ枃

]]>
浠g爜瑕嗙洊鐜囩殑嫻嬭瘯宸ュ叿 -- gcovhttp://www.shnenglu.com/cuijixin/archive/2010/01/03/104676.html闅忔剰闂?/dc:creator>闅忔剰闂?/author>Sun, 03 Jan 2010 04:03:00 GMThttp://www.shnenglu.com/cuijixin/archive/2010/01/03/104676.htmlhttp://www.shnenglu.com/cuijixin/comments/104676.htmlhttp://www.shnenglu.com/cuijixin/archive/2010/01/03/104676.html#Feedback0http://www.shnenglu.com/cuijixin/comments/commentRss/104676.htmlhttp://www.shnenglu.com/cuijixin/services/trackbacks/104676.html闃呰鍏ㄦ枃

]]>
錛堣漿錛夌敤NET-SNMP杞歡鍖呭紑鍙戠畝鍗曞鎴風浠g悊http://www.shnenglu.com/cuijixin/archive/2009/03/05/75631.html闅忔剰闂?/dc:creator>闅忔剰闂?/author>Thu, 05 Mar 2009 07:28:00 GMThttp://www.shnenglu.com/cuijixin/archive/2009/03/05/75631.htmlhttp://www.shnenglu.com/cuijixin/comments/75631.htmlhttp://www.shnenglu.com/cuijixin/archive/2009/03/05/75631.html#Feedback2http://www.shnenglu.com/cuijixin/comments/commentRss/75631.htmlhttp://www.shnenglu.com/cuijixin/services/trackbacks/75631.html闃呰鍏ㄦ枃

]]>
錛堣漿錛塶et-snmp鏈嶅姟鐨勫畨瑁?/title><link>http://www.shnenglu.com/cuijixin/archive/2009/03/05/75610.html</link><dc:creator>闅忔剰闂?/dc:creator><author>闅忔剰闂?/author><pubDate>Thu, 05 Mar 2009 05:55:00 GMT</pubDate><guid>http://www.shnenglu.com/cuijixin/archive/2009/03/05/75610.html</guid><wfw:comment>http://www.shnenglu.com/cuijixin/comments/75610.html</wfw:comment><comments>http://www.shnenglu.com/cuijixin/archive/2009/03/05/75610.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/cuijixin/comments/commentRss/75610.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/cuijixin/services/trackbacks/75610.html</trackback:ping><description><![CDATA[ <span id="ieoasmm" class="Apple-style-span" style="font-family: song; border-collapse: collapse; font-size: 12px; "><div>浠婂ぉ鍋氫簡snmp鐨勬祴璇曪紝鐜版妸瀹夎閰嶇疆鏂規硶鍒嗕韓濡備笅錛?/div><div>   <font color="#ff0000">棣栧厛鍑嗗瀹夎鐨勬簮鐮佸寘錛歯et-snmp-5.4.2.1.tar.gz</font></div><div>1.瑙e帇婧愮爜鍖?br style="font: normal normal normal 12px/normal song, Verdana; ">  tar xvf net-snmp****<br style="font: normal normal normal 12px/normal song, Verdana; ">2.鍒涘緩瀹夎鐩綍<br style="font: normal normal normal 12px/normal song, Verdana; ">  mkdir /usr/local/net-snmp<br style="font: normal normal normal 12px/normal song, Verdana; ">3.瀹夎<br style="font: normal normal normal 12px/normal song, Verdana; ">  ./configure --prefix=/usr/local/net-snmp<br style="font: normal normal normal 12px/normal song, Verdana; ">  make<br style="font: normal normal normal 12px/normal song, Verdana; ">  make install<br style="font: normal normal normal 12px/normal song, Verdana; ">4.瀹夎鎴愬姛cp閰嶇疆鏂囦歡鍒?usr/local/net-snmp/share/snmp/鐩綍涓?br style="font: normal normal normal 12px/normal song, Verdana; ">  cp ./EXZAPLE.conf /usr/local/net-snmp/share/snmp/snmpd.conf<br style="font: normal normal normal 12px/normal song, Verdana; ">5.淇敼閰嶇疆鏂囦歡<br style="font: normal normal normal 12px/normal song, Verdana; ">  #       sec.name  source          community<br style="font: normal normal normal 12px/normal song, Verdana; ">  #com2sec local     localhost       COMMUNITY<br style="font: normal normal normal 12px/normal song, Verdana; ">  #com2sec mynetwork NETWORK/24      COMMUNITY<br style="font: normal normal normal 12px/normal song, Verdana; ">  com2sec local     localhost       COMMUNITY<br style="font: normal normal normal 12px/normal song, Verdana; ">  com2sec mynetwork 192.168.1.186      public     <font color="#ff0000"> //涓哄厑璁哥殑婧愬湴鍧<br style="font: normal normal normal 12px/normal song, Verdana; "></font>  com2sec mynetwork 192.168.1.254      public<br style="font: normal normal normal 12px/normal song, Verdana; ">  com2sec mynetwork 192.168.1.0/24      public     <font color="#ff0000">//涓哄厑璁哥殑婧愮綉緇?/font><br style="font: normal normal normal 12px/normal song, Verdana; ">6.緙栬緫/etc/rc.local娣誨姞涓鴻嚜鍚姩  <br style="font: normal normal normal 12px/normal song, Verdana; ">  娣誨姞涓嬮潰涓琛岋細<br style="font: normal normal normal 12px/normal song, Verdana; ">  /usr/local/net-snmp/sbin/snmpd -c /usr/local/net-snmp/share/snmp/snmpd.conf &<br style="font: normal normal normal 12px/normal song, Verdana; ">7.璁劇疆鐜鍙橀噺錛岀紪杈?etc/profile<br style="font: normal normal normal 12px/normal song, Verdana; ">  鍦╡xport鍓嶆坊鍔犱笅闈竴琛?br style="font: normal normal normal 12px/normal song, Verdana; ">  PATH=/usr/local/net-snmp/bin:/usr/local/net-snmp/sbin:$PATH<br style="font: normal normal normal 12px/normal song, Verdana; ">8.嫻嬭瘯鍛戒護<br style="font: normal normal normal 12px/normal song, Verdana; ">  snmpget -v 1 -c "public" 192.168.1.236 .1.3.6.1.4.1.2021.10.1.3.1<br style="font: normal normal normal 12px/normal song, Verdana; ">  娉細瑕佸湪鍚屾牱瀹夎榪噉et-snmp鐨勬満鍣ㄤ笂嫻嬫垨鍦ㄥ畨瑁呰繃絎?鏂硅蔣浠訛紙solarwinds絳夛級鐨勬満鍣ㄦ祴璇?br style="font: normal normal normal 12px/normal song, Verdana; ">      璇ュ懡浠ょ殑鏈鍚庝竴涓瓧孌典負cpu鐨凮ID  <br style="font: normal normal normal 12px/normal song, Verdana; "> </div><div><font color="#ff0000">#########################################################################</font></div><div>闂琛ュ厖錛?/div><div>       涓婃瑁呭ソnetsnmp騫惰瀵熶簡涓孌墊椂闂村悗鍙戠幇鑾峰彇鍐呭瓨錛宑pu淇℃伅絳夌瓑閮藉緢姝e父錛屽敮鐙鐩樹俊鎭笌棰勬湡鏈夌偣鍑哄叆錛屾垜浠鏈熻幏鍙栫鐩樻墍鏈夊垎鍖虹殑浣跨敤鎯呭喌緇撴灉鍙幏鍙栦簡/鏍瑰垎鍖虹殑浣跨敤鎯呭喌:</div><div>       緇忔煡璇佹槸閰嶇疆鏂囦歡snmpd.conf閲岀殑閰嶇疆鏈夊叧錛?/div><div># disk checks<br style="font: normal normal normal 12px/normal song, Verdana; ">#</div><div># The agent can check the amount of available disk space, and make<br style="font: normal normal normal 12px/normal song, Verdana; "># sure it is above a set limit.</div><div># disk PATH [MIN=DEFDISKMINIMUMSPACE]<br style="font: normal normal normal 12px/normal song, Verdana; ">#<br style="font: normal normal normal 12px/normal song, Verdana; "># PATH:  mount path to the disk in question.<br style="font: normal normal normal 12px/normal song, Verdana; "># MIN:   Disks with space below this value will have the Mib's errorFlag set.<br style="font: normal normal normal 12px/normal song, Verdana; ">#        Default value = DEFDISKMINIMUMSPACE.</div><div># Check the / partition and make sure it contains at least 10 megs.</div><div><font color="#ff0000">disk / 10000<br style="font: normal normal normal 12px/normal song, Verdana; ">disk /home 10000</font></div><div># % snmpwalk -v 1 -c public localhost .1.3.6.1.4.1.2021.9<br style="font: normal normal normal 12px/normal song, Verdana; "># enterprises.ucdavis.diskTable.dskEntry.diskIndex.1 = 0<br style="font: normal normal normal 12px/normal song, Verdana; "># enterprises.ucdavis.diskTable.dskEntry.diskPath.1 = "/" Hex: 2F<br style="font: normal normal normal 12px/normal song, Verdana; "># enterprises.ucdavis.diskTable.dskEntry.diskDevice.1 = "/dev/dsk/c201d6s0"<br style="font: normal normal normal 12px/normal song, Verdana; "># enterprises.ucdavis.diskTable.dskEntry.diskMinimum.1 = 10000<br style="font: normal normal normal 12px/normal song, Verdana; "># enterprises.ucdavis.diskTable.dskEntry.diskTotal.1 = 837130<br style="font: normal normal normal 12px/normal song, Verdana; "># enterprises.ucdavis.diskTable.dskEntry.diskAvail.1 = 316325<br style="font: normal normal normal 12px/normal song, Verdana; "># enterprises.ucdavis.diskTable.dskEntry.diskUsed.1 = 437092<br style="font: normal normal normal 12px/normal song, Verdana; "># enterprises.ucdavis.diskTable.dskEntry.diskPercent.1 = 58<br style="font: normal normal normal 12px/normal song, Verdana; "># enterprises.ucdavis.diskTable.dskEntry.diskErrorFlag.1 = 0<br style="font: normal normal normal 12px/normal song, Verdana; "># enterprises.ucdavis.diskTable.dskEntry.diskErrorMsg.1 = ""<br style="font: normal normal normal 12px/normal song, Verdana; ">鍥犱負閰嶇疆鏂囦歡榛樿鍙湁disk / 10000榪欎竴琛岋紱鎸夋鏍煎紡娣誨姞浣犳湡鏈涜幏鍙栫殑紓佺洏鎴栧垎鍖猴紱</div><div>it‘s ok錛侊紒闂瑙e喅錛?/div><div><font color="#ff0000">楠岃瘉cmd:</font></div><div><font color="#ff0000">snmpwalk -v 1 -c "public" 218.108.231.183 .1.3.6.1.4.1.2021.9.1</font></div><div><font color="#ff0000">snmpwalk -v 1 -c "public" 218.108.231.183 .1.3.6.1.4.1.2021.9.1.7</font></div><div> </div></span><img src ="http://www.shnenglu.com/cuijixin/aggbug/75610.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/cuijixin/" target="_blank">闅忔剰闂?/a> 2009-03-05 13:55 <a href="http://www.shnenglu.com/cuijixin/archive/2009/03/05/75610.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>錛堣漿錛塶et-snmp瀹夎鎵嬭http://www.shnenglu.com/cuijixin/archive/2009/03/05/75588.html闅忔剰闂?/dc:creator>闅忔剰闂?/author>Thu, 05 Mar 2009 03:30:00 GMThttp://www.shnenglu.com/cuijixin/archive/2009/03/05/75588.htmlhttp://www.shnenglu.com/cuijixin/comments/75588.htmlhttp://www.shnenglu.com/cuijixin/archive/2009/03/05/75588.html#Feedback0http://www.shnenglu.com/cuijixin/comments/commentRss/75588.htmlhttp://www.shnenglu.com/cuijixin/services/trackbacks/75588.html

Installing /usr/share/man/man3/NetSNMP::agent.3pm
Installing /usr/share/man/man3/NetSNMP::OID.3pm
Installing /usr/share/man/man3/NetSNMP::agent::default_store.3pm
Installing /usr/share/man/man3/SNMP.3
Installing /usr/share/man/man3/NetSNMP::netsnmp_request_infoPtr.3pm
Installing /usr/share/man/man3/NetSNMP::default_store.3pm
Installing /usr/share/man/man3/NetSNMP::ASN.3pm
Installing /usr/share/man/man3/NetSNMP::TrapReceiver.3pm
Writing /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/Bundle/NetSNMP/.packlist
Appending installation info to /usr/lib/perl5/5.8.5/i386-linux-thread-multi/perllocal.pod
make[1]: Leaving directory `/root/net-snmp-5.4.1/perl'




[root@cgeek ~]# rpm -vih elfutils-devel-0.96-1.i386.rpm
warning: elfutils-devel-0.96-1.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
        elfutils-libelf-devel = 0.96-1 is needed by elfutils-devel-0.96-1.i386
[root@cgeek ~]# rpm -qa |grep elfutils
elfutils-libelf-0.96-1
elfutils-0.96-1
[root@cgeek ~]# rpm -vih elfutils-libelf-devel-0.96-1.i386.rpm
warning: elfutils-libelf-devel-0.96-1.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing...                ########################################### [100%]
   1:elfutils-libelf-devel ########################################### [100%]
[root@cgeek ~]# rpm -vih elfutils-devel-0.96-1.i386.rpm
warning: elfutils-devel-0.96-1.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing...                ########################################### [100%]
   1:elfutils-devel         ########################################### [100%]



[root@cgeek ~]# /etc/rc.d/init.d/snmpd start
鍚姩 snmpd錛?nbsp;                                              [ 紜畾 ]



http://blog.chinaunix.net/u2/62377/showart_490549.html

涓.鐜
OS錛歊HEL AS4
net-snmp version錛?.3.2
浜?姝ラ
1.鐢╮oot甯愭埛鐧誨綍
2.榪愯snmpwalk鍜宻nmpget鍛戒護錛岀湅鏄惁宸茬粡瀹夎snmp錛屽鏋滃凡緇忓畨瑁呭氨娌″繀瑕佸啀瀹夎浜?-)
3.灝唍et-snmp-5.3.2.tar.gz瑙e帇(tar -zxvf net-snmp-5.3.2.tar.gz)
4.榪涘叆net-snmp-5.3.2鐩綍
5.榪愯./configure錛屾牴鎹彁紺鴻緭鍏ョ浉搴斾俊鎭?/span>
6.榪愯make
7.榪愯make install
8.瀹夎瀹屾瘯
涓?鍙兘閬囧埌鐨勯棶棰?/span>
1.鎵句笉鍒發ibbeecrypt.la錛屽湪make鏃跺彲鑳藉嚭鐜板涓媏rror

libtool: link: cannot find the library `/usr/lib/libbeecrypt.la' (librpmio.la: /usr/lib/libbeecrypt.la)

make[1]: *** [snmpd] Error 1

make[1]: Leaving directory `/home/xxx/net-snmp-5.3.2/agent'

make: *** [subdirs] Error 1

瑙e喅鍔炴硶錛?/span>
鍒?/span>http://sourceforge.net/projects/beecrypt涓嬭澆beecrypt-4.1.2.tar.gz
鐒跺悗榪愯濡備笅鍛戒護錛?/span>
#tar -zxvf beecrypt-4.1.2.tar.gz
#./configure -prefix=/usr錛堥粯璁ゆ槸瀹夎鍦?usr/local,鎴戜滑闇瑕佸畨瑁呭湪/usr鐩綍涓嬶級
#make
#make install
2./usr/bin/ld: cannot find -lelf錛屽湪make鏃跺彲鑳藉嚭鐜板涓媏rror

/usr/bin/ld: cannot find -lelf

collect2: ld returned 1 exit status

make[1]: *** [snmpd] Error 1

make[1]: Leaving directory `/home/xxx/net-snmp-5.3.2/agent'

make: *** [subdirs] Error 1

瑙e喅鍔炴硶錛?/span>
#ln -s libelf.so.1 /usr/lib/libelf.so
3.鎴戝湪瀹夎鐨勮繃紼嬩腑娌℃湁紕板埌榪欎釜闂錛屽湪姝や綔涓哄弬鑰?/span>
echo /usr/local/lib >/etc/ld.so.conf.d/libnetsnmp.conf
#/sbin/ldconfig -v
#make install



]]>
久久综合色区| 久久96国产精品久久久| www久久久天天com| 久久国产V一级毛多内射| 伊人伊成久久人综合网777| 婷婷久久久亚洲欧洲日产国码AV| 精品熟女少妇av免费久久| 国产精品内射久久久久欢欢| 一本色道久久综合狠狠躁篇| 99久久99久久| 久久这里的只有是精品23| 久久99精品国产麻豆宅宅| 久久99九九国产免费看小说| 久久99国产精品二区不卡| 久久国产精品无| 久久国产精品久久国产精品| 热久久视久久精品18| 青青草国产成人久久91网| 亚洲精品蜜桃久久久久久| 久久97久久97精品免视看| 久久99久久99精品免视看动漫| 午夜精品久久久内射近拍高清 | 久久e热在这里只有国产中文精品99 | 久久成人精品视频| 亚洲中文字幕无码久久综合网| 精品无码久久久久久久久久| 国产精品久久久久影院色| 无码人妻久久一区二区三区蜜桃 | 蜜桃麻豆WWW久久囤产精品| 99久久婷婷国产综合精品草原| 无码国内精品久久人妻| 亚洲欧美成人久久综合中文网 | 日韩精品久久无码人妻中文字幕 | 久久亚洲AV无码西西人体| 精品久久一区二区| 久久99精品久久久久子伦| 久久精品成人欧美大片| 色综合久久天天综线观看| 国产精品丝袜久久久久久不卡| 91视频国产91久久久| 狼狼综合久久久久综合网|