锘??xml version="1.0" encoding="utf-8" standalone="yes"?>少妇熟女久久综合网色欲,97久久综合精品久久久综合,国内精品久久九九国产精品http://www.shnenglu.com/xyjzsh/zh-cnWed, 07 May 2025 03:25:46 GMTWed, 07 May 2025 03:25:46 GMT60first demo for gtesthttp://www.shnenglu.com/xyjzsh/archive/2013/02/06/197758.html 鍛嗕漢 鍛嗕漢Wed, 06 Feb 2013 09:14:00 GMThttp://www.shnenglu.com/xyjzsh/archive/2013/02/06/197758.htmlhttp://www.shnenglu.com/xyjzsh/comments/197758.htmlhttp://www.shnenglu.com/xyjzsh/archive/2013/02/06/197758.html#Feedback0http://www.shnenglu.com/xyjzsh/comments/commentRss/197758.htmlhttp://www.shnenglu.com/xyjzsh/services/trackbacks/197758.html1.  棣栧厛緇欏嚭絎竴涓繍鐢╣test鐨刣emo
#include "stdafx.h"
#include 
"gmock/gmock-actions.h"

using namespace testing;

class Calculate
{
public:
    Calculate()
{}
    
long add(long a,long b){return a+b;}
}
;

class CalculateMock:public Calculate
{
public:
    CalculateMock():Calculate()
{}
    MOCK_METHOD2(add,
long(long a,long b));
}
;

long testFun(Calculate& cal)
{
    
return cal.add(2,3);
}

TEST(testMock,testAdd)
{
    CalculateMock obj;
    
long len = 10;
    ON_CALL(obj,add(
2,3)).WillByDefault(Return(len)); 
    EXPECT_CALL(obj,add(
2,3)).Times(1);
    
//obj.add(2,3);
    EXPECT_EQ(10, obj.add(2,3));
}


int _tmain(int argc, _TCHAR* argv[])
{
    testing::InitGoogleMock(
&argc, argv);  
    RUN_ALL_TESTS();
    
return 0;
}



鍋氱涓涓猟emo闇瑕佹敞鎰忕殑浜嬮」錛?br />1. 灝嗙敤鍒扮殑gtest,gmock,鍜屼綘鑷繁榪愮敤鐨刾roject鐢ㄥ悓鏍風(fēng)殑code generation 鐨勫艦寮忎竴鑷?灝?project property->C++->Code Generation: 璁劇疆涓猴細(xì)Multi-threaded Debug(/MTd)
2. 娣誨姞 using namespace testing, 鍚﹀垯浼?xì)鍑虹?#8216;Return’Identifier not found.榪欐牱鐨勯敊璇?br />
So excited to make it work after so much confusion, anxiety.
Fighting!!

]]>
Failed to retrieve paths under VSTemplate for the specified registry hive[杞澆]http://www.shnenglu.com/xyjzsh/archive/2012/04/26/172799.html 鍛嗕漢 鍛嗕漢Thu, 26 Apr 2012 03:13:00 GMThttp://www.shnenglu.com/xyjzsh/archive/2012/04/26/172799.htmlhttp://www.shnenglu.com/xyjzsh/comments/172799.htmlhttp://www.shnenglu.com/xyjzsh/archive/2012/04/26/172799.html#Feedback0http://www.shnenglu.com/xyjzsh/comments/commentRss/172799.htmlhttp://www.shnenglu.com/xyjzsh/services/trackbacks/172799.html

鏈榪戞洿鎹㈠紑鍙戞満鐨勭幆澧?浠嶹indows XP鎹㈠埌Windows 7錛岀粨鏋滀互鍓嶅湪XP涓嬬殑涓涓猇S2008鐨勪竴涓彃浠墮」鐩湪鏂扮幆澧冧腑緙栬瘧鑰佹槸鍑洪敊錛?/p>

AnswerFailed to retrieve paths under VSTemplate for the specified registry hive

鍦ㄧ綉涓婃悳绱簡(jiǎn)涓鐣紝緇堜簬鎵懼埌涓綃囨枃绔犱粙緇嶇殑瑙e喅鏂規(guī)錛?/p>

榪愯Vs2008 SDK-銆塗ools-銆塕eset the Microsoft Visual Studio 2008 SP1 Experimental hive

鐒跺悗閲嶆柊緙栬瘧灝監(jiān)K浜?jiǎn)銆?/p>

http://www.cnblogs.com/tubo/archive/2009/09/14/1566654.html


]]>
鍦╒S涓?build 鍜宺ebuild鐨勫尯鍒?/title><link>http://www.shnenglu.com/xyjzsh/archive/2012/02/20/166044.html</link><dc:creator> 鍛嗕漢</dc:creator><author> 鍛嗕漢</author><pubDate>Mon, 20 Feb 2012 02:54:00 GMT</pubDate><guid>http://www.shnenglu.com/xyjzsh/archive/2012/02/20/166044.html</guid><wfw:comment>http://www.shnenglu.com/xyjzsh/comments/166044.html</wfw:comment><comments>http://www.shnenglu.com/xyjzsh/archive/2012/02/20/166044.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/xyjzsh/comments/commentRss/166044.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/xyjzsh/services/trackbacks/166044.html</trackback:ping><description><![CDATA[<div id="cmsweyg" class="content"><pre id="best-answer-content" class="reply-text mb10">Build鍙紪璇戝伐紼嬩腑涓婃淇敼榪囩殑鏂囦歡錛屽茍閾炬帴紼嬪簭鐢熸垚鍙墽琛屾枃浠躲?/pre><pre class="reply-text mb10">濡傛灉浠ュ墠娌℃湁浣滆繃緙栬瘧錛屽畠浼?xì)鑷姩璋冪敤Rebuild鎿嶄綔錛屼緷嬈$紪璇戣祫婧愭枃浠躲佹簮紼嬪簭鏂囦歡絳夛紱</pre><pre class="reply-text mb10">Rebuild涓嶇鏂囦歡鏄惁浣滆繃淇敼錛岄兘浼?xì)缂栬瘧宸ソE嬩腑鐨勬墍鏈夋簮鏂囦歡銆? Visual Studio鐨勬櫤鑳芥ц繕?shù)笉澶熷Q屽畠鏈夋椂涓嶈兘闈炲父鍑嗙‘鍦板垽鏂嚭閮芥湁鍝簺鏂囦歡闇瑕侀噸鏂扮紪璇戙?/pre><pre class="reply-text mb10">浜庢槸錛屽綋浣燘uild鏃訛紝瀹冧粎浠呮妸瀹冭涓洪渶瑕侀噸鏂扮紪璇戠殑閲嶆柊緙栬瘧涓涓嬶紝鑰屾湁鏃跺欏畠鐨勫垽鏂疄闄呮槸涓嶅鐨勩?/pre><pre class="reply-text mb10">浣哛ebuild灝變笉鍚屼簡(jiǎn)錛屽畠鎶婃墍鏈夌殑涓滆タ閮介噸鏂扮紪璇戯紝涓嶇鏀硅繃鐨勶紝娌℃敼榪囩殑錛涜繕鏄畠璁や負(fù)鏈変緷璧栫殑錛屾病渚濊禆鐨勶紝緇熺粺閲嶆潵銆?/pre></div><img src ="http://www.shnenglu.com/xyjzsh/aggbug/166044.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/xyjzsh/" target="_blank"> 鍛嗕漢</a> 2012-02-20 10:54 <a href="http://www.shnenglu.com/xyjzsh/archive/2012/02/20/166044.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鐢═ortoiseGit絎竴嬈heckouthttp://www.shnenglu.com/xyjzsh/archive/2011/12/29/163121.html 鍛嗕漢 鍛嗕漢Thu, 29 Dec 2011 09:26:00 GMThttp://www.shnenglu.com/xyjzsh/archive/2011/12/29/163121.htmlhttp://www.shnenglu.com/xyjzsh/comments/163121.htmlhttp://www.shnenglu.com/xyjzsh/archive/2011/12/29/163121.html#Feedback0http://www.shnenglu.com/xyjzsh/comments/commentRss/163121.htmlhttp://www.shnenglu.com/xyjzsh/services/trackbacks/163121.html棣栧厛瀹夎msysgit錛岀劧鍚庡畨瑁匱ortoiseGit銆?br />鍙互鍦ㄧ▼搴忎腑鐪嬪埌GitGUI鍜孴ortoiseGit銆?br />浣跨敤GitGUI榪涜checkout銆?br />姝ラ涓猴細(xì)
1. 鍦ㄧ數(shù)鑴戜笂create folder錛屽懡鍚嶄負(fù)demo.
2.閫変腑demo銆傚湪鑿滃崟涓夋嫨git clone.
灝卞彲浠heckout涓嬫潵浠g爜銆?/div>

]]>
sqlserver2008閲岄潰鐨勬父鏍?/title><link>http://www.shnenglu.com/xyjzsh/archive/2011/11/03/159571.html</link><dc:creator> 鍛嗕漢</dc:creator><author> 鍛嗕漢</author><pubDate>Thu, 03 Nov 2011 08:28:00 GMT</pubDate><guid>http://www.shnenglu.com/xyjzsh/archive/2011/11/03/159571.html</guid><wfw:comment>http://www.shnenglu.com/xyjzsh/comments/159571.html</wfw:comment><comments>http://www.shnenglu.com/xyjzsh/archive/2011/11/03/159571.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/xyjzsh/comments/commentRss/159571.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/xyjzsh/services/trackbacks/159571.html</trackback:ping><description><![CDATA[ SQL鏄竴縐嶅熀浜庨泦鍚堢殑璇█(a set-based language) ,浠栨洿鎿呴暱鎿嶄綔鍜屾彁鍑轟竴緇勬暟鎹紝鑰屼笉鏄<br /> 鏁版嵁榪涜涓琛屼竴琛岀殑澶勭悊銆?br /> SQL is a set-based language ,meaning that is excels at mantipulating and retrieving<br /> set of rows ,rather than performing single row-by-row processing.<br /> 濡傛灉浣犵殑紼嬪簭閲屼竴瀹氳涓鏉′竴鏉$殑鎵ц錛岄偅涔堜竴瀹氳鍏堣冭檻浣跨敤濡倃hile寰幆錛屽瓙鏌ヨ錛?br /> 涓存椂琛紝琛ㄥ彉閲忕瓑絳夛紝濡傛灉榪欎簺閮戒笉鑳芥弧瓚寵姹傦紝鍦ㄨ冭檻浣跨敤娓告爣銆?br /> <br /> T-SQL涓父鏍囩殑鐢熷瓨鍛ㄦ湡錛?br /> 1.鐢ㄨ繑鍥炰竴涓湁鏁堢粨鏋滈泦鐨剆ql璇彞鏉ュ畾涔変竴涓父鏍囥?br />  a cursor is defined via a SQL statement that returns a valid result set.<br /> 2. 鎵撳紑娓告爣<br /> 3. 涓鏃︽父鏍囪鎵撳紑灝卞彲浠ヤ粠娓告爣涓瘡嬈″彇鍑轟竴琛屾暟鎹紝瑕佹牴鎹父鏍囩殑瀹氫箟鍙互鍚戝墠鍘繪暟鎹垨<br /> 鍚戝悗鍙栨暟鎹?br /> the rows can be fetched moving forword or backword ,depending on the original cursor definition.<br /> 4. 鏍規(guī)嵁娓告爣鐨勭被鍨嬶紝鏁版嵁鍙互琚慨鏀規(guī)垨鑰呭彧鑳借銆?br /> 5.鏈鍚庯紝鐢ㄥ畬娓告爣鍚庯紝蹇呴』琚樉紺虹殑鍏抽棴錛屽茍涓斾粠鍐呭瓨?shù)腑绉婚櫎銆?br /> <br /> 娓告爣瀹氫箟鏍煎紡錛?br /> declare cursor_name cursor<br /> [local|global]<br /> [forword_only|scroll]<br /> [static|keyset|dynamic|fast_forword]<br /> [read_only| scroll_locks|optimistic]<br /> [type_warning]<br /> for select_statement[for update [of column[,...]]]<br /> <br />The select_statement argument is the query used to define the data within the cursor. Avoid<br />using a query that hasmore columns and rows than will actually be used, because cursors, while<br />open, are kept inmemory. The UPDATE [OF column_name [,...n]] is used to specify those columns<br />that are allowed to be updated by the cursor.<br /> <img src ="http://www.shnenglu.com/xyjzsh/aggbug/159571.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/xyjzsh/" target="_blank"> 鍛嗕漢</a> 2011-11-03 16:28 <a href="http://www.shnenglu.com/xyjzsh/archive/2011/11/03/159571.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>sqlserver2008 鏉′歡寰幆http://www.shnenglu.com/xyjzsh/archive/2011/11/03/159570.html 鍛嗕漢 鍛嗕漢Thu, 03 Nov 2011 08:27:00 GMThttp://www.shnenglu.com/xyjzsh/archive/2011/11/03/159570.htmlhttp://www.shnenglu.com/xyjzsh/comments/159570.htmlhttp://www.shnenglu.com/xyjzsh/archive/2011/11/03/159570.html#Feedback0http://www.shnenglu.com/xyjzsh/comments/commentRss/159570.htmlhttp://www.shnenglu.com/xyjzsh/services/trackbacks/159570.html鏉′歡澶勭悊錛歝ondtional processing
1.case鍑芥暟浠ヤ竴涓〃杈懼紡浣滀負(fù)杈撳叆錛屼竴涓間綔涓鴻緭鍑?br />鏍煎紡錛歝ase 鍚庨潰鏈夎緭鍏ヨ〃杈懼紡錛寃hen鍚庨潰鐨勭殑姣忎竴涓〃杈懼紡閮戒細(xì)鍜宑ase鍚庨潰鐨勮緭鍏ヨ〃杈懼紡榪涜姣旇緝榪愮畻
濡傛灉鐩哥瓑錛屽垯榪斿洖錛屽惁鍒欒繑鍥瀍lse鍚庨潰鐨勮〃杈懼紡錛屽鏋滄病鏈塭lse鍒欒繑鍥濶ULL銆?br />case input_expression
     when when_expression then result_expression
     [...n]
     [else else_result_expression]
end

case鐨勭浜岀鎯呭喌錛?br />case鍚庨潰娌℃湁琛ㄨ揪寮忥紝when鍚庨潰璺熺殑鏄痓ool琛ㄨ揪寮忋傝繑鍥炵涓涓獁hen鍚庨潰璁$畻涓簍rue鐨勮〃杈懼紡
鏍煎紡涓猴細(xì)
case
 when bool_expression then result_expression
 [...n]
 else result_expression
end

2. if....else...鐨勬牸寮?br />if bool_expression
{sql_statement|sql_block}
[else
{sql_statement|sql_block}
]

3.begin ....end 鐩稿綋浜巆++涓殑{...}鐢ㄦ潵褰㈡垚涓涓唬鐮佸潡

4.鏉′歡寰幆
return,while,goto,waitfor

return
return 鐢ㄤ簬緇撴潫褰撳墠鐨剆ql鍧?鏌ヨ錛屽瓨鍌ㄨ繃紼嬨?br />綾諱技浜巆++涓殑return銆?br />return 鍙互榪斿洖涓涓暟瀛?/p>

while 綾諱技c++涓殑while錛屽悓鏍鋒敮鎸乥reak錛宑ontinue錛宐reak鏉ョ粨鏉熷綋鍓嶅唴灞傚驚鐜紝continue緇х畫(huà)褰撳墠寰幆

waitfor鏍煎紡
waitfor
 delay 'time_to_pass'//鎵ц鍓嶇瓑寰呯殑鏃墮棿錛氭牸寮忎負(fù)00:00:00灝忔椂錛氬垎閽燂細(xì)縐?br /> |time 'time_to_execute'//璁劇疆瀹為檯鎵ц鐨勬椂闂?br /> |錛坮eceive_statement錛塠,TimeOUT timeout]
 鍙互鍒╃敤waitfor灝嗘煇浜涘鏉傜殑鎵ц璁懼畾涓哄湪鐩稿絀洪棽鐨勬椂闂村唴榪涜銆?/p>

]]>
printf 杈撳嚭int64http://www.shnenglu.com/xyjzsh/archive/2011/11/01/159456.html 鍛嗕漢 鍛嗕漢Tue, 01 Nov 2011 06:29:00 GMThttp://www.shnenglu.com/xyjzsh/archive/2011/11/01/159456.htmlhttp://www.shnenglu.com/xyjzsh/comments/159456.htmlhttp://www.shnenglu.com/xyjzsh/archive/2011/11/01/159456.html#Feedback0http://www.shnenglu.com/xyjzsh/comments/commentRss/159456.htmlhttp://www.shnenglu.com/xyjzsh/services/trackbacks/159456.html__int64 long a=10;
printf("%i64u",a);

]]>
sqlserver2008涓暟鎹被鍨嬬殑浼樺厛綰?/title><link>http://www.shnenglu.com/xyjzsh/archive/2011/10/31/159382.html</link><dc:creator> 鍛嗕漢</dc:creator><author> 鍛嗕漢</author><pubDate>Mon, 31 Oct 2011 03:25:00 GMT</pubDate><guid>http://www.shnenglu.com/xyjzsh/archive/2011/10/31/159382.html</guid><wfw:comment>http://www.shnenglu.com/xyjzsh/comments/159382.html</wfw:comment><comments>http://www.shnenglu.com/xyjzsh/archive/2011/10/31/159382.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/xyjzsh/comments/commentRss/159382.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/xyjzsh/services/trackbacks/159382.html</trackback:ping><description><![CDATA[<p>褰撲袱涓笉鍚屾暟鎹被鍨嬬殑琛ㄨ揪寮忕敤榪愮畻絎︾粍鍚堝悗錛屾暟鎹被鍨嬩紭鍏堢駭瑙勫垯鎸囧畾灝嗕紭鍏堢駭杈冧綆鐨勬暟鎹被鍨嬭漿鎹負(fù)浼樺厛綰ц緝楂樼殑鏁版嵁綾誨瀷銆傚鏋滄杞崲涓嶆槸鎵鏀寔鐨勯殣寮忚漿鎹紝鍒欒繑鍥為敊璇傚綋涓や釜鎿嶄綔鏁拌〃杈懼紡鍏鋒湁鐩稿悓鐨勬暟鎹被鍨嬫椂錛岃繍綆楃殑緇撴灉渚夸負(fù)璇ユ暟鎹被鍨嬨?/p> <p>SQL Server 瀵規(guī)暟鎹被鍨嬩嬌鐢ㄤ互涓嬩紭鍏堢駭欏哄簭錛?/p> <ol><li> <p>鐢ㄦ埛瀹氫箟鏁版嵁綾誨瀷錛堟渶楂橈級(jí)</p></li><li> <p><strong>sql_varian</strong><strong>t</strong></p></li><li> <p><strong>xml</strong></p></li><li> <p><strong>datetimeoffset</strong></p></li><li> <p><strong>datetime2</strong></p></li><li> <p><strong>datetime</strong></p></li><li> <p><strong>smalldatetime</strong></p></li><li> <p><strong>date</strong></p></li><li> <p><strong>time</strong></p></li><li> <p><strong>float</strong></p></li><li> <p><strong>real</strong></p></li><li> <p><strong>decimal</strong></p></li><li> <p><strong>money</strong></p></li><li> <p><strong>smallmoney</strong></p></li><li> <p><strong>bigint</strong></p></li><li> <p><strong>int</strong></p></li><li> <p><strong>smallint</strong></p></li><li> <p><strong>tinyint</strong></p></li><li> <p><strong>bit</strong></p></li><li> <p><strong>ntext</strong></p></li><li> <p><strong>text</strong></p></li><li> <p><strong>image</strong></p></li><li> <p><strong>timestamp</strong></p></li><li> <p><strong>uniqueidentifier</strong></p></li><li> <p><strong>nvarchar</strong>錛堝寘鎷?<span id="gkuoua2" class="input">nvarchar(max)</span>錛?/p></li><li> <p><strong>nchar</strong></p></li><li> <p><strong>varchar</strong>錛堝寘鎷?<span id="4oceiau" class="input">varchar(max)</span>錛?/p></li><li> <p><strong>char</strong></p></li><li> <p><strong>varbinary</strong>錛堝寘鎷?<span id="2ewmwga" class="input">varbinary(max)</span>錛?/p></li><li> <p><strong>binary</strong>錛堟渶浣庯級(jí)</p></li></ol><img src ="http://www.shnenglu.com/xyjzsh/aggbug/159382.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/xyjzsh/" target="_blank"> 鍛嗕漢</a> 2011-10-31 11:25 <a href="http://www.shnenglu.com/xyjzsh/archive/2011/10/31/159382.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>涓縐嶇被鍨嬬殑瀛楃鎷瘋礉鍑芥暟http://www.shnenglu.com/xyjzsh/archive/2011/08/10/152943.html 鍛嗕漢 鍛嗕漢Wed, 10 Aug 2011 06:02:00 GMThttp://www.shnenglu.com/xyjzsh/archive/2011/08/10/152943.htmlhttp://www.shnenglu.com/xyjzsh/comments/152943.htmlhttp://www.shnenglu.com/xyjzsh/archive/2011/08/10/152943.html#Feedback0http://www.shnenglu.com/xyjzsh/comments/commentRss/152943.htmlhttp://www.shnenglu.com/xyjzsh/services/trackbacks/152943.html1.鍑芥暟鍘熷瀷錛?br />LPTSTR lstrcpyn(     

    LPTSTR lpString1,
    LPCTSTR lpString2,//鎸囧悜涓涓互NULL緇撴潫鐨勫瓧絎︿覆
    int iMaxLength   //浠巐pString2鎷瘋礉鍒發(fā)pString1鐨勫瓧絎︿覆涓暟錛屽寘鎷琋ULL瀛楃
);
鎴愬姛榪斿洖鎸囧悜lpString1鐨勬寚閽堬紝鍚﹀垯榪斿洖NULL銆?br />
濡傛灉lpString2鐨勯暱搴﹀ぇ浜巌MaxLength錛岃鏂規(guī)硶瀹為檯涓婃槸灝唋pString2涓殑鍓?/span>iMaxLength-1涓瓧絎?/span>鍜?span style="color: #ff0000">涓涓狽ULL瀛楃鎷瘋礉鍒發(fā)pString1涓?br />濡傛灉璇ユ柟娉曟垚鍔燂紝鍒檒pString1涓瀹氭槸浠ULL緇撴潫鐨勫瓧絎︿覆銆?br />
2._tcsncpy鏄竴涓畯錛岃冭檻鍦╱nicode鐨勬儏鍐典笅
define _tcsncpy wcsncpy

wchar_t *wcsncpy(
   wchar_t *strDest,
   const wchar_t *strSource,
   size_t count
);

Parameters
strDest

Destination string.

strSource

Source string.

count

Number of characters to be copied.

Return Value

Returns strDest. No return value is reserved to indicate an error.
涓嶈兘淇濊瘉NULL緇撴潫錛屽皢count涓瓧絎︽嫹璐濆埌strDest涓?/p>






]]>
閲嶈澆鏍囧噯杈撳嚭絎﹀彿operator<<http://www.shnenglu.com/xyjzsh/archive/2011/08/10/152941.html 鍛嗕漢 鍛嗕漢Wed, 10 Aug 2011 05:43:00 GMThttp://www.shnenglu.com/xyjzsh/archive/2011/08/10/152941.htmlhttp://www.shnenglu.com/xyjzsh/comments/152941.htmlhttp://www.shnenglu.com/xyjzsh/archive/2011/08/10/152941.html#Feedback0http://www.shnenglu.com/xyjzsh/comments/commentRss/152941.htmlhttp://www.shnenglu.com/xyjzsh/services/trackbacks/152941.htmlCString鏄垜鑷繁瀹氫箟鐨勪竴涓被
涓轟簡(jiǎn)瀹炵幇錛?br />CString str("123abvc");
cout<<str<<endl;


澹版槑錛?br /> ostream& operator<<(ostream& os,const CString& str);
瀹炵幇錛?br />

ostream& operator<<(ostream& os,const CString& str)
{
 long multiBytes = WideCharToMultiByte(CP_ACP,0,str._pData,-1,NULL,0,NULL,NULL);//鑾峰緱灝嗗瀛楄妭杞崲鎴愬鑷繁鏃訛紝鎵闇瑕佺殑瀛楄妭涓暟錛?/span>娉ㄦ剰钃濊壊閮ㄥ垎
 char *lpMultiBytes = new char[multiBytes+10];//鍒嗛厤澶氬瓧鑺傛椂鎵闇瑕佺殑鍐呭瓨
 memset(lpMultiBytes,0,multiBytes+10);

 WideCharToMultiByte(CP_ACP,0,str._pData,-1,lpMultiBytes,multiBytes+10,NULL,NULL);//璋冪敤win32api鍑芥暟灝嗗瀛楄妭鐨勮〃紺鴻漿鎹㈡垚涓哄瀛楄妭鐨勮〃紺猴紝娉ㄦ剰钃濊壊閮ㄥ垎

 os<<lpMultiBytes;

 return os;//娉ㄦ剰榪斿洖鍊?br />}



]]>
97精品国产91久久久久久| 中文字幕乱码久久午夜| 日韩人妻无码一区二区三区久久 | 中文字幕无码久久久| 国产精品美女久久久久久2018| 综合久久国产九一剧情麻豆 | 亚洲日韩欧美一区久久久久我| 亚洲天堂久久精品| 久久91这里精品国产2020| 精品久久久久国产免费| 日本国产精品久久| 亚洲国产精品综合久久一线| 国产精品久久久久久久久软件| 久久亚洲精品无码aⅴ大香| 亚洲综合伊人久久综合| 国产亚洲色婷婷久久99精品| 香蕉久久夜色精品国产小说| 久久99精品久久久久久水蜜桃| 亚洲伊人久久成综合人影院 | 精品久久国产一区二区三区香蕉| 久久www免费人成看国产片| 性高朝久久久久久久久久| 亚洲精品乱码久久久久久按摩 | 青青久久精品国产免费看 | 蜜臀av性久久久久蜜臀aⅴ麻豆| 久久精品国产亚洲AV大全| 亚洲国产成人久久精品影视| 香港aa三级久久三级老师2021国产三级精品三级在 | 久久久精品国产| 亚洲av伊人久久综合密臀性色| 精产国品久久一二三产区区别| 丁香五月网久久综合| 久久久久亚洲AV无码专区桃色| 亚洲国产精品一区二区久久hs| 婷婷综合久久狠狠色99h| 理论片午午伦夜理片久久| 久久亚洲春色中文字幕久久久| 久久成人精品| 99国产欧美精品久久久蜜芽| 尹人香蕉久久99天天拍| 久久免费小视频|