锘??xml version="1.0" encoding="utf-8" standalone="yes"?>精品乱码久久久久久夜夜嗨 ,色婷婷综合久久久久中文 ,久久久无码一区二区三区http://www.shnenglu.com/lazz/zh-cnMon, 12 May 2025 01:21:54 GMTMon, 12 May 2025 01:21:54 GMT60鍏充簬鏃犱復鏃跺彉閲忕殑鍙橀噺鍊間氦鎹㈢殑璁板綍 && 姹傛渶澶ц〃紺烘暟http://www.shnenglu.com/lazz/archive/2009/06/11/87410.html钃濆皹钃濆皹Thu, 11 Jun 2009 07:15:00 GMThttp://www.shnenglu.com/lazz/archive/2009/06/11/87410.htmlhttp://www.shnenglu.com/lazz/comments/87410.htmlhttp://www.shnenglu.com/lazz/archive/2009/06/11/87410.html#Feedback0http://www.shnenglu.com/lazz/comments/commentRss/87410.htmlhttp://www.shnenglu.com/lazz/services/trackbacks/87410.html涓嶇敤涓存椂鍙橀噺榪涜鏁村瀷鍙橀噺浜ゆ崲"

涓ょ嫻佽鏂規硶:
(1) 鍔犲噺鍑?br>
1 void AsExchang(int &x, int &y)
2 {
3      x = x + y;
4      y = x - y;
5      x = x - y;
6 }
7 

(2) 寮傛垨
1 void XorExchang(int &x, int &y)
2 {
3      x = x ^ y;
4      y = x ^ y;
5      x = x ^ y;
6 }

涓ょ鏂規硶, 閮藉彲浠ヨ璇嗘槸瀵嗙爜瀛︾殑涓閮ㄥ垎鍚? 鍙槸鐢ㄥ姞鍑忔硶鏉ュ姞瀵? 騫肩涓旂己涔忓畨鍏ㄦц屽凡.
褰撶劧, 寮傛垨娉曞湪鐜板疄涓篃寰楀彉縐嶆墠鑳藉疄闄呭簲鐢?br>
涓寮濮嬪偦鍌誨湴鑱旀兂鍒版柟娉曚竴鏄惁瀛樺湪瓚婄晫闂... //鍩虹鐭ヨ瘑鐬棿钖勫急鍖?..
緋葷粺搴曞眰鐨勫疄鐜板眳鐒朵竴鏃墮棿蹇樿浜?..

鑱旀兂鍒板浣曠‘璁や竴涓被鍨嬭兘琛ㄧず鐨勬渶澶ф渶灝忓?br>(1)
鎵浠ユ兂鍒扮殑鐢╯izeof榪愮畻絎? 鍒ゆ柇綾誨瀷鐨勪綅鏁? 鐒跺悗絎ㄧ鍦板乏縐誨彸縐繪搷浣滆繘琛岃綆?br>
int getMaxInt()
{
    
int iBase= 1;
    
const int IntSize = sizeof(int* 8;

    
//int鏄湁絎﹀彿鏁? 鏈宸﹁竟涓浣嶆槸絎﹀彿浣?br>    //so
    for(int i = 1; i < IntSize - 1 ; i++ )
    {
        iBase 
= (iBase << i) + 1;
    }

    
return iBase; 
}
濂界鐨勬柟娉?..
寰堟病鏁堢巼

(2)
鐢ㄥ己鍒惰漿鎹㈠惂, (int)0x*,
*鏄粈涔? 0x7fffffff
鎭跺績-_-||, 鎴戜竴寮濮嬪張4涓猣浜? 涓涓猣鎵?浣嶅惂...

(3)
榪樻湁鐢╞itset, bitsit鏈塼o_ulong鏂規硶, 鍑戝悎鐫鐢?br>
(4)
climits鐨?INT_MAX
鍦╟plusplus.com涓婇潰鐨剅eference鏄樉紺?br>
INT_MAX  Maximum value for an object of type int
 = 32767
琚粬鐨勫浘琛ㄩ獥浜?br>
VC6鐗堟湰鐨勫ご鏂囦歡閲岄潰鏄敤
#define INT_MAX  2147483647 
鐩存帴瀹氫箟鐨?br>鏌ョ湅cywin閲岄潰鐨勫ご鏂囦歡
涔熷樊涓嶅..
#define __INT_MAX__ 2147483647
#define INT_MAX __INT_MAX__


(5)
C++鏍囧噯鏂規硶..
//鐩存帴璐磋繃鏉ヤ簡
//鍓嶉潰鏈夎鏄庤numeric_limits<int>::max()絳変簬INT_MAX
//... 鍙槸灝佽浜嗘ā鏉胯屽凡
 1 // numeric_limits example
 2 #include <iostream>
 3 #include <limits>
 4 using namespace std;
 5 
 6 int main () {
 7   cout << boolalpha;
 8   cout << "Minimum value for int: " << numeric_limits<int>::min() << endl;
 9   cout << "Maximum value for int: " << numeric_limits<int>::max() << endl;
10   cout << "int is signed: " << numeric_limits<int>::is_signed << endl;
11   cout << "Non-sign bits in int: " << numeric_limits<int>::digits << endl;
12   cout << "int has infinity: " << numeric_limits<int>::has_infinity << endl;
13   return 0;
14 }



娌″幓鎵鵑珮鎵嬩滑鐨勫鎷? 嫻氮鑽¤崱鍙堟秷璐逛簡涓嶅皯鏃墮棿...
緇х畫娼滀慨鍘?br>


钃濆皹 2009-06-11 15:15 鍙戣〃璇勮
]]>
for python IDLEhttp://www.shnenglu.com/lazz/archive/2009/03/17/76898.html钃濆皹钃濆皹Tue, 17 Mar 2009 11:18:00 GMThttp://www.shnenglu.com/lazz/archive/2009/03/17/76898.htmlhttp://www.shnenglu.com/lazz/comments/76898.htmlhttp://www.shnenglu.com/lazz/archive/2009/03/17/76898.html#Feedback3http://www.shnenglu.com/lazz/comments/commentRss/76898.htmlhttp://www.shnenglu.com/lazz/services/trackbacks/76898.html涓鍒囨簮浜庤嚜宸辯殑鎳掓儼, 浠涔堥兘鍠滄鏂逛究蹇嵎

python idle鐨勯粯璁や唬鐮佽ˉ鍏ㄥ揩鎹烽敭涓庣郴緇熺殑杈撳叆娉曞垏鎹㈤敭鍐茬獊
鑷畾涔夊惂
鏄庢槑鏄彍鍗曚笅鏄痵how Completions
鍦╧eys涓嬪嵈鏄?"force-open-completions"
濂芥壘....

涓嶆噦寰楁庢牱璁? ctrl 鍟?shift 鍟?alt 鍟婇兘浼氬姞涓婂幓, 鍙寜閿?..
鍒扮幇鍦ㄨ繕鏄櫧鐥寸潃, 鎬庢牱鍔犱笂鍘葷殑...

緇撴灉
涓鐙犲績
鎶奵trl璁炬垚蹇嵎閿簲鐢ㄥ悗閲嶅惎
鍣╂ⅵ寮濮嬩簡

IDLE鏃犳硶鍚姩...
Google浜嗕竴涓? 鍙戠幇鍙湁鑷繁鏄繖鏍風櫧鐥?.. 璁懼揩鎹烽敭璁炬鐨?br>娌℃湁瑙e喅鏂規
鎵懼埌涓濊礬

鍦ㄦ帶鍒跺彴涓?python idle.py
Traceback (most recent call last):
  File 
"idle.py", line 22in <module>
    idlelib.PyShell.main()
  File 
"d:\Python\lib\idlelib\PyShell.py", line 1373in main
    flist.new()
  File 
"d:\Python\lib\idlelib\FileList.py", line 49in new
    
return self.EditorWindow(self, filename)
  File 
"d:\Python\lib\idlelib\PyShell.py", line 106in __init__
    EditorWindow.
__init__(self, *args)
  File 
"d:\Python\lib\idlelib\EditorWindow.py", line 117in __init__
    self.apply_bindings()
  File 
"d:\Python\lib\idlelib\EditorWindow.py", line 943in apply_bindings
    text.event_add(event, 
*keylist)
  File 
"d:\Python\lib\idlelib\MultiCall.py", line 359in event_add
    widget.event_add(self, virtual, seq)
  File 
"d:\Python\lib\tkinter\__init__.py", line 1353in event_add
    self.tk.call(args)
_tkinter.TclError: bad event type 
or keysym "Control"

鏄庢憜鐫鏄嚜宸辯殑"Control"鎼炵殑鐮村潖

鐧界棿浜嬩歡涓:
榪欎釜control鏄湪鍝噷璇誨叆鐨?
鎴戝眳鐒舵兂鍒版槸娉ㄥ唽琛?br>鍏堝墠鎼炶蔣浠剁殑蹇嵎閿疄鐜板鑷寸幇鍦ㄧ煡璇嗘販涔變簡
榪樼湡鎵撳紑娉ㄥ唽琛ㄦ悳绱㈠叧閿瓧
鍙堝姩鐢≧egmon鍦ㄨ垗鍙嬬殑鏈轟笂鍐嶆澶嶅師鐜板満
// -_-!! 涓轟粈涔堝氨娌$敤Filemon
緇撴灉鍙堟寕浜嗕竴鍙?br>

鐧界棿浜嬩歡浜?
鍗歌澆
閲嶈

鍗歌澆
閲嶅惎鍚庨噸瑁?br>
鐢ㄤ紭鍖栧ぇ甯堝垎鏋愬嵏杞?br>鍐嶉噸瑁?br>
鍙堝嵏杞?br>鎹ython2.6

榪樻槸涓嶈...

//鍐沖畾浠庢涓嶅湪鐢ㄤ紭鍖栧ぇ甯堢殑鏅鴻兘鍗歌澆浜?br>//涓婃鎶婃垜鐨勪竴涓父鎴忚褰曠粰鍒犱簡
//榪欐鍗存病鎶妏ython鍦ㄧ郴緇熺洏鐨勬畫鐣欑墿鎷夎蛋...


鐧界棿浜嬩歡涓?
璺熻釜閿欒鐪嬪揩鎹烽敭鐨勮緗槸鍦ㄥ摢閲岃幏鍙栫殑...
鍙垢鐨勬槸
python鏄紑婧愮殑
涓嶅垢鐨勬槸
python鏄紑婧愮殑

鎴戠湡鐨勬嬁鐫鍑犲紶鐧界焊璺熺潃涓婇潰鐨勯敊璇彁紺轟竴鐐圭偣鐨勮窡韙?br>鍒嗘瀽鍚勪釜璋冪敤
// 鐪嬬潃鍒漢鐨勪唬鐮佸拰緋葷粺妗嗘灦, 鍙堟槸鍏村鍙堟槸鏇胯嚜宸辨儹鎰?br>


緇撴灉寰堝け璐?br>鍚庢灉寰堜弗閲?br>鏁翠釜涓嬪崍灝辮繖鏍瘋繃鍘諱簡


寰堟兂鏀懼純鐨?br>鍊熸鏈轟細鐢ㄩ敾鐐間笅vim
鍗存棤鎰忓湪python bugs Issue4765 鍙戠幇浜嗘濊礬

鐥涜嫤鍟?br>蹇界暐浜嗚繖縐嶈嚜瀹氫箟鐜涓鑸兘浼氬湪鑷繁鐨勭敤鎴鋒枃浠跺す涓嬩繚瀛樿緗?br>涓涓浠藉垹闄?br>瑙e喅闂

鎶撶媯

榪樻槸璇曡瘯gvim
鎬諱笉鑳藉湪linux涓嬫槸vim榪欒竟鏄痠dle
緇熶竴涓嬩範鎯?br>




  




钃濆皹 2009-03-17 19:18 鍙戣〃璇勮
]]>
python Idle 鏃犳硶鍚姩鐨勪竴縐嶈В鍐蟲柟娉?/title><link>http://www.shnenglu.com/lazz/archive/2009/03/17/76888.html</link><dc:creator>钃濆皹</dc:creator><author>钃濆皹</author><pubDate>Tue, 17 Mar 2009 10:32:00 GMT</pubDate><guid>http://www.shnenglu.com/lazz/archive/2009/03/17/76888.html</guid><wfw:comment>http://www.shnenglu.com/lazz/comments/76888.html</wfw:comment><comments>http://www.shnenglu.com/lazz/archive/2009/03/17/76888.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/lazz/comments/commentRss/76888.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/lazz/services/trackbacks/76888.html</trackback:ping><description><![CDATA[鍓嶆彁:<br>    浣犵殑Idle鏇劇粡鑳藉嚭鑹茬殑琛ㄧ幇榪?br><br>瑙e喅鏂規:<br>    鎶?br>    Windows涓?br>    緋葷粺鐩?\Documents and Settings\<your User Name>\.idlerc" <span style="font-family: monospace;"><span style="font-style: italic;"><br>    or<br>    Linux涓?br>    home/your name/.idlerc  //濂藉儚鏄?.<br>   <br>    閲岄潰鐨?/span></span> <br>    config-main.cfg 鍜?config-extensions.cfg 褰誨簳鍒犱簡<br>   ( 寤鴻鍏堝浠戒互渚垮垎鏋愰敊璇師鍥?)<br><br>    <br>鍐嶉噸鏂板惎鍔↖DLE<br>    <br>   濡傛灉榪樹笉鑳藉惎鍔?br>   鑷繁鍦ㄦ帶鍒跺彴涓嬭繍琛?<br>      ..> python lib\idlelib\idle.py<br><br>   璺熻釜涓嬮敊璇彁紺哄垎鏋愬惂  <br><br>   <br><br><img src ="http://www.shnenglu.com/lazz/aggbug/76888.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/lazz/" target="_blank">钃濆皹</a> 2009-03-17 18:32 <a href="http://www.shnenglu.com/lazz/archive/2009/03/17/76888.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>瀛楃涓蹭竴鍙ヨ瘽鎺掑簭http://www.shnenglu.com/lazz/archive/2009/03/15/76651.html钃濆皹钃濆皹Sun, 15 Mar 2009 08:07:00 GMThttp://www.shnenglu.com/lazz/archive/2009/03/15/76651.htmlhttp://www.shnenglu.com/lazz/comments/76651.htmlhttp://www.shnenglu.com/lazz/archive/2009/03/15/76651.html#Feedback0http://www.shnenglu.com/lazz/comments/commentRss/76651.htmlhttp://www.shnenglu.com/lazz/services/trackbacks/76651.html= "".join(sorted(source))

鍘熸潵鐢ㄦ棫鐗堟湰鐢╨ist瀹炵幇
= "string"
= list(s)
l.sort()
= "".join(l)





钃濆皹 2009-03-15 16:07 鍙戣〃璇勮
]]>
鍏充簬c++瀵硅薄鍏ㄥ眬瀵硅薄鏋愭瀯鐨勫嚑鐐硅褰?/title><link>http://www.shnenglu.com/lazz/archive/2009/02/25/74904.html</link><dc:creator>钃濆皹</dc:creator><author>钃濆皹</author><pubDate>Wed, 25 Feb 2009 12:35:00 GMT</pubDate><guid>http://www.shnenglu.com/lazz/archive/2009/02/25/74904.html</guid><wfw:comment>http://www.shnenglu.com/lazz/comments/74904.html</wfw:comment><comments>http://www.shnenglu.com/lazz/archive/2009/02/25/74904.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.shnenglu.com/lazz/comments/commentRss/74904.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/lazz/services/trackbacks/74904.html</trackback:ping><description><![CDATA[<div style="padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; border-left-color: #cccccc; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><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: #0000ff;">using</span><span style="color: #000000;"> std::cout;<br></span><span style="color: #0000ff;">using</span><span style="color: #000000;"> std::endl;<br></span><span style="color: #0000ff;">class</span><span style="color: #000000;"> CDust{<br></span><span style="color: #0000ff;">public</span><span style="color: #000000;">:<br>    CDust()<br>    {<br>        cout </span><span style="color: #000000;"><<</span><span style="color: #000000;"> </span><span style="color: #000000;">"</span><span style="color: #000000;"> CDust constructor </span><span style="color: #000000;">"</span><span style="color: #000000;"> </span><span style="color: #000000;"><<</span><span style="color: #000000;"> endl;<br>    }<br><br>    </span><span style="color: #000000;">~</span><span style="color: #000000;">CDust()<br>    {<br><br>        cout </span><span style="color: #000000;"><<</span><span style="color: #000000;"> </span><span style="color: #000000;">"</span><span style="color: #000000;"> ~CFoo destructor </span><span style="color: #000000;">"</span><span style="color: #000000;"> </span><span style="color: #000000;"><<</span><span style="color: #000000;"> endl;<br>    }<br>};<br><br><br>CDust A;<br><br></span><span style="color: #0000ff;">int</span><span style="color: #000000;"> main()<br>{<br>    </span><span style="color: #0000ff;">return</span><span style="color: #000000;"> </span><span style="color: #000000;">0</span><span style="color: #000000;">;<br>}</span></div> <div style="padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; border-left-color: #cccccc; width: 98%;">鎴戞兂綾諱技鐨勪唬鐮佸湪緗戜笂Google涓嬪簲璇ユ湁涓嶅皯</div> <div style="padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; border-left-color: #cccccc; width: 98%;">灝濊瘯浜嗕笅,鍦╲c6.0鐨勬儏鍐典笅,鏄病鏈夎緭鍑?"~CFoo destructor", 浣嗚繖騫朵笉浠h〃 ~CDust() 娌℃湁鎵ц.</div> <div style="padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; border-left-color: #cccccc; width: 98%;">鍦▇CDust閲岄潰璁劇疆鏂偣,浼氬彂鐜頒簨瀹炰笂紼嬪簭榪愯鏃惰繘鍏ヤ簡鏋愭瀯鍑芥暟閲? // -_! 琛ㄨ揪濂界壍寮?/div> <div style="padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; border-left-color: #cccccc; width: 98%;">鏈潵鎯沖疄鍦ㄨ窡韙繖閲屽紑濮嬬▼搴忓彂鐢熶簡浠涔堣皟鐢ㄤ簡浠涔?鍙戠幇鍔熷簳涓嶈凍,瀹屽叏涓嶆槑鐧?灝卞厛鎵撴柇浜?/div> <div style="padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; border-left-color: #cccccc; width: 98%;">鑰屽啀鍦? return 0 ' 璇彞鍓嶉潰鍔犱笂鏂偣,浼氱湅鍒拌繖涓柊鍔犵殑鏂偣姣旀瀽鏋勯噷闈㈢殑鏂偣鍏堝埌杈?... </div> <div style="padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; border-left-color: #cccccc; width: 98%;">浠ョ幇鍦╟++鐨勯犺鍜寁c6.0鐨勪簡瑙f儏鍐墊潵鐪?澶寸棝浜?/div> <div style="padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; border-left-color: #cccccc; width: 98%;">涓轟粈涔?return 0 鍚庣▼搴忎笉鏄甯哥粨鏉熶簡鎵嶅幓鎵ц 鍏ㄥ眬瀵硅薄鐨勬瀽鏋?</div> <div style="padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; border-left-color: #cccccc; width: 98%;"><br></div> <div style="padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; border-left-color: #cccccc; width: 98%;">鏀瑰啓涓嬩唬鐮?br></div> <div style="padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; border-left-color: #cccccc; width: 98%;"> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: #000000;">#include</span><span style="color: #000000;"><</span><span style="color: #000000;">iostream.h</span><span style="color: #000000;">></span><span style="color: #000000;"><br><br></span><span style="color: #0000ff;">class</span><span style="color: #000000;"> CDust{<br></span><span style="color: #0000ff;">public</span><span style="color: #000000;">:<br>    CDust()<br>    {<br>        cout </span><span style="color: #000000;"><<</span><span style="color: #000000;"> </span><span style="color: #000000;">"</span><span style="color: #000000;"> CDust constructor </span><span style="color: #000000;">"</span><span style="color: #000000;"> </span><span style="color: #000000;"><<</span><span style="color: #000000;"> endl;<br>    }<br><br>    </span><span style="color: #000000;">~</span><span style="color: #000000;">CDust()<br>    {<br><br>        cout </span><span style="color: #000000;"><<</span><span style="color: #000000;"> </span><span style="color: #000000;">"</span><span style="color: #000000;"> ~CFoo destructor </span><span style="color: #000000;">"</span><span style="color: #000000;"> </span><span style="color: #000000;"><<</span><span style="color: #000000;"> endl;<br>    }<br>};<br><br><br>CDust A;<br><br></span><span style="color: #0000ff;">int</span><span style="color: #000000;"> main()<br>{<br><br>    </span><span style="color: #0000ff;">return</span><span style="color: #000000;"> </span><span style="color: #000000;">0</span><span style="color: #000000;">;<br><br>}</span></div> <br></div> <div style="padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; border-left-color: #cccccc; width: 98%;">榪欐牱鐢ㄦ棫鐗堟湰鐨勫ご鏂囦歡瀹炵幇,鎺у埗鍙拌緭鍑轟簡鎰忓鐨勪袱涓皟鐢?--- 鏋愭瀯鍑芥暟杈撳嚭鏄劇ず浜?.<br><br>鏄痗out鍦ㄥご鏂囦歡鐨勫疄鐜版柟寮忎笉鍚?<br><br>鍦╠ev-c++閲岄潰,榪愯絎竴浠d唬鐮?br>鏍規嵁鏂偣鐨勮緗祴璇?涔熸槸鍏堟墽琛屼簡 main()鍑芥暟閲岄潰鐨?return 0 鎵嶈繘鍏ュ叏灞鍑芥暟鐨勬瀽鏋?涔熻兘鍙戠幇鏋愭瀯鍑芥暟閲岄潰鐨勮緭鍑鴻璋冪敤浜?鎺у埗鍙版湁鏄庣‘鐨勬樉紺?br>榪欐牱涓鏉?鍙堜笉鏄庣櫧浜?..<br>鍦╲c6.0閲岄潰涓轟粈涔堟墽琛屼簡鍏ㄥ眬鍑芥暟鐨勬瀽鏋勫嵈娌℃湁鎵璋撶殑杈撳嚭?<br>鏄洜涓篶md鎺у埗鍙板湪'return 0'紼嬪簭鏉冮檺鏀跺洖  // 濂藉儚鎵埌緋葷粺鐨勪竴浜涙販涔辯殑鏃ц蹇嗕簡...<br><br>緗戞父浜嗕竴涓?br>鎵懼埌鏆傛椂姣旇緝娓呮櫚鐨勮娉曟槸:<br>   In C++, the constructor of a global object is executed before the main() function(of course after the STARTUP code), while the destructor <br> is invoked after the main() function. So in my humble opinion, the main() function is a bridge between the constructor and the destructor.Further more, the constructor and the destructor is the actual manager of the whole program, because they can manage all the<br> resources of the program(for instance, the constructor allocate memory units and the destructor free them.I'am not sure of this, any comments will be appreciated in advance.).<br> 4)In C++, is it true that the resources obtained during the constructor and the destructor (both belong to a global object)are managed by themselves and have nothing with the main() function.Therfore, I think the main() function is not the king in C++ as it is in C.  <br>   //鎰熻阿鎻愬嚭姝よ娉曠殑鏈嬪弸<br> <br>  _startup鎵嶆槸鐢ㄦ埛紼嬪簭鐨勮搗鐐瑰拰緇堢偣? 鐨勭‘,璋冪敤_exit()鍑芥暟鍐嶆柇鐐規祴璇?鍏ㄥ眬瀵硅薄鐨刣estructor鏄病鏈夎繘鍏ョ殑鏈轟細   //闀胯璇嗕簡<br><br>  灝辨鍏堟墦鏂?.. 鍐嶆繁鍏ヤ粖鏅氬氨榪欐牱瀹屼簡.<br>  灝辨璁板綍涓?浠ュ悗鍐嶆帴瑙?br> <br><br><br>涓嶅皬蹇冨張鎺ヨЕ浜?..<br>鎳掑緱寮鏂扮殑灝遍泦涓湪榪欓噷鍚?br><br>鍦╩ain()閲岄潰鎵嬪姩璋冪敤鍏ㄥ眬瀵硅薄鐨勬瀽鏋? 鏈鍚庣▼搴忛兘浼氭墽琛屼袱嬈℃瀽鏋勮皟鐢?.. 鍦?lt;iostream.h>鐨刢out榪欑鎯呭喌涓嬫槑鏄?鍦╯td::cout涓嬭繕寰楅潬鏂偣璁劇疆鎵嶈兘浣撶幇鍒?vc6鐨勬儏鍐?<br>     榪欓噷鏄竴縐嶈В鏋?br>     {<br>      Once a <strong class="highlight">destructor is invoked for an object, the object no longer exists; the behavior is undefined if the <strong class="highlight">destructor is invoked for an object whose lifetime has ended. [Example: if the <strong class="highlight">destructor for an automatic object is explicitly invoked, and the block is subsequently left in a manner that would ordinarily invoke implicit destruction of the object, the behavior is undefined </strong></strong></strong><br>}<br>     闈瀏lobal static object 涔熶細鍑虹幇涓ゆ璋冪敤, 鍖哄埆鍙湪涓庝竴涓湪main() 閫鍑轟箣鍓?涓涓湪涔嬪悗...<br>(鐨勭‘,鎵嬪伐璋冪敤鏋愭瀯鍑芥暟鐨勬儏鍐靛緢灝戝嚭鐜?nbsp; -_! )<br>     濡傛灉鎴戝湪鏋愭瀯閲岄潰瀛樺湪 閲婃斁鍐呭瓨 榪欎竴綾誨疄鐜? 閭g浜屾鍐嶆閲婃斁涓嶆槸瀹規槗鍑洪棶棰?!! <br>     浠ュ悗閬囧埌榪欑鎯呭喌寰楁敞鎰忔嫻嬩唬鐮佺殑娣誨姞...<br><br></div><img src ="http://www.shnenglu.com/lazz/aggbug/74904.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/lazz/" target="_blank">钃濆皹</a> 2009-02-25 20:35 <a href="http://www.shnenglu.com/lazz/archive/2009/02/25/74904.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍏充簬浠g爜浼樺寲鐨勪笓瀹跺緩璁?//鎽樺綍http://www.shnenglu.com/lazz/archive/2009/02/23/74663.html钃濆皹钃濆皹Mon, 23 Feb 2009 04:31:00 GMThttp://www.shnenglu.com/lazz/archive/2009/02/23/74663.htmlhttp://www.shnenglu.com/lazz/comments/74663.htmlhttp://www.shnenglu.com/lazz/archive/2009/02/23/74663.html#Feedback0http://www.shnenglu.com/lazz/comments/commentRss/74663.htmlhttp://www.shnenglu.com/lazz/services/trackbacks/74663.html

紼嬪簭浼樺寲鐨勯瑕佽鍒? 涓嶈浼樺寲
                              --- Michacel A.Jackson

紼嬪簭浼樺寲鐨勭浜岃鍒?--鍙負涓撳鍑嗗: 涓嶈浼樺寲
                              --- Michacel A.Jackson

鑽夌巼鐨勪紭鍖栨槸鎵鏈?鎴栬呰嚦灝戞槸澶у鏁?緙栫▼闂鐨勬牴婧?br>                              --- Donald E.Knuth

紼嬪簭榪愯鐨勫揩閫熷拰榪愯姝g‘絳夊悓閲嶈----閿?br>                              --- Steve McConnell

浼樺寲鎬繪槸浼氭妸浜嬫儏鎼炵牳,鍥犱負闀胯繙鏉ヨ,鎵鏈夌殑浼樺寲閮芥槸涓縐嶆楠楄涓?鑰岄獥瀛愭繪槸浼氳鎿掕幏鐨?br>                              --- Larry Wall

鎻愰珮鎬ц兘鐨勫叧閿槸浼橀泤鐨勮璁?鑰屼笉鏄壒渚嬬殑鍫嗙Н,闄ら潪紜兘鏄庢樉鏀瑰杽鎬ц兘,鍚﹀垯涓瀹氳鎶靛埗鐜╁紕鎶宸х殑璇辨儜.
                              --- Jon L.Bentley 涓?M. Douglas Mcllroy

浠ユ彁楂樻晥鐜囦負鍚嶈岀姱涓嬬殑璁$畻緗伓姣斿叾浠栦換浣曚竴縐嶅師鍥犲鑷寸殑閿欒閮借澶?---鍖呮嫭綰補鐨勬剼锠?br>                              --- William A.Wulf

鏁堢巼鐨勬敼鍠勪即闅忕潃鎵鏈夊叾浠栦駭鍝佸睘鎬т笂浠樺嚭鐨勪唬浠?br>                              --- Martin Carroll 涓?Margaret Ellis

褰?楂樻晥"紼嬪簭鍛橀亣鍒伴夯鐑︽椂,浠栦滑涓嶆効鎰忔敼鍙樿嚜宸辯殑鏂規硶,鍥犱負榪欎細鐗虹壊鏌愪簺鎬ц兘
                              --- Gerald M.Weinberg

涓嶈璐瑰姴緙栧啓蹇殑紼嬪簭,鍔姏鍐欏嚭濂界殑紼嬪簭
                              --- Joshua Bloch

闄?
 keep it sample



钃濆皹 2009-02-23 12:31 鍙戣〃璇勮
]]>
久久成人精品| 久久99精品国产麻豆宅宅| 亚洲国产精品一区二区三区久久| 97久久精品无码一区二区| 性做久久久久久久久浪潮| 久久av高潮av无码av喷吹| 91精品国产9l久久久久| 久久亚洲欧美国产精品| 伊人久久大香线蕉AV色婷婷色 | 国产69精品久久久久9999APGF| 久久精品女人天堂AV麻| 91亚洲国产成人久久精品网址| 91精品国产9l久久久久| 久久精品国产99久久久| 久久久久久久久无码精品亚洲日韩 | 18禁黄久久久AAA片| 久久这里有精品视频| 久久综合精品国产一区二区三区| 国产真实乱对白精彩久久| 国产精品无码久久四虎| 久久精品女人天堂AV麻| 久久久这里只有精品加勒比| 国产99久久久国产精品小说| 久久久久人妻一区二区三区| 亚洲国产精品无码久久SM| 久久精品国产亚洲AV大全| 日本免费一区二区久久人人澡| 国产伊人久久| 国产精品久久久久久五月尺| 日本强好片久久久久久AAA| 熟妇人妻久久中文字幕| 国产精品久久久久无码av| 精品水蜜桃久久久久久久| 亚洲精品综合久久| 亚洲AV无码1区2区久久 | 99久久成人国产精品免费| 国产AⅤ精品一区二区三区久久| 久久男人中文字幕资源站| 国产亚洲美女精品久久久2020| 国产精品久久久久AV福利动漫| 88久久精品无码一区二区毛片|