锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲一区在线直播,新67194成人永久网站,日韩视频三区http://m.shnenglu.com/YGFaith/category/9225.htmlzh-cnWed, 31 Dec 2008 08:23:52 GMTWed, 31 Dec 2008 08:23:52 GMT60The Standard C Library http://m.shnenglu.com/YGFaith/archive/2008/12/31/70846.htmlYGYGWed, 31 Dec 2008 05:38:00 GMThttp://m.shnenglu.com/YGFaith/archive/2008/12/31/70846.htmlhttp://m.shnenglu.com/YGFaith/comments/70846.htmlhttp://m.shnenglu.com/YGFaith/archive/2008/12/31/70846.html#Feedback0http://m.shnenglu.com/YGFaith/comments/commentRss/70846.htmlhttp://m.shnenglu.com/YGFaith/services/trackbacks/70846.html闃呰鍏ㄦ枃

YG 2008-12-31 13:38 鍙戣〃璇勮
]]>
[娓告垙寮鍙慮宸ュ巶妯″紡http://m.shnenglu.com/YGFaith/archive/2008/09/09/61432.htmlYGYGTue, 09 Sep 2008 15:37:00 GMThttp://m.shnenglu.com/YGFaith/archive/2008/09/09/61432.htmlhttp://m.shnenglu.com/YGFaith/comments/61432.htmlhttp://m.shnenglu.com/YGFaith/archive/2008/09/09/61432.html#Feedback0http://m.shnenglu.com/YGFaith/comments/commentRss/61432.htmlhttp://m.shnenglu.com/YGFaith/services/trackbacks/61432.html娓告垙緙栫▼鏄垜涓氫綑鐨勭埍濂斤紝涔熷彲浠ユ彁楂樺緙栫▼鐨勫叴瓚o紝姣忓綋鎴戞湁鏃墮棿鐨勬椂鍊欏氨浼氱紪鍐欐父鎴忥紝鍩轟簬鍥劇墖鐨勯棶棰樻墍浠ラ閫夊皬娓告垙銆傝繖鏄垜姣曚笟鍚庣浜屾灝忔父鎴忥紝鐩告瘮涓婁竴嬈懼厖鍒嗙殑榪愮敤浜嗛潰鍚戝璞$殑鎶鏈紝璁╂垜浜彈涓庝笉鏂仛綾葷殑瀹屽杽,鐗瑰埆鎻愬嚭鐨勬槸浣跨敤閫掑綊鎶鏈嬌寰楃畻娉曟洿鍔犵畝媧佺‘瀹炴槸涓緢涓嶉敊鐨勬妧鏈?姣斿錛氭父鎴忎腑鐨勫湴鍥炬暣琛屾秷闄ゅ垽鏂互鍙婃秷闄ゃ?/span>

鐩墠鐨勮璁℃儏鍐靛涓?
(鏈夊啓娌″繀瑕佺殑鍑芥暟鐪佺暐浜?鍒濇浣跨敤UML鍥?

姝よ創涓昏鏄兂鎺㈣綾葷殑璁捐,鏍囬涓婂啓浜嗗伐鍘傛ā寮?榪欓噷鍙槸綆鍗曠殑鎶奤I鍒涘緩鏀懼埌鍙﹀涓涓湴鏂圭艦浜?涓ユ牸鏉ヨ搴旇涓嶇畻鏄粈涔堝伐鍘?浣嗘槸涓昏鏄唬鐮?br>鏄撹緇存姢鎬ч珮灝卞彲浠ヤ簡.寮鍙戠幆澧冿細VS2005錛學IN32銆?C++銆丏X9


濡傛灉瑕佸鍔犲叾浠栨寜閽彧瑕佺戶鎵縄mageUI,鍜屽疄鐜板熀綾葷殑瀛樿櫄鎷熷嚱鏁板氨鍙互銆傚熀綾葷殑浜嬩歡瑙﹀彂濡備笅浠g爜銆?br>

PUG_BTN_STAT CImageUI::OnEven(UINT msg, WPARAM wParam, LPARAM lParam)
{
    POINTS xy;
    xy 
= MAKEPOINTS(lParam);
    POINT xy2;
    xy2.x 
= xy.x;
    xy2.y 
= xy.y;

    
switch(msg)
    {      
    
case WM_MOUSEMOVE:
           {
            
if(PtInRect(&_displaySize,xy2))
            {
                OnPass();
                
return PASS;
            }
           }
           
break;
      
case WM_LBUTTONDOWN:
           {
            
if(PtInRect(&_displaySize,xy2))
            {
                OnClick();
                
return ONCLICK;
            }
           }
           
break;
      
case WM_LBUTTONUP:
          {
            
if(PtInRect(&_displaySize,xy2))
            {
                OnClickOut();
                
return ONCLICKOUT;
            }
          }
          
break;
    }

    OnPassOut();
    
return COMMAND;
}


娓告垙鍥劇墖濡備笅:




娓告垙涓嬭澆:
/Files/YGFaith/elsfkGame.rar

YG 2008-09-09 23:37 鍙戣〃璇勮
]]>
瑙傚療鑰呮ā寮?Subject/Observer) http://m.shnenglu.com/YGFaith/archive/2008/08/29/60363.htmlYGYGFri, 29 Aug 2008 07:49:00 GMThttp://m.shnenglu.com/YGFaith/archive/2008/08/29/60363.htmlhttp://m.shnenglu.com/YGFaith/comments/60363.htmlhttp://m.shnenglu.com/YGFaith/archive/2008/08/29/60363.html#Feedback4http://m.shnenglu.com/YGFaith/comments/commentRss/60363.htmlhttp://m.shnenglu.com/YGFaith/services/trackbacks/60363.html瀹氫箟錛氬璞¢棿鐨勪竴瀵瑰鐨勪緷璧栧叧緋伙紝褰撲竴涓璞$殑鐘舵佸彂鐢熸敼鍙樻椂錛屾墍鏈変緷璧栦簬瀹冪殑瀵硅薄閮藉緱鍒伴氱煡騫惰鑷姩鏇存柊銆?nbsp;

鍔熻兘錛氭悳绱㈡暟鎹簱錛屽綋鏈夐渶瑕佸叕甯冪殑鏁版嵁灝嗗叾鐢?span style="COLOR: #000080">鍚勭鏂瑰紡鍙戦佸嚭鍘匯?br> 
瑙傚療鑰呮ā寮?/strong>鏃犵枒鑳藉緢濂界殑鍋氬埌涓婇潰鐨勮姹傦紝鏃犺瑕佸灝戠鏂瑰紡錛屽彧瑕佸鍔犲涓戶鎵夸箣ITransfer鎺ュ彛鐨勬淳鐢熺被鍗沖彲,鏈夊緢濂界殑緇存姢鎬с?br>
浠ヤ笅鏄疄闄呯殑搴旂敤.



//鎺ュ彛
//ITransfer.h
#pragma once

class ITransfer
{
public:
    
virtual bool DoTransfer(...= 0;
}
;


//FetionTransfer.h
#pragma once
   #include "Transfer.h"
class CFetionTransfer:public ITransfer
{
public:
    CFetionTransfer();
    
~CFetionTransfer();
    
bool DoTransfer(...);
private:
    ......
}
;


//MailTransfer.h
#pragma once
   #include "Transfer.h"
class CMailTransfer: public ITransfer
{
public:
    CMailTransfer();
    
 ~CMailTransfer();
    
bool DoTransfer(...);
private:
....
}
;


//TransferPool.h
#pragma once

#include 
"Transfer.h"
#include 
<vector>
using namespace std;

class CTransferPool
{
private:
    vector
<ITransfer*> vo;
public:
    
virtual ~CTransferPool();

    
void Login(ITransfer* po);

    
void Logout(ITransfer* po);
   
//鍚戝悇鎴愬憳騫挎挱娑堟伅
    void Notify(...);
}
;

//TransferPool.cpp
#include "TransferPool.h"

CTransferPool::
~CTransferPool()
{
    vector
<ITransfer*>::iterator vi = vo.begin();
    
for (; vi != vo.end(); vi++)
    
{
                 if(*vi)
                    {
                        delete *vi;
                         *vi = NULL;
                    }

    }

}


void CTransferPool::Login(ITransfer* po)
{
    vo.push_back(po);
}


void CTransferPool::Logout(ITransfer* po)
{
    vector
<ITransfer*>::iterator vi = vo.begin();
    
for (; vi != vo.end(); vi++)
    
{
        
if (*vi == po)
            vo.erase(vi);
    }

}


void CTransferPool::Notify(...)
{
    vector
<ITransfer*>::iterator vi = vo.begin();
    
for (; vi != vo.end(); vi++)
    
{
        ITransfer 
*= *vi;
            
        (
*vi)->DoTransfer(...);
    }

}


void main
{
    CTransferPool
*m_pTranPool= new CTransferPool();
    
    CFetionTransfer 
*m_pFetionTran = new CFetionTransfer(...);
    CMailTransfer 
*m_pMailTran = new CMailTransfer(...);

    m_pTranPool
->Login(m_pFetionTran);
    m_pTranPool
->Login(m_pMailTran);
       
        
while(闇瑕佸彂閫佹秷鎭?
        
{
            m_pTranPool
->Notify();
        }


        
//閲婃斁
          if(m_pTranPool)
        
{
            delete m_pTranPool;
            m_pTranPool 
= NULL;
        }


}


YG 2008-08-29 15:49 鍙戣〃璇勮
]]>
姹備袱涓暟涓渶澶у鹼紝涓嶇敤鍒ゆ柇璇彞銆?/title><link>http://m.shnenglu.com/YGFaith/archive/2008/08/21/59524.html</link><dc:creator>YG</dc:creator><author>YG</author><pubDate>Thu, 21 Aug 2008 06:20:00 GMT</pubDate><guid>http://m.shnenglu.com/YGFaith/archive/2008/08/21/59524.html</guid><wfw:comment>http://m.shnenglu.com/YGFaith/comments/59524.html</wfw:comment><comments>http://m.shnenglu.com/YGFaith/archive/2008/08/21/59524.html#Feedback</comments><slash:comments>11</slash:comments><wfw:commentRss>http://m.shnenglu.com/YGFaith/comments/commentRss/59524.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/YGFaith/services/trackbacks/59524.html</trackback:ping><description><![CDATA[<p> </p> <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: #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>#include </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">math.h</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> <br><br></span><span style="COLOR: #0000ff">#define</span><span style="COLOR: #000000"> bits ( sizeof( int ) * 8 - 1 ) </span><span style="COLOR: #000000"><br></span><span style="COLOR: #0000ff">static</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> CheckFlag( </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> x, </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> y )  <br>{  <br></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> s1 </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> x </span><span style="COLOR: #000000">>></span><span style="COLOR: #000000"> bits;  <br></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> s2 </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> y </span><span style="COLOR: #000000">>></span><span style="COLOR: #000000"> bits;  <br>s1</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">abs(s1); <br>s2</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">abs(s2); <br></span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000"> ( s1 </span><span style="COLOR: #000000">*</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">2</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">+</span><span style="COLOR: #000000"> s2 );  <br>}  <br></span><span style="COLOR: #0000ff">static</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> SameSign( </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> Flag, </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> x, </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> y ) <br>{  <br></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> t[</span><span style="COLOR: #000000">2</span><span style="COLOR: #000000">] </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> { x, y }; <br></span><span style="COLOR: #0000ff">long</span><span style="COLOR: #000000"> z </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> x </span><span style="COLOR: #000000">-</span><span style="COLOR: #000000"> y; <br></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> s </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> z </span><span style="COLOR: #000000">>></span><span style="COLOR: #000000"> (bits</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">32</span><span style="COLOR: #000000">);  <br>s</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">abs(s); <br></span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000"> t[s]; <br>}  <br></span><span style="COLOR: #0000ff">static</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> DiffSign(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> Flag,</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> x,</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> y) 姣旇緝 <br>{  <br></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> t[</span><span style="COLOR: #000000">2</span><span style="COLOR: #000000">] </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> { x, y };  <br></span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000"> t[Flag </span><span style="COLOR: #000000">-</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">]; <br>} <br></span><span style="COLOR: #0000ff">static</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> (</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">FuncList[</span><span style="COLOR: #000000">4</span><span style="COLOR: #000000">])(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> Flag,</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> x,</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> y)</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">{SameSign, DiffSign, DiffSign, SameSign};  <br></span><span style="COLOR: #0000ff">static</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> Max( </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> x, </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> y )  <br>{  <br></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> Flag </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> CheckFlag( x, y );  <br><br></span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000"> (</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">FuncList[Flag])(Flag,x,y);  <br>} <br></span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000"> main()  <br>{ <br></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> x,y,z; <br>cout</span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">璇瘋緭鍏ユ暣鍨媥鐨勫?-32768~32767):</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">; <br>cin</span><span style="COLOR: #000000">>></span><span style="COLOR: #000000">x; <br>cout</span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">璇瘋緭鍏ユ暣鍨媦鐨勫?-32768~32767):</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">; <br>cin</span><span style="COLOR: #000000">>></span><span style="COLOR: #000000">y; <br>z</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">Max(x,y); <br>cout</span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">鏈澶х殑鏁?</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000">z</span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000">endl; <br>}  <br><br></span></div> <br><br>#define bits ( sizeof( int ) * 8 - 1 ) //縐誨姩鐨勪綅鏁?<br>static int SameSign( int Flag, int x, int y ) //鍑芥暟鍔熻兘:x,y鍚屽彿鏃剁殑姣旇緝 <br>static int DiffSign(int Flag,int x,int y) //鍑芥暟鍔熻兘:x,y寮傚彿鏃剁殑姣旇緝 <br>static int (*FuncList[4])(int Flag,int x,int y)={SameSign, DiffSign, DiffSign, SameSign}; //瀹氫箟鍑芥暟鎸囬拡鏁扮粍 <br>static int Max( int x, int y ) //鍑芥暟鍔熻兘:姹傛渶澶у?<br><br>static int CheckFlag( int x, int y ) //鍑芥暟鍔熻兘:媯嫻媥,y鐨勭鍙?<br>/* <br>錛ag 鐨勫?<br>+ +:0 <br>- +;1 <br>+ 1:2 <br>- -:3 <br>*/ <img src ="http://m.shnenglu.com/YGFaith/aggbug/59524.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/YGFaith/" target="_blank">YG</a> 2008-08-21 14:20 <a href="http://m.shnenglu.com/YGFaith/archive/2008/08/21/59524.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://m.shnenglu.com/" title="精品视频久久久久">精品视频久久久久</a> <div class="friend-links"> </div> </div> </footer> <a href="http://www.qdyshl.cn" target="_blank">亚洲午夜久久久影院伊人</a>| <a href="http://www.shdad.cn" target="_blank">国产精品美女久久久久AV福利</a>| <a href="http://www.weiyan2143.cn" target="_blank">77777亚洲午夜久久多喷</a>| <a href="http://www.xiguayo.cn" target="_blank">99精品久久精品一区二区</a>| <a href="http://www.py63.cn" target="_blank">欧美性猛交xxxx免费看久久久</a>| <a href="http://www.renliu123.cn" target="_blank">99久久夜色精品国产网站</a>| <a href="http://www.fc117.cn" target="_blank">9191精品国产免费久久</a>| <a href="http://www.6kk.org.cn" target="_blank">亚洲国产精品无码久久久蜜芽</a>| <a href="http://www.wasang.cn" target="_blank">99久久99久久精品国产片果冻 </a>| <a href="http://www.tongshi8.cn" target="_blank">青青热久久国产久精品 </a>| <a href="http://www.eaglehr.com.cn" target="_blank">国产精品一区二区久久国产</a>| <a href="http://www.6ht.com.cn" target="_blank">久久青青国产</a>| <a href="http://www.shzkyz.cn" target="_blank">国产成人综合久久久久久</a>| <a href="http://www.99605.com.cn" target="_blank">亚洲愉拍99热成人精品热久久 </a>| <a href="http://www.ryzd.com.cn" target="_blank">99国内精品久久久久久久</a>| <a href="http://www.gmyk.net.cn" target="_blank">久久中文骚妇内射</a>| <a href="http://www.ddmir.cn" target="_blank">久久人人爽人人爽人人爽</a>| <a href="http://www.sowudi.com.cn" target="_blank">久久久噜噜噜久久</a>| <a href="http://www.straddle.cn" target="_blank">99久久精品国产一区二区蜜芽</a>| <a href="http://www.dguv.cn" target="_blank">国产成人精品白浆久久69</a>| <a href="http://www.vkgx.cn" target="_blank">亚洲AV乱码久久精品蜜桃</a>| <a href="http://www.97hh.cn" target="_blank">四虎久久影院</a>| <a href="http://www.847888.com.cn" target="_blank">久久人人爽人人精品视频</a>| <a href="http://www.zgyjys.cn" target="_blank">久久精品无码专区免费</a>| <a href="http://www.pcb0.cn" target="_blank">国产日韩久久久精品影院首页</a>| <a href="http://www.bclife.cn" target="_blank">99久久国产综合精品五月天喷水 </a>| <a href="http://www.wangjunyao.cn" target="_blank">91精品国产高清91久久久久久</a>| <a href="http://www.j2142.cn" target="_blank">久久人人添人人爽添人人片牛牛</a>| <a href="http://www.aidelu.cn" target="_blank">久久久黄片</a>| <a href="http://www.uzxin.cn" target="_blank">久久久久久免费视频</a>| <a href="http://www.xiatiancaiwu.cn" target="_blank">香蕉久久夜色精品国产尤物</a>| <a href="http://www.sbsinc.com.cn" target="_blank">久久精品成人欧美大片</a>| <a href="http://www.dgabs.cn" target="_blank">亚洲国产精品嫩草影院久久 </a>| <a href="http://www.kydxx.cn" target="_blank">久久精品蜜芽亚洲国产AV</a>| <a href="http://www.51peini.cn" target="_blank">日韩精品无码久久久久久</a>| <a href="http://www.aijialicai.com.cn" target="_blank">亚洲国产一成人久久精品</a>| <a href="http://www.z5u5.cn" target="_blank">久久影院综合精品</a>| <a href="http://www.037648.cn" target="_blank">久久午夜电影网</a>| <a href="http://www.chezhuangbao.cn" target="_blank">九九久久精品无码专区</a>| <a href="http://www.mxylzc.cn" target="_blank">狠狠色丁香婷婷久久综合</a>| <a href="http://www.shilanghong.cn" target="_blank">中文字幕无码免费久久</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>