锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品免费观看在线,玖玖视频精品,欧美日韩国产综合一区二区http://www.shnenglu.com/lazz/zh-cnTue, 16 Sep 2025 21:13:31 GMTTue, 16 Sep 2025 21:13:31 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 鍙戣〃璇勮
]]>
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            亚洲黄色天堂| 禁断一区二区三区在线| 野花国产精品入口| 亚洲精品一区二区三区蜜桃久| 欧美电影美腿模特1979在线看 | 性18欧美另类| 国产一区二区三区在线观看精品| 久久久久成人网| 欧美mv日韩mv国产网站| 99国产精品久久久| 亚洲婷婷国产精品电影人久久| 国产日韩一区二区| 欧美高清视频www夜色资源网| 欧美精品一区视频| 久久精品官网| 欧美精品www| 欧美在线观看日本一区| 久久亚洲影音av资源网| 这里只有精品视频在线| 欧美有码视频| 一片黄亚洲嫩模| 久久国产精品一区二区| 99综合精品| 久久精品亚洲乱码伦伦中文| 亚洲最黄网站| 久久爱另类一区二区小说| 日韩一级黄色片| 欧美亚洲免费在线| 99精品热6080yy久久| 性做久久久久久久免费看| 亚洲精品一级| 欧美在线影院在线视频| 一区二区日韩欧美| 久久久久国产一区二区三区四区| 中日韩男男gay无套| 久久人人超碰| 久久国产精品99久久久久久老狼 | 久久琪琪电影院| 亚洲伊人伊色伊影伊综合网| 久久在线视频| 久久久国产午夜精品| 欧美日韩亚洲综合| 亚洲高清不卡| 国产一区高清视频| 亚洲专区在线视频| 在线亚洲自拍| 欧美激情综合色综合啪啪| 久久亚洲私人国产精品va媚药| 国产精品视频导航| 一区二区三区四区蜜桃| 亚洲欧洲在线看| 久久久视频精品| 久久久久久久久综合| 国产精品视频午夜| 亚洲一区二区精品在线观看| 亚洲三级国产| 毛片基地黄久久久久久天堂| 久久视频国产精品免费视频在线| 国产精品日韩一区二区三区| 一级成人国产| 亚洲综合日韩中文字幕v在线| 欧美另类亚洲| 亚洲欧洲日韩在线| 99视频精品在线| 欧美成人官网二区| 亚洲精品久久在线| 亚洲婷婷在线| 国产精品草莓在线免费观看| 亚洲一区二区成人在线观看| 亚洲欧美激情四射在线日| 欧美视频在线免费| 亚洲女同在线| 开心色5月久久精品| 伊人精品久久久久7777| 久久久久一区二区| 亚洲国产精品第一区二区| 亚洲毛片在线看| 欧美丝袜一区二区三区| 亚洲一区二区三区国产| 久久精品国产免费观看| 一色屋精品视频在线观看网站| 久久一区二区三区av| 亚洲国产人成综合网站| 亚洲一区免费| 国语自产偷拍精品视频偷 | 欧美mv日韩mv亚洲| 99精品视频免费在线观看| 亚洲中字在线| 狠狠做深爱婷婷久久综合一区| 另类尿喷潮videofree| 亚洲精选一区二区| 久久激情综合| 亚洲日本va在线观看| 欧美日韩另类一区| 欧美亚洲一区三区| 亚洲国产专区校园欧美| 性亚洲最疯狂xxxx高清| 在线观看亚洲专区| 欧美手机在线视频| 狂野欧美性猛交xxxx巴西| 日韩一级黄色大片| 欧美gay视频| 性伦欧美刺激片在线观看| 亚洲第一狼人社区| 国产美女扒开尿口久久久| 美乳少妇欧美精品| 亚洲一级免费视频| 亚洲日本成人女熟在线观看| 欧美专区在线观看一区| 亚洲区免费影片| 国产精品一区二区三区久久久| 欧美专区日韩专区| 亚洲精品在线三区| 欧美成人蜜桃| 午夜老司机精品| 亚洲激情在线| 国产日韩在线一区| 久久中文在线| 亚洲一区中文| 亚洲激情自拍| 久久久蜜桃一区二区人| 中文日韩在线视频| 最新日韩精品| 国产色爱av资源综合区| 欧美精品一区二区在线播放| 香蕉av777xxx色综合一区| 亚洲欧洲精品一区二区| 亚洲免费观看视频| 亚洲成色777777女色窝| 国产欧美日韩一区二区三区在线观看 | 久久精品一区二区三区不卡| 亚洲一区二区动漫| 亚洲国产精品va在看黑人| 国产精品永久免费观看| 欧美日韩亚洲国产精品| 免费不卡中文字幕视频| 夜夜狂射影院欧美极品| 亚洲精品欧美一区二区三区| 美女主播精品视频一二三四| 欧美亚洲自偷自偷| 亚洲性av在线| 日韩午夜av在线| 在线成人性视频| 国产一区二区三区久久精品| 国产精品福利在线| 欧美日韩亚洲一区二区三区在线| 久热精品视频在线观看一区| 久久综合网络一区二区| 欧美在线1区| 欧美在线网站| 午夜欧美大尺度福利影院在线看| 亚洲视频日本| 亚洲一区二区三区高清不卡| 99视频在线精品国自产拍免费观看| 亚洲国产欧美国产综合一区 | 亚洲高清在线| 在线观看欧美黄色| 国产精品综合色区在线观看| 国产一区二区三区观看| 国产综合色产| 国内免费精品永久在线视频| 韩国欧美国产1区| 国产一区二区欧美日韩| 黄色成人精品网站| 亚洲成人中文| 亚洲久久一区| 亚洲激情电影在线| 午夜精品久久久久久久久| 欧美一区二区在线免费播放| 久久精品99国产精品| 久久久久在线| 免费不卡亚洲欧美| 亚洲高清不卡av| 日韩亚洲欧美高清| 亚洲欧美日韩在线高清直播| 欧美中文字幕久久| 欧美极品色图| 国产精品推荐精品| 激情综合激情| 99在线观看免费视频精品观看| 亚洲人体1000| 久久午夜羞羞影院免费观看| 亚洲大胆美女视频| 一区二区电影免费观看| 亚洲欧美在线aaa| 久久深夜福利免费观看| 欧美精品在线免费播放| 国产免费观看久久黄| 亚洲国产高清自拍| 亚洲电影第1页| 亚洲女优在线| 欧美激情在线免费观看| 亚洲午夜在线视频| 久久综合色天天久久综合图片| 国产精品乱码久久久久久| 亚洲国产精品第一区二区三区| 亚洲一区二区av电影| 免费日韩一区二区| 欧美高清在线视频观看不卡| 欧美中文字幕在线视频|