锘??xml version="1.0" encoding="utf-8" standalone="yes"?>精品久久8x国产免费观看,国产精品99久久精品,久久综合给久久狠狠97色 http://m.shnenglu.com/czy463/archive/2014/03/13/206147.html闄堝織榪?/dc:creator>闄堝織榪?/author>Wed, 12 Mar 2014 19:06:00 GMThttp://m.shnenglu.com/czy463/archive/2014/03/13/206147.htmlhttp://m.shnenglu.com/czy463/comments/206147.htmlhttp://m.shnenglu.com/czy463/archive/2014/03/13/206147.html#Feedback0http://m.shnenglu.com/czy463/comments/commentRss/206147.htmlhttp://m.shnenglu.com/czy463/services/trackbacks/206147.html闃呰鍏ㄦ枃

]]>
C++鍗曚歡妯″紡鍙婂唴瀛橀噴鏀綶杞澆]http://m.shnenglu.com/czy463/archive/2013/12/17/204844.html闄堝織榪?/dc:creator>闄堝織榪?/author>Mon, 16 Dec 2013 20:18:00 GMThttp://m.shnenglu.com/czy463/archive/2013/12/17/204844.htmlhttp://m.shnenglu.com/czy463/comments/204844.htmlhttp://m.shnenglu.com/czy463/archive/2013/12/17/204844.html#Feedback0http://m.shnenglu.com/czy463/comments/commentRss/204844.htmlhttp://m.shnenglu.com/czy463/services/trackbacks/204844.html杞澆緗戝潃:http://blog.csdn.net/windboyzsj/article/details/2790485
 1 #include <iostream.h> 
 2 class Singleton 
 3 { 
 4 public
 5 ~Singleton(){cout<<"singleton deconstruct"<<endl;} 
 6 static Singleton* Instance() 
 7 { 
 8   if (_instance == NULL) 
 9   { 
10    _instance = new Singleton(); 
11    static Cleaner cl; //寤惰繜鍒拌繖閲?nbsp;
12   } 
13   return _instance; 
14 } 
15 void Print(char* str) 
16 { 
17   cout<<"singleton print:"<<str<<endl; 
18 } 
19 private
20 Singleton(){cout<<"singleton construct"<<endl;} 
21 static Singleton* _instance; 
22 class Cleaner 
23 { 
24 public
25   Cleaner(){cout<<"cleaner construct"<<endl;} 
26   ~Cleaner() 
27   { 
28    cout<<"cleaner deconstruct"<<endl; 
29    if(Singleton::Instance()) 
30    delete Singleton::Instance(); 
31   } 
32 }; 
33 }; 
34 Singleton* Singleton::_instance = NULL; 
35 int main(int argc, char* argv[]) 
36 { 
37 Singleton::Instance()->Print("print 1"); 
38 Singleton::Instance()->Print("print 2"); 
39 return 0; 
40 }

]]>
SQLITE3 浣跨敤鎬葷粨[杞澆]http://m.shnenglu.com/czy463/archive/2013/12/16/204816.html闄堝織榪?/dc:creator>闄堝織榪?/author>Sun, 15 Dec 2013 16:01:00 GMThttp://m.shnenglu.com/czy463/archive/2013/12/16/204816.htmlhttp://m.shnenglu.com/czy463/comments/204816.htmlhttp://m.shnenglu.com/czy463/archive/2013/12/16/204816.html#Feedback0http://m.shnenglu.com/czy463/comments/commentRss/204816.htmlhttp://m.shnenglu.com/czy463/services/trackbacks/204816.html闃呰鍏ㄦ枃

]]>
鑷鐞唋isthttp://m.shnenglu.com/czy463/archive/2013/12/15/204812.html闄堝織榪?/dc:creator>闄堝織榪?/author>Sun, 15 Dec 2013 14:30:00 GMThttp://m.shnenglu.com/czy463/archive/2013/12/15/204812.htmlhttp://m.shnenglu.com/czy463/comments/204812.htmlhttp://m.shnenglu.com/czy463/archive/2013/12/15/204812.html#Feedback2http://m.shnenglu.com/czy463/comments/commentRss/204812.htmlhttp://m.shnenglu.com/czy463/services/trackbacks/204812.html
涓涓嚜澶勭悊鐨刲ist 鐢ㄩ斿澶?br />  1   1 //瀛愰」
  2   2 class autoItem
  3   3 {
  4   4 public:
  5   5     //澶勭悊
  6   6     virtual bool  proces() = 0;
  7   7     //寮瑰嚭
  8   8     virtual bool  ok() = 0; 
  9   9     //澶勭悊欏哄簭
 10  10     virtual int   Order(){return 0;}
 11  11 };
 12  12 enum sortType
 13  13 {
 14  14     ST_Input,
 15  15     ST_Custom
 16  16 };
 17  17 //鑷鐞唋ist
 18  18 class _autolist
 19  19 {
 20  20 public:
 21  21     _autolist( sortType _type );
 22  22     ~_autolist();
 23  23 
 24  24     //緇ф壙鍑芥暟
 25  25 public:
 26  26     //鍔犲叆澶勭悊搴忓垪
 27  27     virtual bool  push(autoItem *p);
 28  28     //鎵ц澶勭悊搴忓垪
 29  29     virtual bool  go();
 30  30     //娓呯悊鎵鏈?/span>
 31  31     virtual bool  clear(); 
 32  32 
 33  33     //
 34  34 protected:
 35  35     std::list<autoItem*> itemList;
 36  36     sortType _sortType;
 37  37 };
 38  38 
 39  39 
 40  40 _autolist::_autolist( sortType _type )
 41  41 {
 42  42     _sortType = _type;
 43  43 }
 44  44 
 45  45 _autolist::~_autolist()
 46  46 {
 47  47     clear();
 48  48 }
 49  49 
 50  50 bool _autolist::push( autoItem *p )
 51  51 {
 52  53     if (p == NULL) return false;
 53  54     switch (_sortType)
 54  55     {
 55  56     case ST_Input:
 56  57         {
 57  58             itemList.insert(itemList.end(),p);
 58  59             return true;
 59  60         }
 60  61     case ST_Custom:
 61  62         {
 62  63             if (itemList.size() == 0)
 63  64             {
 64  65                 itemList.push_back(p);
 65  66                 return true;
 66  67             }
 67  68             static std::list<autoItem*>::iterator it;
 68  69             it= itemList.begin();
 69  70             for (; it != itemList.end();it++)
 70  71             {
 71  72                 if ((*it)->Order() < p->Order())continue;
 72  73                 itemList.insert(it,p);
 73  74                 break;
 74  75             }
 75  76             return true;
 76  77         }
 77  78     default:
 78  80         return false;
 79  82     }
 80  83     return false;
 81  84 }
 82  85 
 83  86 bool _autolist::go()
 84  87 {
 85  88     static std::list<autoItem*>::iterator it;
 86  89     int nsize = itemList.size();
 87  90     it= itemList.begin();
 88  91     for (; it != itemList.end();)
 89  92     {
 90  93         (*it)->proces();
 91  94         if ( (*it)->ok())
 92  95             it = itemList.erase(it);
 93  96         else
 94  97             it++;
 95  98     }
 96  99     return true;
 97 100 }
 98 101 
 99 102 bool _autolist::clear()
100 103 {
101 104     itemList.clear();
102 105     return true;
103 106 }
104 107 
105 


]]>
gl鍜宒xhttp://m.shnenglu.com/czy463/archive/2013/04/16/199475.html闄堝織榪?/dc:creator>闄堝織榪?/author>Tue, 16 Apr 2013 03:34:00 GMThttp://m.shnenglu.com/czy463/archive/2013/04/16/199475.htmlhttp://m.shnenglu.com/czy463/comments/199475.htmlhttp://m.shnenglu.com/czy463/archive/2013/04/16/199475.html#Feedback0http://m.shnenglu.com/czy463/comments/commentRss/199475.htmlhttp://m.shnenglu.com/czy463/services/trackbacks/199475.html鐐?
   v1(x,y,z)           ->v1(x,y,-z)                      Z杞存柟鍚戜笉鍚?nbsp;                      DX:  z姝f柟鍚戝睆騫曞悜閲?nbsp;          OpengGL:  z姝f柟鍚戝睆騫曞悜澶?br />闈?
   face1(v1,v2,v3) -> face(v1,v3,v2)                姝i潰鐩稿弽                           DX:  闈㈡鏂瑰悜鏄『鏃墮拡           OpengGL:  闈㈡鏂瑰悜閫嗘椂閽?br />綰圭悊鍧愭爣
   tz(u,v)              -> tz(u,1.0f-z)                   (0,0)鐐逛笉鍚?nbsp;                      DX:  (0,0)宸︿笂瑙?nbsp;                  OpengGL:  (0,0)宸︿笅瑙?br />鐭╅樀:
   m(m00,...m33)   ->杞疆()                            ()                                    DX: 宸︽墜鍧愭爣緋?琛屽悜閲?nbsp;          OpenGL:  鍙蟲墜鍧愭爣緋?鍒楀悜閲?nbsp;

]]>
sqlite璇誨彇,瀛樺偍浜岃繘鍒舵暟鎹紙杞澆錛?/title><link>http://m.shnenglu.com/czy463/archive/2013/03/24/198771.html</link><dc:creator>闄堝織榪?/dc:creator><author>闄堝織榪?/author><pubDate>Sun, 24 Mar 2013 08:06:00 GMT</pubDate><guid>http://m.shnenglu.com/czy463/archive/2013/03/24/198771.html</guid><wfw:comment>http://m.shnenglu.com/czy463/comments/198771.html</wfw:comment><comments>http://m.shnenglu.com/czy463/archive/2013/03/24/198771.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://m.shnenglu.com/czy463/comments/commentRss/198771.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/czy463/services/trackbacks/198771.html</trackback:ping><description><![CDATA[     鎽樿: SQLite瀛樺彇浜岃繘鍒舵暟鎹?http://hi.baidu.com/ejoywx/blog/item/4d7b418c8677cc00b31bbae9.html)http://blog.sina.com.cn/s/blog_60f8483a0100ydaw.html Code highlighting produced by Actipro CodeHighlighter (freeware)h...  <a href='http://m.shnenglu.com/czy463/archive/2013/03/24/198771.html'>闃呰鍏ㄦ枃</a><img src ="http://m.shnenglu.com/czy463/aggbug/198771.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/czy463/" target="_blank">闄堝織榪?/a> 2013-03-24 16:06 <a href="http://m.shnenglu.com/czy463/archive/2013/03/24/198771.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>錛堣漿錛夛紙杞級濡備綍璋冭瘯MFC鐨勫唴瀛樻硠闇?/title><link>http://m.shnenglu.com/czy463/archive/2012/07/27/185360.html</link><dc:creator>闄堝織榪?/dc:creator><author>闄堝織榪?/author><pubDate>Fri, 27 Jul 2012 11:20:00 GMT</pubDate><guid>http://m.shnenglu.com/czy463/archive/2012/07/27/185360.html</guid><wfw:comment>http://m.shnenglu.com/czy463/comments/185360.html</wfw:comment><comments>http://m.shnenglu.com/czy463/archive/2012/07/27/185360.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/czy463/comments/commentRss/185360.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/czy463/services/trackbacks/185360.html</trackback:ping><description><![CDATA[<div id="geci2ak" class="articalTitle"><!-- 姝f枃寮濮?--> </div> <div id="4syo24q" class="articalContent " id="sina_keyword_ad_area2"> <p>VC++ IDE 鐨勯粯璁ょ姸鎬?VC6)鏄病鏈夊惎鐢ㄥ唴瀛樻硠婕忔嫻嬫満鍒剁殑錛屼篃灝辨槸璇村嵆浣挎煇孌典唬鐮佹湁鍐呭瓨娉勬紡錛岃皟璇曚細璇濈殑 Output 紿楀彛鐨?Debug 欏典笉浼氳緭鍑烘湁鍏沖唴瀛樻硠婕忎俊鎭備綘蹇呴』璁懼畾浠ュ惎鐢ㄥ唴瀛樻硠婕忔嫻嬫満鍒躲?/p> <p><br /> <wbr><br />鎸変笅闈㈢殑鏂規硶浣跨敤璋冭瘯鍫嗗嚱鏁?br />鍦╔XXView.cpp涓坊鍔犱笅闈㈢矖浣撹</p> <p>浣犲啀鐪嬬湅杈撳嚭緇撴灉錛屾槸涓嶆槸鏈夊緢澶氱殑鍐呭瓨娉勬紡錛?/p> <p>#define _CRTDBG_MAP_ALLOC<br />#include<stdlib.h><br />#include<crtdbg.h></p> <p><br />CXXXView::~CXXXView()<br />{<br /> <wbr> <wbr> <wbr> <wbr> _CrtDumpMemoryLeaks();<br />}</p> <p>鏂囩珷鍑哄錛欴IY閮ㄨ惤(<a >http://www.diybl.com/course/3_program/c++/cppjs/2007925/73624.html</a>)</p> <p><font color="#808080"> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr></font> <font color="#000000">棣栧厛錛屽簲璇ユ槸MFC鎶ュ憡鎴戜滑鍙戠幇鍐呭瓨娉勬紡銆傛敞鎰忥細瑕佸榪愯鍑犳錛屼互紜畾杈撳嚭鐨勫唴瀹逛笉鍙橈紝鐗瑰埆鏄瘂}涔嬮棿鐨勬暟鍊鹼紝涓嶈兘鍙橈紝鍚﹀垯涓嬮潰鐨勬柟娉曞氨涓嶅ソ鐢ㄤ簡銆?br /><img title="錛堣漿錛夊浣曡皟璇昅FC鐨勫唴瀛樻硠闇? height="194" alt="image001.jpg" src="http://www.cnitblog.com/images/cnitblog_com/martin/image001.jpg" width="880" border="0" real_src="http://www.cnitblog.com/images/cnitblog_com/martin/image001.jpg" /><br /><br /> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr>鎴戜滑鏉ョ湅鐪嬶細</font></p> <div style="border-right: rgb(204,204,204) 1px solid; padding-right: 5px; border-top: rgb(204,204,204) 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: rgb(204,204,204) 1px solid; width: 98%; padding-top: 4px; border-bottom: rgb(204,204,204) 1px solid; background-color: rgb(238,238,238)"><span style="color: rgb(0,0,0)"><font color="#000000">F:\CodeSample\Test\TestPipe\LeakTest\MainFrm.cpp(</font></span> <span style="color: rgb(0,0,0)"><font color="#000000">54</font></span> <span style="color: rgb(0,0,0)"><font color="#000000">) <wbr>: <wbr>{</font></span> <span style="color: rgb(0,0,0)"><font color="#000000">86</font></span> <span style="color: rgb(0,0,0)"><font color="#000000">} <wbr>normal <wbr>block <wbr>at <wbr></font></span> <span style="color: rgb(0,0,0)"><font color="#000000">0x00422E80</font></span> <span style="color: rgb(0,0,0)"><font color="#000000">, <wbr></font></span> <span style="color: rgb(0,0,0)"><font color="#000000">10</font></span> <span style="color: rgb(0,0,0)"><font color="#000000"> <wbr>bytes <wbr></font></span> <span style="color: rgb(0,0,255)"><font color="#000000">long</font></span> <span style="color: rgb(0,0,0)"><font color="#000000">.<br /> <wbr>Data: <wbr></font></span> <span style="color: rgb(0,0,0)"><font color="#000000"><</font></span> <span style="color: rgb(0,0,0)"><font color="#000000"> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr></font></span> <span style="color: rgb(0,0,0)"><font color="#000000">></font></span> <span style="color: rgb(0,0,0)"><font color="#000000"> <wbr>1F <wbr>1F <wbr>1F <wbr>1F <wbr>1F <wbr>CD <wbr>CD <wbr>CD <wbr>CD <wbr>CD <wbr><br /></font></span></div> <p><font color="#000000"><br /> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr><span style="color: rgb(0,0,0)">F:\CodeSample\Test\TestPipe\LeakTest\MainFrm.cpp(</span><span style="color: rgb(0,0,0)">54</span><span style="color: rgb(0,0,0)">) 鍛婅瘔鎴戜滑MFC璁や負鏄湪璇ユ枃浠剁殑54琛岋紝鍙戠敓浜嗗唴瀛樻硠婕忋備綘鍙屽嚮鏀硅灝卞彲浠ヨ漿鍒拌鏂囦歡鐨?4琛屼簡銆備絾鏄湁鏃跺欒繖涓淇℃伅騫朵笉鑳界敤鏉ュ噯紜垽鏂紝姣斿錛歁FC鍙兘鎶ュ憡Strcore.cpp鏂囦歡鐨勬煇琛岋紝瀹為檯涓婅繖鏄疌String鐨勫疄鐜板嚱鏁幫紝姝ゆ椂騫朵笉鐭ラ亾浠涔堟椂鍊欏彂鐢熶簡鍐呭瓨娉勬紡銆?br /><br /></span> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr>姝ゆ椂鎴戜滑闇瑕佹洿澶氱殑淇℃伅銆傞偅涔堟垜浠湅鐪嬬揣鎺ュ叾鍚庣殑錛?br /><span style="color: rgb(0,0,0)"><br /></span></font></p> <div style="border-right: rgb(204,204,204) 1px solid; padding-right: 5px; border-top: rgb(204,204,204) 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: rgb(204,204,204) 1px solid; width: 98%; padding-top: 4px; border-bottom: rgb(204,204,204) 1px solid; background-color: rgb(238,238,238)"><span style="color: rgb(0,0,0)"><font color="#000000">{</font></span> <span style="color: rgb(0,0,0)"><font color="#000000">86</font></span> <span style="color: rgb(0,0,0)"><font color="#000000">} <wbr>normal <wbr>block <wbr>at <wbr></font></span> <span style="color: rgb(0,0,0)"><font color="#000000">0x00422E80</font></span> <span style="color: rgb(0,0,0)"><font color="#000000">, <wbr></font></span> <span style="color: rgb(0,0,0)"><font color="#000000">10</font></span> <span style="color: rgb(0,0,0)"><font color="#000000"> <wbr>bytes <wbr></font></span> <span style="color: rgb(0,0,255)"><font color="#000000">long</font></span> <span style="color: rgb(0,0,0)"><font color="#000000">.<br /> <wbr>Data: <wbr></font></span> <span style="color: rgb(0,0,0)"><font color="#000000"><</font></span> <span style="color: rgb(0,0,0)"><font color="#000000"> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr></font></span> <span style="color: rgb(0,0,0)"><font color="#000000">></font></span> <span style="color: rgb(0,0,0)"><font color="#000000"> <wbr>1F <wbr>1F <wbr>1F <wbr>1F <wbr>1F <wbr>CD <wbr>CD <wbr>CD <wbr>CD <wbr>CD <wbr><br /></font></span></div> <p><font color="#000000"><br /> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr>瀹冨憡璇夋垜浠細鍦ㄧ86嬈″垎閰嶇殑鍐呭瓨娌℃湁閲婃斁錛屼竴鍏辨湁10瀛楄妭錛屽唴瀹圭Щ16榪涘埗鏂瑰紡鎵撳嵃緇欐垜浠湅銆?br /><br /> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr>鏈変簡榪欎簺淇℃伅錛屾垜浠彲浠ュ紑濮嬭皟璇曞唴瀛樻硠婕忎簡銆?br /><br /> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr>鎸変笅F10鍦ㄧ▼搴忕殑鍒氬紑濮嬪錛屽仠涓嬫潵錛屾墦寮Watch紿楀彛錛?br /><br /><img title="錛堣漿錛夊浣曡皟璇昅FC鐨勫唴瀛樻硠闇? height="334" alt="image002.jpg" src="http://www.cnitblog.com/images/cnitblog_com/martin/image002.jpg" width="665" border="0" real_src="http://www.cnitblog.com/images/cnitblog_com/martin/image002.jpg" /><br /><br /> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr>鍦╓atch紿楀彛涓緭鍏ワ細<br /><br /></font></p> <div style="border-right: rgb(204,204,204) 1px solid; padding-right: 5px; border-top: rgb(204,204,204) 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: rgb(204,204,204) 1px solid; width: 98%; padding-top: 4px; border-bottom: rgb(204,204,204) 1px solid; background-color: rgb(238,238,238)"><span style="color: rgb(0,0,0)"><font color="#000000">{,,msvcrtd.dll}_crtBreakAlloc</font></span></div> <p><font color="#000000"><br /> <wbr> <img title="錛堣漿錛夊浣曡皟璇昅FC鐨勫唴瀛樻硠闇? height="174" alt="image003.jpg" src="http://www.cnitblog.com/images/cnitblog_com/martin/image003.jpg" width="450" border="0" real_src="http://www.cnitblog.com/images/cnitblog_com/martin/image003.jpg" /><br /><br /> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr>鐒跺悗鏇存敼鍊間負涓婃枃鎻愬埌鐨勫垎閰嶆鏁幫細86<br /><br /><img title="錛堣漿錛夊浣曡皟璇昅FC鐨勫唴瀛樻硠闇? height="174" alt="image004.jpg" src="http://www.cnitblog.com/images/cnitblog_com/martin/image004.jpg" width="356" border="0" real_src="http://www.cnitblog.com/images/cnitblog_com/martin/image004.jpg" /><br /><br /> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr>鎺ョ潃鎸変笅F5緇х畫錛岀劧鍚庡湪絎?6嬈″垎閰嶇殑鏃跺欎細鍙戠敓涓柇錛?br /><br /><img title="錛堣漿錛夊浣曡皟璇昅FC鐨勫唴瀛樻硠闇? height="125" alt="image005.jpg" src="http://www.cnitblog.com/images/cnitblog_com/martin/image005.jpg" width="311" border="0" real_src="http://www.cnitblog.com/images/cnitblog_com/martin/image005.jpg" /><br /><br /> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr>鐒跺悗鎴戜滑鎵撳紑鍫嗘爤紿楀彛錛?br /><br /><img title="錛堣漿錛夊浣曡皟璇昅FC鐨勫唴瀛樻硠闇? height="315" alt="image006.jpg" src="http://www.cnitblog.com/images/cnitblog_com/martin/image006.jpg" width="326" border="0" real_src="http://www.cnitblog.com/images/cnitblog_com/martin/image006.jpg" /><img title="錛堣漿錛夊浣曡皟璇昅FC鐨勫唴瀛樻硠闇? height="174" alt="image007.jpg" src="http://www.cnitblog.com/images/cnitblog_com/martin/image007.jpg" width="356" border="0" real_src="http://www.cnitblog.com/images/cnitblog_com/martin/image007.jpg" /><br /><br /> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr>寰鍥炴煡鐪嬫渶榪戞垜浠嚜宸辯殑浠g爜錛屽弻鍑誨爢鏍堟垜浠嚜宸辯殑鍑芥暟閭d竴灞傦紝涓婂浘鏈夌豢鑹蹭笁瑙掔殑閭d竴灞傘傚氨瀹氫綅鍒版硠婕忔椂鍒嗛厤鐨勫唴瀛樹簡銆?br /><br /><img title="錛堣漿錛夊浣曡皟璇昅FC鐨勫唴瀛樻硠闇? height="418" alt="image008.jpg" src="http://www.cnitblog.com/images/cnitblog_com/martin/image008.jpg" width="729" border="0" real_src="http://www.cnitblog.com/images/cnitblog_com/martin/image008.jpg" /><br /></font></p> <p><font color="#000000"> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr>涔嬪悗錛屽氨鏄湅浣犵殑緙栫爜鍔熷簳浜嗐?/font></p> <p><br /></p> <p><br /></p> <p><br /> <wbr></p> <h2><a name="viewpost1_TitleUrl">浣犱篃璁歌繕娌$敤榪囩殑vc++鐨勮皟璇曠殑鍔熻兘</a></h2> <p><font color="#000000">From: http://www.cnitblog.com/Raistlin/archive/2005/12/14/5380.html</font></p> <p>鍒氬垰鍦↖T鍗氬緗戦棽閫涚殑鏃跺欑湅鍒頒簡<a >瀛ょ嫭鐨勫</a>鐨勪竴鐗囨枃绔犮?a >濡備綍璋冭瘯MFC涓殑鍐呭瓨娉勬紡</a>銆嬶紝璁查亾鐢ㄨ緗畕,,msvcrtd.dll}_crtBreakAlloc<font style="background-color: rgb(255,255,255)"><strong>榪欎釜鍙橀噺</strong></font>鏉ヨ皟璇曞唴瀛樻硠闇茬殑闂銆?br /><br />鍦?a >How to use _crtBreakAlloc to debug a memory allocation</a>浣犲彲浠ユ壘鍒拌嫳鏂囩殑鏇村畬鏁寸殑鐗堟湰錛岄潤鎬侀摼鎺ュ拰鍔ㄦ佽繛鎺ュ埌C榪愯搴撶殑鍚嶇О鏄笉涓鏍風殑<br />闈欐?_crtBreakAlloc<br />鍔ㄦ?{,,msvcr40d.dll}*__p__crtBreakAlloc() <wbr> (vc++4.0 鍜?.1鐗堟湰錛屼及璁℃病浜哄湪鐢ㄥ惂)<br /> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr>{,,msvcrtd.dll}*__p__crtBreakAlloc() <wbr> (Visual C++ 4.2 or later)<br /> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr>{,,msvcrtd.dll}_crtBreakAlloc (濂藉儚榪欐牱涔熸槸鍙互鐨?<br /><br /><br />{,,msvcrtd.dll}__p__crtBreakAlloc()鏄釜浠涔堜笢瑗垮憿錛?br /><br />鏌ョ湅msdn绱㈠紩“Advanced Breakpoint”and you will find out...<br /><br />璇硶濡備笅錛?br />{[function],[source],[exe] } location<br />{[function],[source],[exe] } variable_name<br />{[function],[source],[exe] } expression_r_r<br />榪欎釜鏄垜杞殑鏃跺欑殑鍦板潃錛?a >http://blog.sina.com.cn/s/blog_630d564a0100gq5k.html</a></p></div><img src ="http://m.shnenglu.com/czy463/aggbug/185360.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/czy463/" target="_blank">闄堝織榪?/a> 2012-07-27 19:20 <a href="http://m.shnenglu.com/czy463/archive/2012/07/27/185360.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>(杞?ASSERT涓嶸ERIFY瀹忕殑鍖哄埆 http://m.shnenglu.com/czy463/archive/2012/07/17/183967.html闄堝織榪?/dc:creator>闄堝織榪?/author>Tue, 17 Jul 2012 15:38:00 GMThttp://m.shnenglu.com/czy463/archive/2012/07/17/183967.htmlhttp://m.shnenglu.com/czy463/comments/183967.htmlhttp://m.shnenglu.com/czy463/archive/2012/07/17/183967.html#Feedback0http://m.shnenglu.com/czy463/comments/commentRss/183967.htmlhttp://m.shnenglu.com/czy463/services/trackbacks/183967.html鍘熸枃鍦板潃錛?a >http://blog.csdn.net/liuchanghe/article/details/1425080

http://blog.vckbase.com/smileonce/articles/1184.html
錛堣繖涓摼鎺?>鍏充簬Debug鍜孯elease涔嬫湰璐ㄥ尯鍒?/font> 錛?/div>

浠婂ぉ鍏徃鏈夊悓浜嬮棶鎴慉SSERT涓嶸ERIFY瀹忔湁浠涔堝尯鍒紝铏界劧騫蟲椂甯哥敤榪欎袱涓畯瀵逛竴浜涘彉閲忓湪Debug妯″紡涓嬩綔鍒ゆ柇錛屼絾涓鏃惰繕鐪熺瓟涓嶄笂鏉ヤ簩鑰呬箣闂寸殑鍏蜂綋宸埆錛岀湅鏉ュ彧鏄煡鍏剁劧涓嶇煡鍏舵墍浠ョ劧銆傚悗鏉ユ煡浜嗕竴浜涜祫鏂欙紝鎬葷畻寮勬竻妤氫簡浜岃呬箣闂寸殑鍖哄埆錛屾暣鐞嗗悗涓庡悓浜嬩氦嫻佷簡涓鐣紝鎰熻鏀惰幏榪樻槸铔ぇ鐨勩備笅闈㈠鎴戠殑鐞嗚В榪涜浜嗘葷粨錛?/p>

    1 ASSERT涓嶸ERIFY瀹忓湪Debug妯″紡涓嬩綔鐢ㄥ熀鏈竴鑷達紝浜岃呴兘瀵硅〃杈懼紡鐨勫艱繘琛岃綆楋紝濡傛灉鍊間負闈?錛屽垯浠涔堜簨涔熶笉鍋氾紱濡傛灉鍊間負0錛屽垯杈撳嚭璇婃柇淇℃伅銆?/div>
    2 ASSERT涓嶸ERIFY瀹忓湪Release妯″紡涓嬫晥鏋滃畬鍏ㄤ笉涓鏍楓侫SSERT涓嶈綆楄〃杈懼紡鐨勫鹼紝涔熶笉浼氳緭鍑鴻瘖鏂俊鎭紱VERIFY璁$畻琛ㄨ揪寮忕殑鍊鹼紝浣嗕笉綆″間負0榪樻槸闈?閮戒笉浼氳緭鍑鴻瘖鏂俊鎭?/div>
VERIFY   涓嶢SSERT鐢ㄥ湪紼嬪簭璋冭瘯涓婂茍鏃犳湰璐ㄤ笂鐨勫尯鍒? 
  In   the   debug   version   of   MFC,   the   VERIFY   macro   evaluates   its   argument.   If   the   result   is   0,    
  the   macro   prints   a   diagnostic   message   and   halts   the   program.   If   the   condition   is   nonzero,    
  it   does   nothing.  
   
  In   the   release   version   of   MFC,   VERIFY   evaluates   the   expression   but   does   not   print   or   interrupt   the   program.   For   example,   if   the   expression   is   a   function   call,   the   call   will   be   made.  
鏂█綾誨瀷  瀹氫箟
ANSI C 鏂█ void assert(int expression );
C Runtime Lib 鏂█ _ASSERT( booleanExpression );
_ASSERTE( booleanExpression );
MFC 鏂█ ASSERT( booleanExpression );
VERIFY( booleanExpression );
ASSERT_VALID( pObject );
ASSERT_KINDOF( classname, pobject );
ATL 鏂█ ATLASSERT( booleanExpression );
 姝ゅ錛孴RACE() 瀹忕殑緙栬瘧涔熷彈 _DEBUG 鎺у埗銆?br /> 鎵鏈夎繖浜涙柇璦閮藉彧鍦?Debug鐗堜腑鎵嶈緙栬瘧錛岃屽湪 Release 鐗堜腑琚拷鐣ャ傚敮涓鐨勪緥澶栨槸 VERIFY() 銆備簨瀹炰笂錛岃繖浜涘畯閮芥槸璋冪敤浜?assert() 鍑芥暟錛屽彧涓嶈繃闄勫姞浜嗕竴浜涗笌搴撴湁鍏崇殑璋冭瘯浠g爜銆傚鏋滀綘鍦ㄨ繖浜涘畯涓姞鍏ヤ簡浠諱綍紼嬪簭浠g爜錛岃屼笉鍙槸甯冨皵琛ㄨ揪寮忥紙渚嬪璧嬪箋佽兘鏀瑰彉鍙橀噺鍊肩殑鍑芥暟璋冪敤 絳夛級錛岄偅涔?Release 鐗堥兘涓嶄細鎵ц榪欎簺鎿嶄綔錛屼粠鑰岄犳垚閿欒銆傚垵瀛﹁呭緢瀹規槗鐘繖綾婚敊璇紝鏌ユ壘鐨勬柟娉曚篃寰堢畝鍗曪紝鍥犱負榪欎簺瀹忛兘宸插湪涓婇潰鍒楀嚭錛屽彧瑕佸埄鐢?VC++ 鐨?Find in Files 鍔熻兘鍦ㄥ伐紼嬫墍鏈夋枃浠朵腑鎵懼埌鐢ㄨ繖浜涘畯鐨勫湴鏂瑰啀涓涓媯鏌ュ嵆鍙傚彟澶栵紝鏈変簺楂樻墜鍙兘榪樹細鍔犲叆 #ifdef _DEBUG 涔嬬被鐨勬潯浠剁紪璇戯紝涔熻娉ㄦ剰涓涓嬨?br /> 欏轟究鍊煎緱涓鎻愮殑鏄?strong> VERIFY() 瀹忥紝榪欎釜瀹忓厑璁鎬綘灝嗙▼搴忎唬鐮佹斁鍦ㄥ竷灝旇〃杈懼紡閲屻傝繖涓畯閫氬父鐢ㄦ潵媯鏌?Windows API 鐨勮繑鍥炲箋傛湁浜涗漢鍙兘涓鴻繖涓師鍥犺屾互鐢?VERIFY() 錛屼簨瀹炰笂榪欐槸鍗遍櫓鐨勶紝鍥犱負 VERIFY() 榪濆弽浜嗘柇璦鐨勬濇兂錛屼笉鑳戒嬌紼嬪簭浠g爜鍜岃皟璇曚唬鐮佸畬鍏ㄥ垎紱伙紝鏈緇堝彲鑳戒細甯︽潵寰堝楹葷儲銆傚洜姝わ紝涓撳浠緩璁敖閲忓皯鐢ㄨ繖涓畯銆?/div>


]]> 久久国产精品一国产精品金尊| 九九久久精品国产| 狠狠色狠狠色综合久久| 伊人久久大香线蕉精品不卡| 怡红院日本一道日本久久 | 久久99国产精品久久99小说| 久久久国产一区二区三区| 国产一区二区久久久| 久久久久人妻精品一区| 久久国产香蕉视频| 天天躁日日躁狠狠久久| 久久久久免费精品国产| 亚洲v国产v天堂a无码久久| 久久久久久久亚洲Av无码| 久久有码中文字幕| 国产一久久香蕉国产线看观看| 久久精品国产第一区二区| 久久精品人人做人人爽97| 亚洲人成无码www久久久| 91久久精品视频| 久久狠狠高潮亚洲精品| 久久国产AVJUST麻豆| 国产精品熟女福利久久AV| 人妻丰满AV无码久久不卡| 久久亚洲精品无码播放| 91秦先生久久久久久久| 亚洲精品午夜国产VA久久成人| 久久99国产精品成人欧美| 国产精品久久午夜夜伦鲁鲁| 大香伊人久久精品一区二区| 成人亚洲欧美久久久久| 久久99精品国产麻豆| 久久精品国产99久久久| 久久婷婷国产综合精品| 久久人人妻人人爽人人爽| 亚洲人成网亚洲欧洲无码久久| 蜜臀久久99精品久久久久久| 精品久久久久久久中文字幕| 欧美一区二区精品久久| 亚洲国产成人久久综合一| 曰曰摸天天摸人人看久久久|