锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国内精品久久久久久中文字幕,香蕉久久永久视频,久久99精品国产99久久6http://www.shnenglu.com/flyingxu/category/1323.htmlto get ready...zh-cnSun, 25 May 2008 19:10:21 GMTSun, 25 May 2008 19:10:21 GMT60Make header files self-sufficient鐨勪竴涓緥瀛?/title><link>http://www.shnenglu.com/flyingxu/archive/2006/06/23/8908.html</link><dc:creator>flyingxu</dc:creator><author>flyingxu</author><pubDate>Fri, 23 Jun 2006 12:56:00 GMT</pubDate><guid>http://www.shnenglu.com/flyingxu/archive/2006/06/23/8908.html</guid><wfw:comment>http://www.shnenglu.com/flyingxu/comments/8908.html</wfw:comment><comments>http://www.shnenglu.com/flyingxu/archive/2006/06/23/8908.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.shnenglu.com/flyingxu/comments/commentRss/8908.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/flyingxu/services/trackbacks/8908.html</trackback:ping><description><![CDATA[C錛嬶紜緙栫▼瑙勮寖涓23鏉′腑璇達細<br />If one header file won't work unless the file that includes it also includes another header, that's gauche and puts unnecessary burden on that header file's users.<br />鍛靛懙錛岃嫳璇湁鐐規嫍鍙o紝鍚庨潰涓劇殑渚嬪瓙涔熼兘鏄ā鏉跨殑渚嬪瓙銆傛垜鍊掓槸閬囧埌榪囦竴涓疄闄呯殑渚嬪瓙錛岀畝鍖栧悗濡備笅錛?br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><font face="Courier New"><span style="COLOR: #008000">//</span><span style="COLOR: #008000">a.h</span></font><span style="COLOR: #008000"><br /></span><span style="COLOR: #0000ff"><font face="Courier New">class</font></span><font face="Courier New"><span style="COLOR: #000000">聽A聽<br />{<br />聽</span><span style="COLOR: #0000ff">int</span></font><span style="COLOR: #000000"><font face="Courier New">聽a;<br />};</font></span></div>聽<br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #008000">//</span><span style="COLOR: #008000">b.h<br /></span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">娉ㄦ剰錛歜.h騫舵病鏈塱nclude聽a.h</span><span style="COLOR: #008000"><br /></span><span style="COLOR: #0000ff"><font face="Courier New">class</font></span><span style="COLOR: #000000"><font face="Courier New">聽B聽<br />{<br />聽A聽a;<br />};</font>聽</span></div>鐢ㄧ殑鏃跺欐庝箞鐢ㄥ憿錛熸瘮濡傚湪main.cpp涓兂鐢╟lass B<br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><font face="Courier New"><span style="COLOR: #008000">//</span><span style="COLOR: #008000">main.cpp</span></font><span style="COLOR: #008000"><br /></span><font face="Courier New"><span style="COLOR: #000000">#include聽</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">a.h</span><span style="COLOR: #000000">"</span></font><span style="COLOR: #000000"><br /><font face="Courier New">#include聽</font></span><font face="Courier New"><span style="COLOR: #000000">"</span><span style="COLOR: #000000">b.h</span><span style="COLOR: #000000">"</span></font><span style="COLOR: #000000"><br /></span><font face="Courier New"><span style="COLOR: #008000">//</span><span style="COLOR: #008000"><img src="http://www.shnenglu.com/images/dot.gif" /></span></font><span style="COLOR: #008000"><br /></span><font face="Courier New"><span style="COLOR: #000000">B聽b;<br /></span><span style="COLOR: #008000">//</span></font><font face="Courier New"><span style="COLOR: #008000"><img src="http://www.shnenglu.com/images/dot.gif" /><br /></span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">do聽something聽on聽b</span></font></div>鍙互鐪嬪埌錛宮ain涓轟簡浣跨敤B錛岃繕寰楀寘鍚玜.h錛岃繖灝辨槸涓婇潰涓孌佃嫳璇鐨勶細<br />濡傛灉涓涓ご鏂囦歡錛坆.h錛変笉鑳藉伐浣滐紝闄ら潪鍖呭惈瀹冿紙b.h錛夌殑鏂囦歡錛堜篃灝辨槸main.cpp錛変篃鍖呭惈鍙︿竴涓ご鏂囦歡錛坅.h錛?..<br /><br />hehe錛屽綋鎴戠涓嬈¢亣鍒拌繖縐嶆儏鍐墊椂錛屾兂浜嗗崐澶╀篃鎯充笉鏄庣櫧涓轟粈涔堟垜鏄庢槑鍖呭惈浜哹.h榪樻槸涓嶈兘鐢˙鍟?br /><br />閭d箞錛屾紜殑鍐欐硶搴旇鏄粈涔堝憿錛?br />鍦ㄧ被B鐨勪綔鑰呭湪璁捐B鐨勬椂鍊欙紝灝卞簲璇ユ兂鍒扮敤鎴峰彧闇瑕?include "b.h"灝卞彲浠ヤ嬌鐢ㄨ繖涓猚lass B銆傛墍浠ワ紝鍦╞.h鏂囦歡涓紝搴旇鍐欐槑#include "a.h"錛岃屼笉鏄鐢ㄦ埛鍦╩ain.cpp涓幓include "a.h"<br /><br />:)<img src ="http://www.shnenglu.com/flyingxu/aggbug/8908.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/flyingxu/" target="_blank">flyingxu</a> 2006-06-23 20:56 <a href="http://www.shnenglu.com/flyingxu/archive/2006/06/23/8908.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鐢ㄨ繑鍥炵被鍨婤OOL鏇夸唬鍑芥暟榪斿洖綾誨瀷voidhttp://www.shnenglu.com/flyingxu/archive/2006/05/17/7305.htmlflyingxuflyingxuWed, 17 May 2006 08:12:00 GMThttp://www.shnenglu.com/flyingxu/archive/2006/05/17/7305.htmlhttp://www.shnenglu.com/flyingxu/comments/7305.htmlhttp://www.shnenglu.com/flyingxu/archive/2006/05/17/7305.html#Feedback10http://www.shnenglu.com/flyingxu/comments/commentRss/7305.htmlhttp://www.shnenglu.com/flyingxu/services/trackbacks/7305.html
void聽CInstruction::SetName(const聽CString&聽strName)
{
聽聽聽聽m_strName聽
=
聽strName;聽聽聽聽

聽聽聽聽聽聽聽聽聽聽聽聽//some other operations
聽聽聽聽if(!IsRed())
聽聽聽聽{
聽聽聽聽聽聽聽 //...聽聽聽聽聽聽聽聽
聽聽聽聽}
}
榪欐牱鐨勫嚱鏁?榪斿洖綾誨瀷涓?font face="Courier New">void欏虹悊鎴愮珷.

浣嗘槸,闅忕潃紼嬪簭緇х畫寰涓嬪啓,闇瑕佸鐞嗙殑鎯呭喌瓚婃潵瓚婂鏉?榪欎釜鏃跺?鍙戠幇SetName榪欎釜鍑芥暟,榪斿洖void宸茬粡涓嶅鐢ㄤ簡,鍥犱負鍙互闇瑕佺煡閬揝etName榪欎釜鍑芥暟璋冪敤鏈夋病鏈夋垚鍔?鍥犱負鍙兘浼犲叆鐨剆trName涓嶄竴瀹氭槸鍚堟硶鐨?濡傛灉璋冪敤SetName鍑芥暟娌℃湁鎴愬姛,鍙兘瑕佺戶緇皟鐢ㄥ埆鐨勫嚱鏁?榪欎釜鏃跺?鍙兘灝辮璁茶繑鍥炵被鍨嬫敼涓築OOL.

鑰屽悗鏉ョ戶緇兂,涓涓嚱鏁扮殑榪斿洖鍊?搴旇鏇村姞鍏呭垎鐨勫埄鐢?璋冪敤涓涓嚱鏁版椂,灝辮鍏呭垎鐨勫埄鐢ㄥ畠鐨勮繑鍥炲?鑰屽湪鍐欎竴涓嚱鏁版椂,涔熷簲璇ユ敞鎰忓埌榪欎竴鐐?濡傛灉瀹炲湪娌℃湁浠涔堝煎ソ榪斿洖,灝辮繑鍥濼RUE

鎵浠?瀵逛簬鍑芥暟,濡傛灉鍦ㄨ璁℃椂鍑嗗鎶婅繑鍥炵被鍨嬪畾涓簐oid,鍏跺疄鍙互鏀逛負BOOL
1)鏈鍒濆彲鑳芥病鏈夌敤,浣嗘儏鍐典細瓚婃潵瓚婂鏉?br />2)鍏呭垎鍒╃敤鍑芥暟鐨勮繑鍥炲?img src ="http://www.shnenglu.com/flyingxu/aggbug/7305.html" width = "1" height = "1" />

flyingxu 2006-05-17 16:12 鍙戣〃璇勮
]]>
灝介噺鐢ㄤ唬鐮佹潵鏇夸唬璧勬簮涓殑灞炴?/title><link>http://www.shnenglu.com/flyingxu/archive/2006/05/17/7299.html</link><dc:creator>flyingxu</dc:creator><author>flyingxu</author><pubDate>Wed, 17 May 2006 06:17:00 GMT</pubDate><guid>http://www.shnenglu.com/flyingxu/archive/2006/05/17/7299.html</guid><wfw:comment>http://www.shnenglu.com/flyingxu/comments/7299.html</wfw:comment><comments>http://www.shnenglu.com/flyingxu/archive/2006/05/17/7299.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/flyingxu/comments/commentRss/7299.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/flyingxu/services/trackbacks/7299.html</trackback:ping><description><![CDATA[璧勬簮涓殑灞炴?鏄寚鍐橫FC紼嬪簭鏃禫C IDE鐨剅esource緙栬緫鍣ㄤ腑鍙互璁懼畾鐨勫悇縐嶅睘鎬?姣斿<font face="Courier New">WS_EX_TRANSPARENT</font>鎴栬?font face="Courier New">LVS_REPORT</font>.<br />鑰岃繖浜涘睘鎬?閮芥槸鍙互鐢ㄤ唬鐮佸湪紼嬪簭鍒濆鍖栧悗鍔犱笂鍘葷殑,姣斿鍦?font face="Courier New">OnInitDialog()</font> 鎴栬?font face="Courier New">OnCreate()</font>鍑芥暟涓?<br /><br />浠庢柟渚挎ф潵璇?鑲畾鏄湪璧勬簮涓緗繖浜涘睘鎬ф洿鍔犳柟渚?浣嗘槸..<br />鎴戦亣鍒頒竴縐嶆儏鍐?鍦ㄦ垜鐨勭▼搴忎腑,鏈変袱涓猺c鏂囦歡,鍒嗗埆鏄腑鏂囧拰鑻辨枃,榪欎釜鏃跺?灝卞彂鐢熶簡鍦ㄨ嫳鏂囪祫婧愪腑璁劇疆浜嗗睘鎬т慨姝d簡涓涓猙ug浣嗘槸鍦ㄤ腑鏂囩増鐨勮祫婧愪腑蹇樿璁劇疆,bug渚濈劧瀛樺湪.鑰屽鏋滄槸鍦ㄥ湪浠g爜涓姞涓婄被浼肩殑浠g爜:<br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><font face="Courier New"><span style="COLOR: #000000">m_CrossRefTab.ModifyStyleEx(</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">,WS_EX_TRANSPARENT);</span></font></div>璧勬簮鏂囦歡涓嶇敤鏀瑰彉,鑰屼笖淇浜嗘墍鏈夌殑闂.<br /><br />鎵浠?鎴戣寰?搴旇灝介噺鐢ㄥ嚑琛屼唬鐮佹潵鏇夸唬鍦ㄨ祫婧愪腑鐨勮瀹氬睘鎬?img src ="http://www.shnenglu.com/flyingxu/aggbug/7299.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/flyingxu/" target="_blank">flyingxu</a> 2006-05-17 14:17 <a href="http://www.shnenglu.com/flyingxu/archive/2006/05/17/7299.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>code review 鎶婁唬鐮佹姇褰卞湪澧欎笂http://www.shnenglu.com/flyingxu/archive/2006/04/09/5206.htmlflyingxuflyingxuSun, 09 Apr 2006 13:37:00 GMThttp://www.shnenglu.com/flyingxu/archive/2006/04/09/5206.htmlhttp://www.shnenglu.com/flyingxu/comments/5206.htmlhttp://www.shnenglu.com/flyingxu/archive/2006/04/09/5206.html#Feedback0http://www.shnenglu.com/flyingxu/comments/commentRss/5206.htmlhttp://www.shnenglu.com/flyingxu/services/trackbacks/5206.html閿嬮攱璇達細
鎶婁唬鐮佹姇褰卞湪澧欎笂錛屽嚑涓漢鍧愪笅鏉ヤ竴璧瘋瘎璁轟篃鏄湁鏁堢殑鏂規硶

鍛靛懙錛屾垜瑙夊緱寰坈ool鍟婏紝鍙儨鐜板湪鎴戜笉鏄佹澘錛岀瓑鎴戝摢澶╂垚鑰佹澘浜嗭紝灝辮繖涔堝仛

flyingxu 2006-04-09 21:37 鍙戣〃璇勮
]]>
Is Hungarian notation obsolete?http://www.shnenglu.com/flyingxu/archive/2006/04/05/5043.htmlflyingxuflyingxuWed, 05 Apr 2006 11:45:00 GMThttp://www.shnenglu.com/flyingxu/archive/2006/04/05/5043.htmlhttp://www.shnenglu.com/flyingxu/comments/5043.htmlhttp://www.shnenglu.com/flyingxu/archive/2006/04/05/5043.html#Feedback5http://www.shnenglu.com/flyingxu/comments/commentRss/5043.htmlhttp://www.shnenglu.com/flyingxu/services/trackbacks/5043.html涔︿笂璇村寛鐗欏埄鍛藉悕娉曞凡緇忚繃鏃朵簡錛屾垜涓嶈繖鏍瘋涓恒?br />
鏈変漢璁や負鐜板湪緙栬瘧鍣ㄥ凡緇忓彲浠ュ緢濂界殑媯嫻嬪嚭綾誨瀷鐨勪笉鍖歸厤錛屾垨鑰匢DE涓彲浠ュ緢蹇殑鐪嬪埌綾誨瀷錛屾墍浠ュ湪c涓彲鑳介渶瑕侊紝鍦–錛嬶紜錛堝己綾誨瀷璇█錛変腑灝變笉闇瑕佷簡銆?br />C++ made it harder to do that without wicked casting and the compiler catches most of those kind of errors.聽 So, I agree with the previous poster that it's now redundant.
Also, modern IDEs allow you to hover the cursor over a variable and show you the variable's definition.


涓嶈繃鎴戣寰椾唬鐮佷笉鏄啓緇欑紪璇戝櫒鐪嬬殑錛岃屾槸鍐欑粰浜虹湅鐨勶紝榪欓噷灝辨湁self-documenting鍜宺eadability鐨勯棶棰樸?br />寰堟槑鏄撅紝濡傛灉浣犵湅鍒皀Index 鎴栬卻trFile鎴栬厀ndNext錛屽氨鍙互寰堝揩鐭ラ亾鍒嗗埆鏄痠nt CString CWnd綾誨瀷錛岃屼笉鐢ㄥ洖澶村幓鐪嬪彉閲忓畾涔夛紝榪欐牱錛岀湅浠g爜鏃跺氨浼氬緢蹇?br />鑰屼笖錛屽浜嶮FC紼嬪簭鍛樻潵璇達紝鏇撮噸瑕佷竴浜涳紝鍥犱負MFC閲岄潰鐨勫彉閲忛兘鏄敤鍖堢墮鍒╁懡鍚嶆硶鐨勩?br />If you're programming C++/MFC you're better sticking to hungarian for consistency with the class library & Win32 API declarations.
寰蔣鐨勭害瀹?/a>錛屽氨鏄爣鍑嗕簡

涓嶈繃錛屼功涓婃彁鍒板湪娉涘瀷緙栫▼涓笉闇瑕侊紝鐜板湪浣撲細榪樹笉娣憋紝鍙兘鏄鐨勩?br />
浠婂ぉ(2006 04 13紕板閥鐪嬪埌codeproject鐨勪竴涓獀ote),緇撴灉濡備笅

Option Votes %
Pascal Cased 171 10.6
camel Cased 702 43.4
Fixed letter prefix (eg lLocal) 81 5.0
Hungarian prefix (eg strLocal) 481 29.7
Scope prefix (eg l_Local) 36 2.2
Scope and Hungarian prefix (eg l_strLocal) 125 7.7
Responses 1618 錕?/td>

Hungarian Notation鎺掔浜?
cp涓婇潰鏈変袱涓摼鎺?br />Conversations: Hungarian wartHogs (
http://www.cuj.com/documents/s=7989/cujcexp1911hyslop/hyslop.htm)
鍙風О榪欑瘒鏂囩珷灝卞凡緇忔槑鐧界殑璇碒N榪囨椂浜?浣滆呬篃鏄?em>c++ coding stardard鐨勪綔鑰?.
濡傛灉涓嶇敤HN,閭d箞搴旇鐢ㄤ粈涔堟牱鐨勫懡鍚嶈鍒欏憿?
Naming Guidelines(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconNamingGuidelines.asp)
.Net涓嬬殑鎺ㄨ崘,涔熻鍒殑鍦版柟涔熷彲浠ョ敤.

flyingxu 2006-04-05 19:45 鍙戣〃璇勮
]]>
国产精品成人99久久久久 | 久久精品国产精品亚洲| 99久久伊人精品综合观看| 久久久不卡国产精品一区二区| 2020国产成人久久精品| WWW婷婷AV久久久影片| 国产综合成人久久大片91| 久久精品国产2020| 亚洲综合精品香蕉久久网97| 一本综合久久国产二区| 狠狠久久亚洲欧美专区| 久久亚洲精品国产亚洲老地址| 久久精品国产清高在天天线| 久久天天躁狠狠躁夜夜av浪潮 | 69久久精品无码一区二区| 麻豆国内精品久久久久久| …久久精品99久久香蕉国产| 亚洲精品tv久久久久| 欧美综合天天夜夜久久| 亚洲色大成网站WWW久久九九| 久久久精品国产亚洲成人满18免费网站| 久久人妻无码中文字幕| 久久精品一区二区三区中文字幕| 无码久久精品国产亚洲Av影片| 午夜肉伦伦影院久久精品免费看国产一区二区三区 | 色妞色综合久久夜夜| 亚洲精品无码久久毛片| 999久久久国产精品| 久久久国产精品福利免费| 久久国产精品77777| 亚洲国产精品无码久久久秋霞2| 亚洲国产精品无码久久青草| 久久久青草青青国产亚洲免观| 91麻精品国产91久久久久| 久久精品一区二区三区不卡| avtt天堂网久久精品| 久久久国产乱子伦精品作者| 久久精品国产久精国产思思 | 久久国产免费直播| 欧美久久综合九色综合| 亚洲а∨天堂久久精品9966|