锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产午夜久久影院,91亚洲国产成人久久精品网址,久久综合伊人77777麻豆http://www.shnenglu.com/jimsmorong/category/7733.html1234567890zh-cnWed, 25 Jul 2012 07:55:05 GMTWed, 25 Jul 2012 07:55:05 GMT60灝忓皬灝忓皬寮婧愭鍒欒〃杈懼紡嫻嬭瘯宸ュ叿http://www.shnenglu.com/jimsmorong/archive/2012/07/11/182874.htmlDK_jimsDK_jimsWed, 11 Jul 2012 11:57:00 GMThttp://www.shnenglu.com/jimsmorong/archive/2012/07/11/182874.htmlhttp://www.shnenglu.com/jimsmorong/comments/182874.htmlhttp://www.shnenglu.com/jimsmorong/archive/2012/07/11/182874.html#Feedback0http://www.shnenglu.com/jimsmorong/comments/commentRss/182874.htmlhttp://www.shnenglu.com/jimsmorong/services/trackbacks/182874.html

-1 鏈夋洿鏂?br />   1. 涓枃鍖?/p>

   2. 鍙皟鏁村ぇ灝?/div>
   3. 鏈変釜涓嬫媺妗?鍙互閫夋嫨甯哥敤鐨勮〃杈懼紡
   4. 鐜╂浜虹殑姝e垯琛ㄨ揪寮?鏉ヨВ鏋愪竴涓枃鏈牸寮?濂借繃寮?/div>
   5. 鏀逛簡鍥炬爣
-0.1 鍥劇墖:

-0.2 exe 涓嬭澆: 
http://mregtest.googlecode.com/files/MRegTest%20v0.1.7z 

-0.3 灝忕▼搴忓姛鑳芥湁闄?闈炲父闈炲父鐨勬湁闄?娌′粈涔堣鐨?br />      紼嬪簭鏈変簺濂界帺
      鏈変釜閰嶇疆鐨勬枃鏈?nbsp;
  鏍煎紡鏄繖鏍風殑 鎴戠殑灝忕▼搴忎細瑙f瀽鐨勮繖鏍風殑鏂囨湰 
id 0.IP Adress
{
source text = "127.0.0.1";
regex text  = "(\d+).(\d+).(\d+).(\d+)";
replace text    = "";
};
浠g爜鏄繖鏍風殑: 
 1      const wregex rex(L"id\\s+[0-9]+\\.(.*)\\s*\\{\\s+source\\s+text\\s*=\\s*\"(.*)\";\\s*\\s+regex\\s+text\\s*=\\s*\"(.*)\";\\s*\\s+replace\\s+text\\s*=\\s*\"(.*)\";\\s*\\};");
 2 
 3 
 4     wstring::const_iterator text_beg = text.begin();
 5     wstring::const_iterator text_end = text.end();
 6     wsmatch rmatch;
 7     while( regex_search(text_beg,text_end,rmatch,rex))
 8     {
 9         room lroom;
10         if( rmatch.size() == 5)
11         {
12             lroom.name = rmatch[1].str();
13             lroom.source_text = rmatch[2].str();
14             lroom.regex_text = rmatch[3].str();
15             lroom.replace_text = rmatch[4].str();
16             rooms.push_back(lroom);
17         }
18         text_beg = rmatch[0].second;
19     }

-0.4 鏄笉鏄緢濂界帺鍛?
   鐩稿叧鍒嗚В鍙互鏌ョ湅婧愮爜  alway_regex_fuck.txt 

-0.5 榪樻湁鍥炶濺閿浜?鍥炶濺涓嶄細鍏抽棴瀵硅瘽妗?br />




0. 鏍囬錛氥灝忓皬灝忓皬寮婧愭鍒欒〃杈懼紡嫻嬭瘯宸ュ叿

 

1. 鍓嶈█: C++鏍囧噯搴?鏈夋鍒欒〃杈懼紡鏀寔浜?br />   vs2008 sp1 閲屾湁  鍦ㄥ懡鍚嶇┖闂?std::tr1閲?/font>

2. 姝f枃: 榪欎釜姝e垯琛ㄨ揪寮忔槸澶ц瘽棰?鎴戝氨涓嶅璇翠簡
      鏈夐亾鏄?緙栫▼涓嶆噦姝e垯 涓嶅鍥炲縐嶇暘钖?/font>

3. 闄勫綍: 鍖歸厤 鏁板瓧    [0-9] or \d
      鍖歸厤 絀虹櫧鐨?nbsp; [ \t\r\n] or \s
      鍖歸厤 瀛楃    [A-Za-z]  or \w

4. 闄勫綍2: 鍦板潃寮婧愬湪榪欓噷 http://code.google.com/p/mregtest/

5. 闄勫綍3: 鎴浘:


6. exe涓嬭澆: 姝e垯琛ㄨ揪寮忓皬灝忓皬宸ュ叿 http://mregtest.googlecode.com/files/MRegTest.exe



DK_jims 2012-07-11 19:57 鍙戣〃璇勮
]]>com瀹夊叏鏁扮粍綾誨瀷http://www.shnenglu.com/jimsmorong/archive/2011/12/25/162786.htmlDK_jimsDK_jimsSun, 25 Dec 2011 10:43:00 GMThttp://www.shnenglu.com/jimsmorong/archive/2011/12/25/162786.htmlhttp://www.shnenglu.com/jimsmorong/comments/162786.htmlhttp://www.shnenglu.com/jimsmorong/archive/2011/12/25/162786.html#Feedback0http://www.shnenglu.com/jimsmorong/comments/commentRss/162786.htmlhttp://www.shnenglu.com/jimsmorong/services/trackbacks/162786.htmlcom瀹夊叏鏁扮粍綾誨瀷

鍒涘緩 澶嶅埗鏁版嵁緇欏畠 渚嬪榪欐牱:

 1// set up safearray -  SAFEARRAY is defined OAIDL.H
 2 SAFEARRAY *psa;
 3
 4 // create a safe array to store the stream data
 5 psa = SafeArrayCreateVector( VT_UI1, 0, llen );
 6
 7 // pointers to byte arrays
 8 unsigned char *pData = NULL;
 9
10 // get a pointer to the safe array. Locks the array.
11 SafeArrayAccessData( psa, (void**)&pData );
12 
13 // copy the memory file into the safearray
14 memcpy( pData, pMemData, llen );
15
16 // clean up buffer
17 delete pMemData;
18 
19 // unlock access to safearray
20 SafeArrayUnaccessData(psa);
21
22 // return a pointer to a SAFEARRAY allocated here
23 return psa;
24
25



 鎺ユ敹 澶嶅埗鏁版嵁緇欏埆浜?渚嬪榪欐牱: 

 1 long lLength;   // number of bytes
 2 char *pBuffer;   // buffer pointer
 3 
 4 // lock access to array data
 5 SafeArrayAccessData( psa, (void**)&pBuffer  );
 6
 7 // get number of elements in array. This is the number of bytes
 8 lLength = psa->rgsabound->cElements;
 9
10 // attach the buffer to the memory file
11 memfile.Attach((unsigned char*)pBuffer, lLength);
12
13 // start at beginning of buffer
14 memfile.SeekToBegin();
15
16 // create an archive with the attached memory file
17 CArchive ar(&memfile, CArchive::load | CArchive::bNoFlushOnDelete);
18
19 // document pointer is not used
20 ar.m_pDocument = NULL;
21
22 // inflate the object and get the pointer
23 rpObj = ar.ReadObject(0);
24
25 // close the archive
26 ar.Close();
27
28 // Note: pBuffer is freed when the SAFEARRAY is destroyed
29 // Detach the buffer and close the file
30 pBuffer = (char*) memfile.Detach();
31
32
33 // release the safearray buffer
34 SafeArrayUnaccessData( psa );
35







DK_jims 2011-12-25 18:43 鍙戣〃璇勮
]]>
寰蔣 CRT 鍑芥暟琛?/title><link>http://www.shnenglu.com/jimsmorong/archive/2011/11/15/160212.html</link><dc:creator>DK_jims</dc:creator><author>DK_jims</author><pubDate>Tue, 15 Nov 2011 15:55:00 GMT</pubDate><guid>http://www.shnenglu.com/jimsmorong/archive/2011/11/15/160212.html</guid><wfw:comment>http://www.shnenglu.com/jimsmorong/comments/160212.html</wfw:comment><comments>http://www.shnenglu.com/jimsmorong/archive/2011/11/15/160212.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/jimsmorong/comments/commentRss/160212.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/jimsmorong/services/trackbacks/160212.html</trackback:ping><description><![CDATA[     鎽樿:    寰蔣 CRT 鍑芥暟琛ㄧ敤鍑犻〉word鍏ㄩ儴鍐欏嚭鏉? Mrs Crt function 鏂囨尅 Mrs Crt function 鏂囨尅   鐗堟湰淇℃伅: 鐗堟湰 鏃ユ湡 浣滆? 淇敼鍐呭 1.0 2011-10-27 Mrs ...  <a href='http://www.shnenglu.com/jimsmorong/archive/2011/11/15/160212.html'>闃呰鍏ㄦ枃</a><img src ="http://www.shnenglu.com/jimsmorong/aggbug/160212.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/jimsmorong/" target="_blank">DK_jims</a> 2011-11-15 23:55 <a href="http://www.shnenglu.com/jimsmorong/archive/2011/11/15/160212.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>錛丆++ 鏂囨湰璇誨啓 錛?/title><link>http://www.shnenglu.com/jimsmorong/archive/2009/01/31/72745.html</link><dc:creator>DK_jims</dc:creator><author>DK_jims</author><pubDate>Sat, 31 Jan 2009 11:46:00 GMT</pubDate><guid>http://www.shnenglu.com/jimsmorong/archive/2009/01/31/72745.html</guid><wfw:comment>http://www.shnenglu.com/jimsmorong/comments/72745.html</wfw:comment><comments>http://www.shnenglu.com/jimsmorong/archive/2009/01/31/72745.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.shnenglu.com/jimsmorong/comments/commentRss/72745.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/jimsmorong/services/trackbacks/72745.html</trackback:ping><description><![CDATA[C++ 鏂囨湰璇誨啓<br><br><br>C++鏂囨湰璇誨啓淇濆瓨 濡傛灉鏄腑鏂?鐢╳ofstream 瀹藉瓧淇濆瓨 涓枃瀛?br><br>绔熺劧涓嶅彲浠?br><br>鍘熸潵 鏄鐢ㄤ竴涓猯ocal 鏈湴鐜鎵嶅彲浠ョ殑<br><br>浠g爜濡備笅錛?br><br>#include "stdafx.h"<br>#include <fstream><br>//#include <><br>int _tmain(int argc, _TCHAR* argv[])<br>{<br>    std::locale::global(std::locale(""));<br><br>    wchar_t a[140]= L"涓腑";<br>    std::wifstream f;<br>    f.open(L"1.txt");<br>    //f.write(a,10);<br>    f.read(a,140);<br><br>    <br>    f.close();<br>    //getchar();<br>    return 0;<br>}<br><img src ="http://www.shnenglu.com/jimsmorong/aggbug/72745.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/jimsmorong/" target="_blank">DK_jims</a> 2009-01-31 19:46 <a href="http://www.shnenglu.com/jimsmorong/archive/2009/01/31/72745.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>stl::sorthttp://www.shnenglu.com/jimsmorong/archive/2009/01/12/71768.htmlDK_jimsDK_jimsSun, 11 Jan 2009 16:12:00 GMThttp://www.shnenglu.com/jimsmorong/archive/2009/01/12/71768.htmlhttp://www.shnenglu.com/jimsmorong/comments/71768.htmlhttp://www.shnenglu.com/jimsmorong/archive/2009/01/12/71768.html#Feedback1http://www.shnenglu.com/jimsmorong/comments/commentRss/71768.htmlhttp://www.shnenglu.com/jimsmorong/services/trackbacks/71768.html鍛 鍐欎簺鍏ラ棬綰х殑 鍏呭厖鏁?br>stl 閲岄潰鏈変釜綆楁硶鐨?sort

澶ф鏄敤閭d釜partion sort 綆楁硶鍚?鍏跺疄鎴戜笉澶竻妤?鏍規(guī)嵁OO 鎬濇兂 涓嶅簲璇ュ幓鐭ラ亾 瀵硅繖涓濇兂鏈変繚嫻?br>
浣跨敤涓婃柟渚?鏀懼叆璧峰鐨勪綅緗凱浠e櫒 鐒跺悗鍐嶆斁鍏ヨ嚜宸辯殑鍑芥暟瀵硅薄灝卞彲浠ヤ簡

鍐欎釜紺轟緥錛?br>
#include <stdio.h>
#include <tchar.h>
#include <algorithm>
#include <iostream>
#include <utility>
#include <stdlib.h>
#include <vector>

template<int iType>
struct mygreater
{     
    bool operator()(const std::pair<int,float>  & _Left, const std::pair<int,float>  & _Right) const
    {   
        if (iType == 1)
        {
            return (_Left.first > _Right.first);
        }
        else if (iType == 2)
        {
            return (_Left.second > _Right.second);
        }
        else
        {
             //error
        }
       
    }
};

void myprint(const std::pair<int,float>  & i)
{
    std::cout<< i.first << " " << i.second << "\n";
}

int _tmain(int argc, _TCHAR* argv[])
{
    std::vector<std::pair<int,float> > gVecpair;
    for (int i = 0; i <= 10; i++ )
        gVecpair.push_back( std::make_pair( rand(),(float)rand()));
   
    std::for_each(gVecpair.begin(),gVecpair.end(),myprint);
    std::sort(gVecpair.begin(),gVecpair.end(),mygreater<1>( ));
    std::for_each(gVecpair.begin(),gVecpair.end(),myprint);

    std::cout<<"\n";

    std::sort(gVecpair.begin(),gVecpair.end(),mygreater<2>( ));
    std::for_each(gVecpair.begin(),gVecpair.end(),myprint);

    getchar();
    return 0;
}




DK_jims 2009-01-12 00:12 鍙戣〃璇勮
]]>
亚洲精品乱码久久久久久蜜桃不卡| 婷婷久久综合| 久久精品国产亚洲av瑜伽| 久久久亚洲AV波多野结衣| 午夜精品久久久内射近拍高清| 内射无码专区久久亚洲| 欧美熟妇另类久久久久久不卡| 久久九九亚洲精品| 97精品依人久久久大香线蕉97| 亚洲天堂久久精品| 国产一区二区精品久久| 久久精品无码专区免费| 久久精品国产亚洲AV电影| 久久久久噜噜噜亚洲熟女综合| 久久精品国产亚洲AV电影| 伊人久久精品影院| 久久国产精品偷99| 天天综合久久久网| 久久久婷婷五月亚洲97号色 | 国产免费久久精品99re丫y| 久久香蕉一级毛片| 18禁黄久久久AAA片| 久久久久国产精品麻豆AR影院| 久久99精品久久久久久动态图 | 国内精品人妻无码久久久影院| 国产精品激情综合久久| 久久亚洲AV成人无码国产| 久久久亚洲精品蜜桃臀| 色综合色天天久久婷婷基地| 久久午夜羞羞影院免费观看| 97精品伊人久久大香线蕉| 久久亚洲视频| 午夜精品久久久久9999高清| 久久精品国产亚洲Aⅴ蜜臀色欲| 伊人久久综合热线大杳蕉下载| 国产91色综合久久免费分享| 乱亲女H秽乱长久久久| 久久亚洲精品成人av无码网站| 久久午夜无码鲁丝片| 久久不射电影网| 99久久国产亚洲高清观看2024|