锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久国产热这里只有精品,久久伊人精品青青草原日本,色综合久久久久综合体桃花网http://cppblog.com/mythma/category/146.htmlzh-cnWed, 15 Nov 2017 22:09:52 GMTWed, 15 Nov 2017 22:09:52 GMT60VS2010 Win32緙栬瘧澶辮觸涓渚?/title><link>http://www.shnenglu.com/mythma/archive/2017/11/15/215349.html</link><dc:creator>鍔涗負</dc:creator><author>鍔涗負</author><pubDate>Wed, 15 Nov 2017 11:07:00 GMT</pubDate><guid>http://www.shnenglu.com/mythma/archive/2017/11/15/215349.html</guid><wfw:comment>http://www.shnenglu.com/mythma/comments/215349.html</wfw:comment><comments>http://www.shnenglu.com/mythma/archive/2017/11/15/215349.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/mythma/comments/commentRss/215349.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/mythma/services/trackbacks/215349.html</trackback:ping><description><![CDATA[<div><br />鍦ㄧ紪璇戜竴涓涓夋柟搴撶殑鏃跺欏嚭鐜板涓嬮敊璇細<br /><br />C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.<span style="background-color: #ffffff; color: #333333; font-family: arial; font-size: 13px;">Cpp.Win32.Targets(157,5):<br /><br />鐥囩姸<br />Release緙栬瘧娌¢棶棰橈紝鍙湁Debug鍑虹幇涓婅堪閿欒銆?br /><br />“瑙e喅”鍔炴硶”<br />鎶婅皟璇曚俊鎭牸寮忚緗負絀?br />C/C+++/甯歌/</span><span style="color: #333333; font-family: arial; font-size: 13px; background-color: #ffffff;">璋冭瘯淇℃伅鏍煎紡</span></div><img src ="http://www.shnenglu.com/mythma/aggbug/215349.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/mythma/" target="_blank">鍔涗負</a> 2017-11-15 19:07 <a href="http://www.shnenglu.com/mythma/archive/2017/11/15/215349.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>std::vector浣跨敤涓渚?/title><link>http://www.shnenglu.com/mythma/archive/2015/11/03/using-std-vector-in-point-cloud.html</link><dc:creator>鍔涗負</dc:creator><author>鍔涗負</author><pubDate>Tue, 03 Nov 2015 08:43:00 GMT</pubDate><guid>http://www.shnenglu.com/mythma/archive/2015/11/03/using-std-vector-in-point-cloud.html</guid><wfw:comment>http://www.shnenglu.com/mythma/comments/212174.html</wfw:comment><comments>http://www.shnenglu.com/mythma/archive/2015/11/03/using-std-vector-in-point-cloud.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/mythma/comments/commentRss/212174.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/mythma/services/trackbacks/212174.html</trackback:ping><description><![CDATA[<h1>1. 鍑嗗</h1><p style="margin: 4px 0px; padding: 2px 0px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: normal; background-color: #ffffff;">浣跨敤std::vector搴旇鐭ラ亾鍑犵偣錛?/p><p style="margin: 4px 0px; padding: 2px 0px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: normal; background-color: #ffffff;">錛?錛夊唴瀛樿繛緇殑瀹瑰櫒錛屾湁鐐瑰儚鏁扮粍</p><p style="margin: 4px 0px; padding: 2px 0px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: normal; background-color: #ffffff;">錛?錛変笌std::list鐩告瘮錛屾彃鍏ュ拰鍒犻櫎鍏冪礌姣旇緝鎱? 鍥犱負鏁版嵁榪佺Щ</p><p style="margin: 4px 0px; padding: 2px 0px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: normal; background-color: #ffffff;">錛?錛夋坊鍔犲厓绱犲彲鑳戒細寮曞彂鍐呭瓨鍒嗛厤鍜屾暟鎹縼縐匯?/p><h1>2. 闂</h1><p style="margin: 4px 0px; padding: 2px 0px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: normal; background-color: #ffffff;">AnyCAD::API::PointCloudNode浣跨敤FloatList  鍙妔td::vector<float>鏉ュ瓨鍌ㄤ竴浜涘垪鐨勭偣[x0, y0, z0, x1, y1, z1, .....]:</p><table xhe-border"="" style="border-color: #d3d3d3;"><tbody><tr><td align="right" valign="top" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; border-color: #d3d3d3;">void </td><td valign="bottom" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; border-color: #d3d3d3;">SetPoints (const FloatList &buffer)</td></tr></tbody></table><p style="margin: 4px 0px; padding: 2px 0px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: normal; background-color: #ffffff;"><br /></p><p style="margin: 4px 0px; padding: 2px 0px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: normal; background-color: #ffffff;">鑻ユ兂瑕佹樉紺簄涓偣錛岄渶瑕?n鐨勯暱搴?<br /></p><p style="margin: 4px 0px; padding: 2px 0px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: normal; background-color: #ffffff;"><br /></p><p style="margin: 4px 0px; padding: 2px 0px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: normal; background-color: #ffffff;">涓轟簡鍦ㄧ┖闂翠腑妯℃嫙鏌愪釜鐗╀綋鐨勮繍鍔ㄨ建榪癸紝鍗充竴緋誨垪鐨勭偣錛屽浣曟墠鑳介珮鏁堢殑瀹炵幇鍔ㄦ佺粯鍒跺憿錛?/p><p style="margin: 4px 0px; padding: 2px 0px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: normal; background-color: #ffffff;"><img src="http://ww2.sinaimg.cn/bmiddle/72555d50gw1exnuml7rvuj20gj08yaar.jpg" _xhe_src="http://ww2.sinaimg.cn/bmiddle/72555d50gw1exnuml7rvuj20gj08yaar.jpg" style="max-width: 98%;" alt="" /><br /></p><p style="margin: 4px 0px; padding: 2px 0px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: normal; background-color: #ffffff;"><br /></p><h1>3. 鏂規</h1><p style="margin: 4px 0px; padding: 2px 0px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: normal; background-color: #ffffff;">鏈鍩烘湰鐨勫姙娉曪細</p><p style="margin: 4px 0px; padding: 2px 0px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: normal; background-color: #ffffff;">瀹氫箟鐨勫彉閲?</p><pre name="code" style="margin-top: 4px; margin-bottom: 4px; background-color: #f0f0f0;">PointCloudNode m_PointCoud; <br />std::_vector<float> m_Points;</pre><br />姣忔璋冪敤push_back娣誨姞鐐癸細<p> </p><p style="margin: 4px 0px; padding: 2px 0px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: normal; background-color: #ffffff;"></p><pre name="code" style="margin-top: 4px; margin-bottom: 4px; background-color: #f0f0f0;"><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #0000FF; ">void</span> onAddPoint(x, y, z) <br />{<br />      m_Points.push(x);<br />      m_Points.push(y); <br />      m_Points.push(z);<br />      m_PointCloud.SetPoints(m_Points);<br />      render();<br /> }</div></pre><br />“浼樺寲1”錛氫負浜嗗噺灝戞樉紺虹殑鐐瑰お澶氬紩璧峰唴瀛橀棶棰樺拰鏁堢巼闂錛屽彲浠ラ檺瀹氭樉紺虹殑鐐圭殑涓暟<p> </p><p style="margin: 4px 0px; padding: 2px 0px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: normal; background-color: #ffffff;"></p><pre name="code" style="margin-top: 4px; margin-bottom: 4px; background-color: #f0f0f0;">int MAX_POINT3_COUNT = MAX_POINT_COUNT * 3;</pre><br /><p> </p><p style="margin: 4px 0px; padding: 2px 0px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: normal; background-color: #ffffff;"></p><pre name="code" style="margin-top: 4px; margin-bottom: 4px; background-color: #f0f0f0;"><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #0000FF; ">void</span> onAddPointV1(x, y, z) <br />{<br />    <span style="color: #0000FF; ">if</span>(m_Points.size() > MAX_POINT3_COUNT)<br />    { <br />        m_Points.erase(m_Points.begin());<br />         m_Points.erase(m_Points.begin());<br />         m_Points.erase(m_Points.begin());<br />     }<br />      m_Points.push(x);<br />      m_Points.push(y);<br />      m_Points.push(z);<br />      m_PointCloud.SetPoints(m_Points);<br />           render();<br /> }</div></pre><p> </p><p style="margin: 4px 0px; padding: 2px 0px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: normal; background-color: #ffffff;">onAddPointV1寮曞叆浜嗕粈涔堥棶棰橈紵</p><p style="margin: 4px 0px; padding: 2px 0px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: normal; background-color: #ffffff;"><br /></p><p style="margin: 4px 0px; padding: 2px 0px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: normal; background-color: #ffffff;">浼樺寲2錛氶伩鍏嶆瘡嬈ector閮介噸鏂板垎閰嶅唴瀛橈紝鎸囧畾vector鐨勫垵濮嬪唴瀛樺ぇ灝?/p><p style="margin: 4px 0px; padding: 2px 0px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: normal; background-color: #ffffff;"></p><pre name="code" style="margin-top: 4px; margin-bottom: 4px; background-color: #f0f0f0;">m_Points.reserve(MAX_POINT3_COUNT);</pre><br />浼樺寲3錛氶伩鍏嶇敱浜庡垹闄ゅご鍏冪礌寮曟搸鐨勬暟鎹縼縐?p> </p><p style="margin: 4px 0px; padding: 2px 0px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: normal; background-color: #ffffff;">鏂板姞鍏ョ殑鐐規斁鍦ㄩ槦灝捐繕鏄槦澶達紝瀵逛簬鏄劇ず鑰岃█錛岀粨鏋滈兘鏄竴鏍蜂竴鏍風殑銆傛墍浠ュ彲浠ヨ鐩?#8221;榪囨湡鐨?鐨勭偣銆?/p><p style="margin: 4px 0px; padding: 2px 0px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: normal; background-color: #ffffff;">int m_TotalCount = 0;</p><p style="margin: 4px 0px; padding: 2px 0px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: normal; background-color: #ffffff;"></p><pre name="code" style="margin-top: 4px; margin-bottom: 4px; background-color: #f0f0f0;"><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #0000FF; ">void</span> onAddPointV3(x, y, z) <br />{ <br />      ++m_TotalCount;<br />       <span style="color: #0000FF; ">if</span>(m_TotalCount <= MAX_POINT_COUNT)<br />       { <br />               m_Points.push_back(x); <br />               m_Points.push_back(y);<br />                m_Points.push_back(z);<br />       }<br />       <span style="color: #0000FF; ">else</span><br />       {<br />             <span style="color: #0000FF; ">int</span> pos = (m_TotalCount % 100 - 1) * 3;<br />            m_Points[pos] = x;<br />            m_Points[pos+1] = y; <br />           m_Points[pos+2] = z; <br />      }<br />         m_PointCloud.SetPoints(m_Points);<br />              render(); <br />}</div></pre><br /><h1>4 鎬葷粨</h1><p> </p><p style="margin: 4px 0px; padding: 2px 0px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: normal; background-color: #ffffff;">鐣?/p><p style="margin: 4px 0px; padding: 2px 0px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: normal; background-color: #ffffff;"><br /></p><p style="margin: 4px 0px; padding: 2px 0px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: normal; background-color: #ffffff;"><br /></p><p style="margin: 4px 0px; padding: 2px 0px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: normal; background-color: #ffffff;"><br /></p><img src ="http://www.shnenglu.com/mythma/aggbug/212174.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/mythma/" target="_blank">鍔涗負</a> 2015-11-03 16:43 <a href="http://www.shnenglu.com/mythma/archive/2015/11/03/using-std-vector-in-point-cloud.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>istreambuf_iterator 浣跨敤http://www.shnenglu.com/mythma/archive/2015/08/07/istreambuf_iterator.html鍔涗負鍔涗負Fri, 07 Aug 2015 05:42:00 GMThttp://www.shnenglu.com/mythma/archive/2015/08/07/istreambuf_iterator.htmlhttp://www.shnenglu.com/mythma/comments/211500.htmlhttp://www.shnenglu.com/mythma/archive/2015/08/07/istreambuf_iterator.html#Feedback0http://www.shnenglu.com/mythma/comments/commentRss/211500.htmlhttp://www.shnenglu.com/mythma/services/trackbacks/211500.html
        std::string str;
        file.seekg(0, std::ios::end);
        str.reserve(file.tellg());
        file.seekg(0, std::ios::beg);
        str.assign((std::istreambuf_iterator<char>(file)), std::istreambuf_iterator<char>());


鍔涗負 2015-08-07 13:42 鍙戣〃璇勮
]]>
涓存椂瀵硅薄寮曠敤http://www.shnenglu.com/mythma/archive/2015/01/13/209497.html鍔涗負鍔涗負Tue, 13 Jan 2015 06:24:00 GMThttp://www.shnenglu.com/mythma/archive/2015/01/13/209497.htmlhttp://www.shnenglu.com/mythma/comments/209497.htmlhttp://www.shnenglu.com/mythma/archive/2015/01/13/209497.html#Feedback1http://www.shnenglu.com/mythma/comments/commentRss/209497.htmlhttp://www.shnenglu.com/mythma/services/trackbacks/209497.html姣斿錛?br />
int a = 100;
int b = 200;
int& c = a - b; 

鍐嶅錛?br />
int sum(int& a, int& b)
{
  return a + b;
}

sum(1, 2);


鍐嶆瘮濡傚彇涓存椂瀵硅薄鐨勫湴鍧錛?br />

void div(MyClass* a)
{
   //.
}

div(&MyClass());


浠ヤ笂鐢ㄦ硶VS绔熺劧緇熺粺鍏佽緙栬瘧閫氳繃銆?br />


鍔涗負 2015-01-13 14:24 鍙戣〃璇勮
]]>
甯冨皵鍙橀噺鍒濆鍊?2)http://www.shnenglu.com/mythma/archive/2015/01/06/debug-release-bool-f5-ctrl-f5.html鍔涗負鍔涗負Tue, 06 Jan 2015 08:43:00 GMThttp://www.shnenglu.com/mythma/archive/2015/01/06/debug-release-bool-f5-ctrl-f5.htmlhttp://www.shnenglu.com/mythma/comments/209406.htmlhttp://www.shnenglu.com/mythma/archive/2015/01/06/debug-release-bool-f5-ctrl-f5.html#Feedback0http://www.shnenglu.com/mythma/comments/commentRss/209406.htmlhttp://www.shnenglu.com/mythma/services/trackbacks/209406.html涔嬪墠閬囧埌榪囩殑闂-甯冨皵鍙橀噺鍒濆鍊?/a> 錛屾渶榪戝張閬囧埌浜嗐?br />
閲嶆柊鏁寸悊涓涓媌ool鍦╒S2010涓殑鏈垵濮嬪寲鏃跺欑殑鍊鹼細

 

F5 錛氳皟璇?/span>

CTRL+F5錛氭墽琛?/span>

DEBUG

TRUE

TRUE

RELEASE

TRUE

FALSE

 
鍙互鐪嬪埌DEBUG涓嬶紝鏈垵濮嬪寲bool鍙橀噺鐨勫兼槸鍙互棰勭煡鐨勩傝孯ELEASE涓嬶紝琛屼負鍗翠笉鍙‘瀹氥傚鏋滄槸RELEASE鐘舵佷笅鍦╒S涓寜F5璋冭瘯紼嬪簭錛宐ool鍙橀噺鐨勯粯璁ゅ間負true錛涜嫢鎸塁trl+F5鎴栬呯洿鎺ョ偣EXE鎵ц紼嬪簭錛宐ool鐨勯粯璁ゅ間負false銆?br />
鍋囧紼嬪簭鍦ㄨ皟璇曟ā寮忓拰鎵ц妯″紡鐨勮涓轟笉涓鑷達紝灝遍渶瑕佽冭檻鏄惁鏄敱浜庢湭鍒濆鍖栫殑bool鍙橀噺寮曡搗鐨勩?br />
鍋囧璋冪敤bool鐨勬瀯閫犲嚱鏁版潵鏋勯燽ool鍙橀噺錛屽湪涓婇潰鐨勫洓縐嶆儏鍐典笅鏄惁鏄‘瀹氱殑錛?/p>

bool bTest = bool();




 



鍔涗負 2015-01-06 16:43 鍙戣〃璇勮
]]>
涓轟粈涔堥渶瑕佺粰鍑芥暟榪斿洖綾誨瀷鍔燾onsthttp://www.shnenglu.com/mythma/archive/2014/08/24/cpp-const-return-rvalue.html鍔涗負鍔涗負Sun, 24 Aug 2014 10:50:00 GMThttp://www.shnenglu.com/mythma/archive/2014/08/24/cpp-const-return-rvalue.htmlhttp://www.shnenglu.com/mythma/comments/208114.htmlhttp://www.shnenglu.com/mythma/archive/2014/08/24/cpp-const-return-rvalue.html#Feedback1http://www.shnenglu.com/mythma/comments/commentRss/208114.htmlhttp://www.shnenglu.com/mythma/services/trackbacks/208114.html姣斿濡備笅鐨勭▼搴忥紝鍦╒S2010欏哄埄緙栬瘧閫氳繃錛岃屽湪clang涓垯鎶ラ敊銆?br />
class XY
{
public:
    XY();
    XY(int x, int y)
        :_x(x)
        ,_y(y)
    {

    }
public:
    int _x;
    int _y;
};

XY GetXY(int x, int y)
{
    return XY(x, y);
}

void ComplexAlgo(XY& xy)
{
    xy._x = 100;
    xy._y = 200;
}

int _tmain(int argc, _TCHAR* argv[])
{
    ComplexAlgo(GetXY(10,10));
    return 0;
}

ComplexAlgo鐨勮緭鍏ュ弬鏁版槸涓涓潪const寮曠敤錛屽嵆闇瑕佷紶鍏ョ殑鏄釜闈炰復鏃跺箋傝屽湪
    ComplexAlgo(GetXY(10,10));
 涓紝GetXY榪斿洖鐨勬槸涓轟復鏃跺鹼紝浠庨昏緫涓婂簲璇ヤ負const鐨勶紝鍗崇瓑浠蜂負錛?br />
const XY GetXY(int x, int y)
{
    return XY(x, y);
}

鎵浠ワ紝涓婇潰鐨勭▼搴忎笉搴旇緙栬瘧閫氳繃銆傝孷S2010欏哄埄閫氳繃錛屼篃浣挎湁鐫鍚屾牱鐢ㄦ硶鐨勭▼搴忔綔浼忕潃bug銆?br />


鍔涗負 2014-08-24 18:50 鍙戣〃璇勮
]]>
琚仐蹇樼殑argv[0]http://www.shnenglu.com/mythma/archive/2013/04/16/GetModuleFileName.html鍔涗負鍔涗負Tue, 16 Apr 2013 05:46:00 GMThttp://www.shnenglu.com/mythma/archive/2013/04/16/GetModuleFileName.htmlhttp://www.shnenglu.com/mythma/comments/199478.htmlhttp://www.shnenglu.com/mythma/archive/2013/04/16/GetModuleFileName.html#Feedback3http://www.shnenglu.com/mythma/comments/commentRss/199478.htmlhttp://www.shnenglu.com/mythma/services/trackbacks/199478.html鍦ㄤ嬌鐢≦t錛寃xWidgets絳夊疄鐜板彲璺ㄥ鉤鍙頒唬鐮佽濡備綍澶勭悊錛?
---鎵句笌GetModuleFileName絳変環鐨凙PI銆傝繖鏄垜椹笂鑳界浉鍒扮殑銆傚緢閬楁喚錛屽嵈娌℃湁鎵懼埌銆?

鏈夋椂鍊欙紝浣犻渶瑕佺殑涓滆タ灝卞湪浣犵殑闈㈠墠錛屼綘鍗存壘涓嶅埌瀹冦?nbsp; 闃呰鍏ㄦ枃

鍔涗負 2013-04-16 13:46 鍙戣〃璇勮
]]>
褰撳祵濂楃被閬囪APIhttp://www.shnenglu.com/mythma/archive/2013/01/23/197517.html鍔涗負鍔涗負Wed, 23 Jan 2013 15:26:00 GMThttp://www.shnenglu.com/mythma/archive/2013/01/23/197517.htmlhttp://www.shnenglu.com/mythma/comments/197517.htmlhttp://www.shnenglu.com/mythma/archive/2013/01/23/197517.html#Feedback1http://www.shnenglu.com/mythma/comments/commentRss/197517.htmlhttp://www.shnenglu.com/mythma/services/trackbacks/197517.html鍦ㄦ湰妯″潡涓闂祵濂楃被鐨勬柟娉曪紝緙栬瘧鍜岄摼鎺ラ兘娌℃湁闂銆?br />
class Out
{
public:
 struct NestedClass
 {
    void doSomething();
 };
};

璋冪敤
Out::NestedClass nc;
nc.doSomething();

鍋囧闇瑕佹毚闇睴ut綾伙紙浣滀負鍔ㄦ佸簱錛夌粰鍏朵粬妯″潡浣跨敤
class DECL_API Out
{
public:
 struct NestedClass
 {
    void doSomething();
 };
};

榪欐椂鍊欒兘鍦ㄥ叾浠栨ā鍧?DLL/EXE)涓皟鐢ㄥ祵濂楃被錛屼細閾炬帴鎴愬姛鍚楋紵

絳旀鏄惁瀹氱殑銆傞渶瑕佹妸宓屽綾繪樉寮忕殑瀵煎嚭錛屼篃灝辨槸璇村閮ㄧ被瀵煎嚭騫朵笉浼氬皢宓屽綾誨悓鏃跺鍑恒?br />
class DECL_API Out
{
public:
 struct DECL_API NestedClass
 {
    void doSomething();
 };
};




鍔涗負 2013-01-23 23:26 鍙戣〃璇勮
]]>
鐢╨ambda瀵箂td::list鎺掑簭http://www.shnenglu.com/mythma/archive/2013/01/20/lambda_stl_list_sort.html鍔涗負鍔涗負Sun, 20 Jan 2013 05:50:00 GMThttp://www.shnenglu.com/mythma/archive/2013/01/20/lambda_stl_list_sort.htmlhttp://www.shnenglu.com/mythma/comments/197423.htmlhttp://www.shnenglu.com/mythma/archive/2013/01/20/lambda_stl_list_sort.html#Feedback2http://www.shnenglu.com/mythma/comments/commentRss/197423.htmlhttp://www.shnenglu.com/mythma/services/trackbacks/197423.htmlstd::list::sort(_Pr3 _Pred)闇瑕佹彁渚涗竴涓嚱鏁板璞★紙浠垮嚱鏁幫級浣滀負鍙傛暟銆傛瀯閫犲嚱鏁版湁澶氱鏂瑰紡錛宭ambda琛ㄨ揪寮忕畻鏄渶澶嶅悎娼祦鐨勪竴縐嶃?nbsp; 闃呰鍏ㄦ枃

鍔涗負 2013-01-20 13:50 鍙戣〃璇勮
]]>
鏋勯燯TF8鐨剆td::stringhttp://www.shnenglu.com/mythma/archive/2012/10/29/execution_character_set_utf8.html鍔涗負鍔涗負Mon, 29 Oct 2012 06:53:00 GMThttp://www.shnenglu.com/mythma/archive/2012/10/29/execution_character_set_utf8.htmlhttp://www.shnenglu.com/mythma/comments/194014.htmlhttp://www.shnenglu.com/mythma/archive/2012/10/29/execution_character_set_utf8.html#Feedback2http://www.shnenglu.com/mythma/comments/commentRss/194014.htmlhttp://www.shnenglu.com/mythma/services/trackbacks/194014.html闃呰鍏ㄦ枃

鍔涗負 2012-10-29 14:53 鍙戣〃璇勮
]]>
銆愭壘鑼憇plit stringhttp://www.shnenglu.com/mythma/archive/2012/10/06/cpp_split_string.html鍔涗負鍔涗負Sat, 06 Oct 2012 04:21:00 GMThttp://www.shnenglu.com/mythma/archive/2012/10/06/cpp_split_string.htmlhttp://www.shnenglu.com/mythma/comments/192905.htmlhttp://www.shnenglu.com/mythma/archive/2012/10/06/cpp_split_string.html#Feedback2http://www.shnenglu.com/mythma/comments/commentRss/192905.htmlhttp://www.shnenglu.com/mythma/services/trackbacks/192905.html鎶婁互涓嬪瓧絎︿覆鎸夌収絀烘牸split
string str="   50  4    13.900     0.400    -0.600";

“鏂規”涓:
鐢╞oost::split
#include "boost/algorithm/string.hpp"