锘??xml version="1.0" encoding="utf-8" standalone="yes"?>精品久久久久久久国产潘金莲,国产成人久久精品一区二区三区 ,国产成人精品三上悠亚久久http://www.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://www.shnenglu.com/YGFaith/archive/2008/12/31/70846.htmlYGYGWed, 31 Dec 2008 05:38:00 GMThttp://www.shnenglu.com/YGFaith/archive/2008/12/31/70846.htmlhttp://www.shnenglu.com/YGFaith/comments/70846.htmlhttp://www.shnenglu.com/YGFaith/archive/2008/12/31/70846.html#Feedback0http://www.shnenglu.com/YGFaith/comments/commentRss/70846.htmlhttp://www.shnenglu.com/YGFaith/services/trackbacks/70846.html闃呰鍏ㄦ枃

YG 2008-12-31 13:38 鍙戣〃璇勮
]]>
[娓告垙寮鍙慮宸ュ巶妯″紡http://www.shnenglu.com/YGFaith/archive/2008/09/09/61432.htmlYGYGTue, 09 Sep 2008 15:37:00 GMThttp://www.shnenglu.com/YGFaith/archive/2008/09/09/61432.htmlhttp://www.shnenglu.com/YGFaith/comments/61432.htmlhttp://www.shnenglu.com/YGFaith/archive/2008/09/09/61432.html#Feedback0http://www.shnenglu.com/YGFaith/comments/commentRss/61432.htmlhttp://www.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://www.shnenglu.com/YGFaith/archive/2008/08/29/60363.htmlYGYGFri, 29 Aug 2008 07:49:00 GMThttp://www.shnenglu.com/YGFaith/archive/2008/08/29/60363.htmlhttp://www.shnenglu.com/YGFaith/comments/60363.htmlhttp://www.shnenglu.com/YGFaith/archive/2008/08/29/60363.html#Feedback4http://www.shnenglu.com/YGFaith/comments/commentRss/60363.htmlhttp://www.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://www.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://www.shnenglu.com/YGFaith/archive/2008/08/21/59524.html</guid><wfw:comment>http://www.shnenglu.com/YGFaith/comments/59524.html</wfw:comment><comments>http://www.shnenglu.com/YGFaith/archive/2008/08/21/59524.html#Feedback</comments><slash:comments>11</slash:comments><wfw:commentRss>http://www.shnenglu.com/YGFaith/comments/commentRss/59524.html</wfw:commentRss><trackback:ping>http://www.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://www.shnenglu.com/YGFaith/aggbug/59524.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/YGFaith/" target="_blank">YG</a> 2008-08-21 14:20 <a href="http://www.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://www.shnenglu.com/" title="精品视频久久久久">精品视频久久久久</a> <div class="friend-links"> </div> </div> </footer> <a href="http://www.yiranblog.cn" target="_blank">久久精品九九亚洲精品</a>| <a href="http://www.oushiliansuowa.cn" target="_blank">国产视频久久</a>| <a href="http://www.7111393.cn" target="_blank">久久精品国产网红主播</a>| <a href="http://www.obsessions.cn" target="_blank">久久精品国产亚洲AV电影</a>| <a href="http://www.huliduo.cn" target="_blank">精品国产乱码久久久久久1区2区</a>| <a href="http://www.baidudianying.cn" target="_blank">欧洲精品久久久av无码电影 </a>| <a href="http://www.hbrsksy.cn" target="_blank">久久精品国产亚洲AV影院</a>| <a href="http://www.ovyp.cn" target="_blank">欧美熟妇另类久久久久久不卡</a>| <a href="http://www.gzmwx.cn" target="_blank">久久精品成人免费看</a>| <a href="http://www.adultr.cn" target="_blank">国产香蕉久久精品综合网</a>| <a href="http://www.shuangfengjixie.com.cn" target="_blank">无码精品久久久久久人妻中字</a>| <a href="http://www.7dapei.cn" target="_blank">亚洲国产精久久久久久久</a>| <a href="http://www.888wx.cn" target="_blank">日产精品久久久久久久</a>| <a href="http://www.110xi.cn" target="_blank">88久久精品无码一区二区毛片</a>| <a href="http://www.vrfx.cn" target="_blank">精品久久久中文字幕人妻</a>| <a href="http://www.fanggumen.cn" target="_blank">国产精品欧美久久久久天天影视 </a>| <a href="http://www.fz-tm.cn" target="_blank">国产美女久久久</a>| <a href="http://www.szsantong.com.cn" target="_blank">久久久久亚洲av毛片大</a>| <a href="http://www.2vc80.cn" target="_blank">精品999久久久久久中文字幕 </a>| <a href="http://www.1rizu.cn" target="_blank">99久久99久久精品免费看蜜桃</a>| <a href="http://www.cqzmz.cn" target="_blank">久久99久久成人免费播放</a>| <a href="http://www.dashi1.cn" target="_blank">久久国产热精品波多野结衣AV</a>| <a href="http://www.yajige.cn" target="_blank">亚洲精品NV久久久久久久久久</a>| <a href="http://www.vxbw.cn" target="_blank">青青草原1769久久免费播放</a>| <a href="http://www.naoshengzhao.cn" target="_blank">亚洲综合日韩久久成人AV</a>| <a href="http://www.tv81.cn" target="_blank">思思久久99热只有频精品66</a>| <a href="http://www.jmjrt.cn" target="_blank">久久国产午夜精品一区二区三区</a>| <a href="http://www.021cp.cn" target="_blank">99久久精品日本一区二区免费</a>| <a href="http://www.mayishenggou.cn" target="_blank">久久婷婷人人澡人人爽人人爱</a>| <a href="http://www.pgos.com.cn" target="_blank">久久本道久久综合伊人</a>| <a href="http://www.eoga.cn" target="_blank">中文字幕亚洲综合久久</a>| <a href="http://www.zhunsan.cn" target="_blank">久久er热视频在这里精品</a>| <a href="http://www.wzyuan25.cn" target="_blank">久久精品国产网红主播</a>| <a href="http://www.moonlong.cn" target="_blank">久久人人爽人人爽人人片AV不</a>| <a href="http://www.rqtjc.cn" target="_blank">亚洲国产精品无码久久</a>| <a href="http://www.hzjslh.cn" target="_blank">一本久久a久久精品vr综合</a>| <a href="http://www.169diaoyu.cn" target="_blank">久久人妻AV中文字幕</a>| <a href="http://www.vygd.cn" target="_blank">久久国产免费直播</a>| <a href="http://www.tdpqb.cn" target="_blank">亚洲精品乱码久久久久66</a>| <a href="http://www.fanb1688.com.cn" target="_blank">久久精品久久久久观看99水蜜桃</a>| <a href="http://www.szmry.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>