锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲国产精品无码久久久蜜芽,中文精品久久久久国产网址,久久99精品久久久久婷婷http://www.shnenglu.com/SEMAN/category/389.html鏇劇粡娌ф搗闅句負姘淬侀櫎鍗村帆灞變笉鏄簯zh-cnFri, 23 May 2008 07:09:10 GMTFri, 23 May 2008 07:09:10 GMT60Good C++ Interview Questionshttp://www.shnenglu.com/SEMAN/articles/1343.html鍛沖叏姣忔棩C++鍛沖叏姣忔棩C++Sun, 27 Nov 2005 09:04:00 GMThttp://www.shnenglu.com/SEMAN/articles/1343.htmlhttp://www.shnenglu.com/SEMAN/comments/1343.htmlhttp://www.shnenglu.com/SEMAN/articles/1343.html#Feedback0http://www.shnenglu.com/SEMAN/comments/commentRss/1343.htmlhttp://www.shnenglu.com/SEMAN/services/trackbacks/1343.htmlC++ Questions
  • What are the major differences between C and C++?
    • What are the differences between new and malloc?
    • What is the difference between delete and delete[]?
    • What are the differences between a struct in C and in C++?
    • What are the advantages/disadvantages of using #define?
    • What are the advantages/disadvantages of using inline and const?
  • What is the difference between a pointer and a reference?
    • When would you use a pointer? A reference?
    • What does it mean to take the address of a reference?
  • What does it mean to declare a function or variable as static?
  • What is the order of initalization for data?
  • What is name mangling/name decoration?
    • What kind of problems does name mangling cause?
    • How do you work around them?
  • What is a class?
    • What are the differences between a struct and a class in C++?
    • What is the difference between public, private, and protected access?
    • For class CFoo { }; what default methods will the compiler generate for you>?
    • How can you force the compiler to not generate them?
    • What is the purpose of a constructor? Destructor?
    • What is a constructor initializer list?
    • When must you use a constructor initializer list?
    • What is a:
      • Constructor?
      • Destructor?
      • Default constructor?
      • Copy constructor?
      • Conversion constructor?
    • What does it mean to declare a...
      • member function as virtual?
      • member function as static?
      • member function as static?
      • member variable as static?
      • destructor as static?
    • Can you explain the term "resource acquisition is initialization?"
    • What is a "pure virtual" member function?
    • What is the difference between public, private, and protected inheritance?
    • What is virtual inheritance?
    • What is placement new?
    • What is the difference between operator new and the new operator?
  • What is exception handling?
    • Explain what happens when an exception is thrown in C++.
    • What happens if an exception is not caught?
    • What happens if an exception is throws from an object's constructor?
    • What happens if an exception is throws from an object's destructor?
    • What are the costs and benefits of using exceptions?
    • When would you choose to return an error code rather than throw an exception?
  • What is a template?
  • What is partial specialization or template specialization?
  • How can you force instantiation of a template?
  • What is an iterator?
  • What is an algorithm (in terms of the STL/C++ standard library)?
  • What is std::auto_ptr?
  • What is wrong with this statement? std::auto_ptr ptr(new char[10]);
  • It is possible to build a C++ compiler on top of a C compiler. How would you do this? (Note: I've only asked this question once; and yes, he understood that I was asking him how cfront was put together. We hired him.)

鏆傛椂鍙戝竷闂錛屽ぇ瀹墮泦鎬濆箍鐩婏紝浜夊彇鎶婃瘡涓棶棰樿璁虹殑鍏呭垎涓鐐癸紝鎴戜細鍦ㄦ渶蹇殑鏃墮棿緇欐垜鍑虹殑絳旀錛氾級



鍛沖叏姣忔棩C++ 2005-11-27 17:04 鍙戣〃璇勮
]]>
#pragmahttp://www.shnenglu.com/SEMAN/articles/1210.html鍛沖叏姣忔棩C++鍛沖叏姣忔棩C++Sun, 20 Nov 2005 16:40:00 GMThttp://www.shnenglu.com/SEMAN/articles/1210.htmlhttp://www.shnenglu.com/SEMAN/comments/1210.htmlhttp://www.shnenglu.com/SEMAN/articles/1210.html#Feedback0http://www.shnenglu.com/SEMAN/comments/commentRss/1210.htmlhttp://www.shnenglu.com/SEMAN/services/trackbacks/1210.html鍦ㄦ墍鏈夌殑棰勫鐞嗘寚浠や腑錛?Pragma 鎸囦護鍙兘鏄渶澶嶆潅鐨勪簡錛屽畠鐨勪綔鐢ㄦ槸璁懼畾緙栬瘧鍣ㄧ殑鐘舵佹垨鑰呮槸鎸囩ず緙栬瘧鍣ㄥ畬鎴愪竴浜涚壒瀹氱殑鍔ㄤ綔銆?pragma鎸囦護瀵規瘡涓紪璇戝櫒緇欏嚭浜嗕竴涓柟娉?鍦ㄤ繚鎸佷笌C鍜孋++璇█瀹屽叏鍏煎鐨勬儏鍐典笅,緇欏嚭涓繪満鎴栨搷浣滅郴緇熶笓鏈夌殑鐗瑰緛銆備緷鎹畾涔?緙栬瘧鎸囩ず鏄満鍣ㄦ垨鎿嶄綔緋葷粺涓撴湁鐨?涓斿浜庢瘡涓紪璇戝櫒閮芥槸涓嶅悓鐨勩?BR>鍏舵牸寮忎竴鑸負: #Pragma Para
鍏朵腑Para 涓哄弬鏁幫紝涓嬮潰鏉ョ湅涓浜涘父鐢ㄧ殑鍙傛暟銆?/FONT>

(1)message 鍙傛暟銆?Message 鍙傛暟鏄垜鏈鍠滄鐨勪竴涓弬鏁幫紝瀹冭兘澶熷湪緙栬瘧淇℃伅杈撳嚭紿?BR>鍙d腑杈撳嚭鐩稿簲鐨勪俊鎭紝榪欏浜庢簮浠g爜淇℃伅鐨勬帶鍒舵槸闈炲父閲嶈鐨勩傚叾浣跨敤鏂規硶涓猴細
#Pragma message(鈥滄秷鎭枃鏈?
褰撶紪璇戝櫒閬囧埌榪欐潯鎸囦護鏃跺氨鍦ㄧ紪璇戣緭鍑虹獥鍙d腑灝嗘秷鎭枃鏈墦鍗板嚭鏉ャ?BR>褰撴垜浠湪紼嬪簭涓畾涔変簡璁稿瀹忔潵鎺у埗婧愪唬鐮佺増鏈殑鏃跺欙紝鎴戜滑鑷繁鏈夊彲鑳介兘浼氬繕璁版湁娌℃湁姝g‘鐨勮緗繖浜涘畯錛屾鏃舵垜浠彲浠ョ敤榪欐潯鎸囦護鍦ㄧ紪璇戠殑鏃跺欏氨榪涜媯鏌ャ傚亣璁炬垜浠笇鏈涘垽鏂嚜宸辨湁娌℃湁鍦ㄦ簮浠g爜鐨勪粈涔堝湴鏂瑰畾涔変簡_X86榪欎釜瀹忓彲浠ョ敤涓嬮潰鐨勬柟娉?BR>#ifdef _X86
#Pragma message(鈥淿X86 macro activated!鈥?
#endif
褰撴垜浠畾涔変簡_X86榪欎釜瀹忎互鍚庯紝搴旂敤紼嬪簭鍦ㄧ紪璇戞椂灝變細鍦ㄧ紪璇戣緭鍑虹獥鍙i噷鏄劇ず鈥淿
X86 macro activated!鈥濄傛垜浠氨涓嶄細鍥犱負涓嶈寰楄嚜宸卞畾涔夌殑涓浜涚壒瀹氱殑瀹忚屾姄鑰蟲尃鑵簡
銆?/FONT>

(2)鍙︿竴涓嬌鐢ㄥ緱姣旇緝澶氱殑pragma鍙傛暟鏄痗ode_seg銆傛牸寮忓錛?BR>#pragma code_seg( ["section-name"[,"section-class"] ] )
瀹冭兘澶熻緗▼搴忎腑鍑芥暟浠g爜瀛樻斁鐨勪唬鐮佹錛屽綋鎴戜滑寮鍙戦┍鍔ㄧ▼搴忕殑鏃跺欏氨浼氫嬌鐢ㄥ埌瀹冦?/FONT>

(3)#pragma once (姣旇緝甯哥敤錛?BR>鍙鍦ㄥご鏂囦歡鐨勬渶寮濮嬪姞鍏ヨ繖鏉℃寚浠ゅ氨鑳藉淇濊瘉澶存枃浠惰緙栬瘧涓嬈★紝榪欐潯鎸囦護瀹為檯涓婂湪VC6涓氨宸茬粡鏈変簡錛屼絾鏄冭檻鍒板吋瀹規у茍娌℃湁澶鐨勪嬌鐢ㄥ畠銆?/FONT>

(4)#pragma hdrstop琛ㄧず棰勭紪璇戝ご鏂囦歡鍒版涓烘錛屽悗闈㈢殑澶存枃浠朵笉榪涜棰勭紪璇戙侭CB鍙互棰勭紪璇戝ご鏂囦歡浠ュ姞蹇摼鎺ョ殑閫熷害錛屼絾濡傛灉鎵鏈夊ご鏂囦歡閮借繘琛岄緙栬瘧鍙堝彲鑳藉崰澶紓佺洏絀洪棿錛屾墍浠ヤ嬌鐢ㄨ繖涓夐」鎺掗櫎涓浜涘ご鏂囦歡銆?
鏈夋椂鍗曞厓涔嬮棿鏈変緷璧栧叧緋伙紝姣斿鍗曞厓A渚濊禆鍗曞厓B錛屾墍浠ュ崟鍏傿瑕佸厛浜庡崟鍏傾緙栬瘧銆備綘鍙互鐢?pragma startup鎸囧畾緙栬瘧浼樺厛綰э紝濡傛灉浣跨敤浜?pragma package(smart_init) 錛孊CB灝變細鏍規嵁浼樺厛綰х殑澶у皬鍏堝悗緙栬瘧銆?

(5)#pragma resource "*.dfm"琛ㄧず鎶?.dfm鏂囦歡涓殑璧勬簮鍔犲叆宸ョ▼銆?.dfm涓寘鎷獥浣?BR>澶栬鐨勫畾涔夈?

(6)#pragma warning( disable : 4507 34; once : 4385; error : 164 )
絳変環浜庯細
#pragma warning(disable:4507 34) // 涓嶆樉紺?507鍜?4鍙瘋鍛婁俊鎭?BR>#pragma warning(once:4385) // 4385鍙瘋鍛婁俊鎭粎鎶ュ憡涓嬈?BR>#pragma warning(error:164) // 鎶?64鍙瘋鍛婁俊鎭綔涓轟竴涓敊璇?BR>鍚屾椂榪欎釜pragma warning 涔熸敮鎸佸涓嬫牸寮忥細
#pragma warning( push [ ,n ] )
#pragma warning( pop )
榪欓噷n浠h〃涓涓鍛婄瓑綰?1---4)銆?BR>#pragma warning( push )淇濆瓨鎵鏈夎鍛婁俊鎭殑鐜版湁鐨勮鍛婄姸鎬併?BR>#pragma warning( push, n)淇濆瓨鎵鏈夎鍛婁俊鎭殑鐜版湁鐨勮鍛婄姸鎬侊紝騫朵笖鎶婂叏灞璀﹀憡
絳夌駭璁懼畾涓簄銆?
#pragma warning( pop )鍚戞爤涓脊鍑烘渶鍚庝竴涓鍛婁俊鎭紝鍦ㄥ叆鏍堝拰鍑烘爤涔嬮棿鎵浣滅殑
涓鍒囨敼鍔ㄥ彇娑堛備緥濡傦細
#pragma warning( push )
#pragma warning( disable : 4705 )
#pragma warning( disable : 4706 )
#pragma warning( disable : 4707 )
//.......
#pragma warning( pop )
鍦ㄨ繖孌典唬鐮佺殑鏈鍚庯紝閲嶆柊淇濆瓨鎵鏈夌殑璀﹀憡淇℃伅(鍖呮嫭4705錛?706鍜?707)銆?BR>錛?錛塸ragma comment(...)
璇ユ寚浠ゅ皢涓涓敞閲婅褰曟斁鍏ヤ竴涓璞℃枃浠舵垨鍙墽琛屾枃浠朵腑銆?BR>甯哥敤鐨刲ib鍏抽敭瀛楋紝鍙互甯垜浠繛鍏ヤ竴涓簱鏂囦歡銆?/FONT>




]]>
亚洲精品白浆高清久久久久久| 国产精品久久久久9999高清| 欧美激情精品久久久久| 精品国产婷婷久久久| 中文字幕亚洲综合久久菠萝蜜 | 久久WWW免费人成一看片| 久久精品aⅴ无码中文字字幕不卡| 国内精品伊人久久久久影院对白| 色欲综合久久躁天天躁| 久久99国内精品自在现线| 大香伊人久久精品一区二区 | 合区精品久久久中文字幕一区| 久久国产影院| 亚洲精品高清久久| 精品国产青草久久久久福利| 亚洲欧美成人综合久久久| 亚洲国产精品人久久| 国产成人无码精品久久久性色| 久久这里的只有是精品23| 狠狠干狠狠久久| 久久精品草草草| 久久精品无码一区二区WWW| 色综合久久久久网| 久久亚洲私人国产精品vA| 久久亚洲精品成人av无码网站| 超级碰久久免费公开视频| 久久久九九有精品国产| 亚洲国产精品久久久天堂| 手机看片久久高清国产日韩| 国産精品久久久久久久| 国产99久久久国产精品~~牛| 精品久久久久香蕉网| 99久久国产综合精品麻豆| 青青久久精品国产免费看| 久久综合国产乱子伦精品免费| 亚洲精品NV久久久久久久久久| 18岁日韩内射颜射午夜久久成人 | 香蕉久久夜色精品升级完成| 欧美一区二区久久精品| 久久久久久伊人高潮影院| 久久人做人爽一区二区三区|