﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-alantop's blog -随笔分类-C++</title><link>http://www.cppblog.com/alantop/category/1645.html</link><description /><language>zh-cn</language><lastBuildDate>Fri, 07 Sep 2018 10:33:07 GMT</lastBuildDate><pubDate>Fri, 07 Sep 2018 10:33:07 GMT</pubDate><ttl>60</ttl><item><title>define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings的解决方案</title><link>http://www.cppblog.com/alantop/archive/2018/09/07/215911.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Fri, 07 Sep 2018 06:18:00 GMT</pubDate><guid>http://www.cppblog.com/alantop/archive/2018/09/07/215911.html</guid><wfw:comment>http://www.cppblog.com/alantop/comments/215911.html</wfw:comment><comments>http://www.cppblog.com/alantop/archive/2018/09/07/215911.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/alantop/comments/commentRss/215911.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/alantop/services/trackbacks/215911.html</trackback:ping><description><![CDATA[<div>出现这个提示define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings，如下处理即可。</div><div></div><div></div><div>#define _WINSOCK_DEPRECATED_NO_WARNINGS 1</div><div>这个定义在stdafx.h的第一行</div><div></div><img src ="http://www.cppblog.com/alantop/aggbug/215911.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/alantop/" target="_blank">AlanTop</a> 2018-09-07 14:18 <a href="http://www.cppblog.com/alantop/archive/2018/09/07/215911.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>undefined reference to `std::ios_base::Init::Init()'错误的解决方案</title><link>http://www.cppblog.com/alantop/archive/2018/08/18/215855.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Fri, 17 Aug 2018 22:33:00 GMT</pubDate><guid>http://www.cppblog.com/alantop/archive/2018/08/18/215855.html</guid><wfw:comment>http://www.cppblog.com/alantop/comments/215855.html</wfw:comment><comments>http://www.cppblog.com/alantop/archive/2018/08/18/215855.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/alantop/comments/commentRss/215855.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/alantop/services/trackbacks/215855.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: &nbsp;&nbsp;<a href='http://www.cppblog.com/alantop/archive/2018/08/18/215855.html'>阅读全文</a><img src ="http://www.cppblog.com/alantop/aggbug/215855.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/alantop/" target="_blank">AlanTop</a> 2018-08-18 06:33 <a href="http://www.cppblog.com/alantop/archive/2018/08/18/215855.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>c++ string 和 char * 之间互相转换</title><link>http://www.cppblog.com/alantop/archive/2016/08/28/214238.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Sun, 28 Aug 2016 04:26:00 GMT</pubDate><guid>http://www.cppblog.com/alantop/archive/2016/08/28/214238.html</guid><wfw:comment>http://www.cppblog.com/alantop/comments/214238.html</wfw:comment><comments>http://www.cppblog.com/alantop/archive/2016/08/28/214238.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/alantop/comments/commentRss/214238.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/alantop/services/trackbacks/214238.html</trackback:ping><description><![CDATA[char * 可以转string，直接赋值即可。不能单独赋int和c字符类型值。<br />string s1("demo1");<br />string s1 = "demo";<br />char *p = "demo";<br />s1 = p;<br /><br />string转char*有三种方式：c_str(),data(),copy()<br />c_str()返回一个c风格的字符数组，带有'\0'结束<br />data（）返回一个数组，不自动增加&#8216;\0&#8217;<br />copy()拷贝一块字符到新的内存，需要新分配一块内存用于存放。<br />前两个函数，原有内容发生变化，地址指的内容也会变化，使用copy不会发生这种问题。（见例子3）<br /><br />const char *p = s.data();<br />const char * p = s.c_str();<br /><br />char *p = new char[s.length() + 1];<br />s.copy(p, string::npos);<br />p[s.length()] = 0;<br />用好，释放 p<br /><br />例子3：<br /><div><span style="white-space:pre">	</span>std::string s1 = "demo 123456\n \0";</div><div><span style="white-space:pre">	</span>const char *p1 = s1.c_str();</div><div><span style="white-space:pre">	</span>const char *p2 = s1.data();</div><div><span style="white-space:pre">	</span>s1 = "345";<br /><br />s1 内容发生变化后，p1和p2指针内容的地址也发生变化。</div><br /><br /><br /><br /><img src ="http://www.cppblog.com/alantop/aggbug/214238.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/alantop/" target="_blank">AlanTop</a> 2016-08-28 12:26 <a href="http://www.cppblog.com/alantop/archive/2016/08/28/214238.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>D语言排名持续升上升</title><link>http://www.cppblog.com/alantop/archive/2014/01/04/205163.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Sat, 04 Jan 2014 04:46:00 GMT</pubDate><guid>http://www.cppblog.com/alantop/archive/2014/01/04/205163.html</guid><wfw:comment>http://www.cppblog.com/alantop/comments/205163.html</wfw:comment><comments>http://www.cppblog.com/alantop/archive/2014/01/04/205163.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cppblog.com/alantop/comments/commentRss/205163.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/alantop/services/trackbacks/205163.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 2014年1月，D语言在TIOBE编程语言排名持续升高，位列18名。&nbsp;&nbsp;<a href='http://www.cppblog.com/alantop/archive/2014/01/04/205163.html'>阅读全文</a><img src ="http://www.cppblog.com/alantop/aggbug/205163.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/alantop/" target="_blank">AlanTop</a> 2014-01-04 12:46 <a href="http://www.cppblog.com/alantop/archive/2014/01/04/205163.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>vs 2010 如何用boost计算文件的crc值</title><link>http://www.cppblog.com/alantop/archive/2013/02/13/197811.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Tue, 12 Feb 2013 19:32:00 GMT</pubDate><guid>http://www.cppblog.com/alantop/archive/2013/02/13/197811.html</guid><wfw:comment>http://www.cppblog.com/alantop/comments/197811.html</wfw:comment><comments>http://www.cppblog.com/alantop/archive/2013/02/13/197811.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/alantop/comments/commentRss/197811.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/alantop/services/trackbacks/197811.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: vs 2010 如何用boost计算文件的crc值&nbsp;&nbsp;<a href='http://www.cppblog.com/alantop/archive/2013/02/13/197811.html'>阅读全文</a><img src ="http://www.cppblog.com/alantop/aggbug/197811.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/alantop/" target="_blank">AlanTop</a> 2013-02-13 03:32 <a href="http://www.cppblog.com/alantop/archive/2013/02/13/197811.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>如何调试崩溃程序（一） 更改调试器，转存文件</title><link>http://www.cppblog.com/alantop/archive/2009/11/08/100415.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Sun, 08 Nov 2009 13:11:00 GMT</pubDate><guid>http://www.cppblog.com/alantop/archive/2009/11/08/100415.html</guid><wfw:comment>http://www.cppblog.com/alantop/comments/100415.html</wfw:comment><comments>http://www.cppblog.com/alantop/archive/2009/11/08/100415.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cppblog.com/alantop/comments/commentRss/100415.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/alantop/services/trackbacks/100415.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 如何调试崩溃程序（一） 更改调试器，转存文件&nbsp;&nbsp;<a href='http://www.cppblog.com/alantop/archive/2009/11/08/100415.html'>阅读全文</a><img src ="http://www.cppblog.com/alantop/aggbug/100415.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/alantop/" target="_blank">AlanTop</a> 2009-11-08 21:11 <a href="http://www.cppblog.com/alantop/archive/2009/11/08/100415.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>VS2008中新增控件syslink的使用方法（以后使用超链接简单多了）</title><link>http://www.cppblog.com/alantop/archive/2009/11/08/100410.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Sun, 08 Nov 2009 12:37:00 GMT</pubDate><guid>http://www.cppblog.com/alantop/archive/2009/11/08/100410.html</guid><wfw:comment>http://www.cppblog.com/alantop/comments/100410.html</wfw:comment><comments>http://www.cppblog.com/alantop/archive/2009/11/08/100410.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cppblog.com/alantop/comments/commentRss/100410.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/alantop/services/trackbacks/100410.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: VS2008中新控件syslink的使用方法（以后使用超链接简单多了）&nbsp;&nbsp;<a href='http://www.cppblog.com/alantop/archive/2009/11/08/100410.html'>阅读全文</a><img src ="http://www.cppblog.com/alantop/aggbug/100410.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/alantop/" target="_blank">AlanTop</a> 2009-11-08 20:37 <a href="http://www.cppblog.com/alantop/archive/2009/11/08/100410.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>string和memset</title><link>http://www.cppblog.com/alantop/archive/2008/09/23/62633.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Tue, 23 Sep 2008 14:10:00 GMT</pubDate><guid>http://www.cppblog.com/alantop/archive/2008/09/23/62633.html</guid><wfw:comment>http://www.cppblog.com/alantop/comments/62633.html</wfw:comment><comments>http://www.cppblog.com/alantop/archive/2008/09/23/62633.html#Feedback</comments><slash:comments>7</slash:comments><wfw:commentRss>http://www.cppblog.com/alantop/comments/commentRss/62633.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/alantop/services/trackbacks/62633.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 有些东西可能很简单，我们大家不留意。<br><br>string大家都在用，string可以用memset吗？&nbsp;&nbsp;<a href='http://www.cppblog.com/alantop/archive/2008/09/23/62633.html'>阅读全文</a><img src ="http://www.cppblog.com/alantop/aggbug/62633.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/alantop/" target="_blank">AlanTop</a> 2008-09-23 22:10 <a href="http://www.cppblog.com/alantop/archive/2008/09/23/62633.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>vs 2005 sp1 安装失败的解决方案 安装VS2005 sp1的方法</title><link>http://www.cppblog.com/alantop/archive/2008/05/21/50629.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Wed, 21 May 2008 04:42:00 GMT</pubDate><guid>http://www.cppblog.com/alantop/archive/2008/05/21/50629.html</guid><wfw:comment>http://www.cppblog.com/alantop/comments/50629.html</wfw:comment><comments>http://www.cppblog.com/alantop/archive/2008/05/21/50629.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/alantop/comments/commentRss/50629.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/alantop/services/trackbacks/50629.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: vs 2005 sp1 安装失败的解决方案 安装VS2005 sp1的方法&nbsp;&nbsp;<a href='http://www.cppblog.com/alantop/archive/2008/05/21/50629.html'>阅读全文</a><img src ="http://www.cppblog.com/alantop/aggbug/50629.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/alantop/" target="_blank">AlanTop</a> 2008-05-21 12:42 <a href="http://www.cppblog.com/alantop/archive/2008/05/21/50629.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>用了10年vc6，居然出了这样个怪事，debug工具条不见了，大家参看视频</title><link>http://www.cppblog.com/alantop/archive/2008/05/16/50049.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Fri, 16 May 2008 07:55:00 GMT</pubDate><guid>http://www.cppblog.com/alantop/archive/2008/05/16/50049.html</guid><wfw:comment>http://www.cppblog.com/alantop/comments/50049.html</wfw:comment><comments>http://www.cppblog.com/alantop/archive/2008/05/16/50049.html#Feedback</comments><slash:comments>7</slash:comments><wfw:commentRss>http://www.cppblog.com/alantop/comments/commentRss/50049.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/alantop/services/trackbacks/50049.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 用了10年vc6，居然出了这样个怪事，debug工具条不见了，大家参看视频&nbsp;&nbsp;<a href='http://www.cppblog.com/alantop/archive/2008/05/16/50049.html'>阅读全文</a><img src ="http://www.cppblog.com/alantop/aggbug/50049.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/alantop/" target="_blank">AlanTop</a> 2008-05-16 15:55 <a href="http://www.cppblog.com/alantop/archive/2008/05/16/50049.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>m_hWnd是CWnd的一个成员</title><link>http://www.cppblog.com/alantop/archive/2008/05/15/49992.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Thu, 15 May 2008 14:29:00 GMT</pubDate><guid>http://www.cppblog.com/alantop/archive/2008/05/15/49992.html</guid><wfw:comment>http://www.cppblog.com/alantop/comments/49992.html</wfw:comment><comments>http://www.cppblog.com/alantop/archive/2008/05/15/49992.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/alantop/comments/commentRss/49992.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/alantop/services/trackbacks/49992.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: m_hWnd是CWnd的一个成员&nbsp;&nbsp;<a href='http://www.cppblog.com/alantop/archive/2008/05/15/49992.html'>阅读全文</a><img src ="http://www.cppblog.com/alantop/aggbug/49992.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/alantop/" target="_blank">AlanTop</a> 2008-05-15 22:29 <a href="http://www.cppblog.com/alantop/archive/2008/05/15/49992.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>股票数据解析通用工具</title><link>http://www.cppblog.com/alantop/archive/2008/05/15/49991.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Thu, 15 May 2008 13:54:00 GMT</pubDate><guid>http://www.cppblog.com/alantop/archive/2008/05/15/49991.html</guid><wfw:comment>http://www.cppblog.com/alantop/comments/49991.html</wfw:comment><comments>http://www.cppblog.com/alantop/archive/2008/05/15/49991.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/alantop/comments/commentRss/49991.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/alantop/services/trackbacks/49991.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 股票数据解析通用工具&nbsp;&nbsp;<a href='http://www.cppblog.com/alantop/archive/2008/05/15/49991.html'>阅读全文</a><img src ="http://www.cppblog.com/alantop/aggbug/49991.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/alantop/" target="_blank">AlanTop</a> 2008-05-15 21:54 <a href="http://www.cppblog.com/alantop/archive/2008/05/15/49991.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>如何将16进制字符串转换成整型？</title><link>http://www.cppblog.com/alantop/archive/2008/05/15/49989.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Thu, 15 May 2008 13:37:00 GMT</pubDate><guid>http://www.cppblog.com/alantop/archive/2008/05/15/49989.html</guid><wfw:comment>http://www.cppblog.com/alantop/comments/49989.html</wfw:comment><comments>http://www.cppblog.com/alantop/archive/2008/05/15/49989.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cppblog.com/alantop/comments/commentRss/49989.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/alantop/services/trackbacks/49989.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 如何将16进制字符串转换成整型？&nbsp;&nbsp;<a href='http://www.cppblog.com/alantop/archive/2008/05/15/49989.html'>阅读全文</a><img src ="http://www.cppblog.com/alantop/aggbug/49989.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/alantop/" target="_blank">AlanTop</a> 2008-05-15 21:37 <a href="http://www.cppblog.com/alantop/archive/2008/05/15/49989.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>FTP开发中下载文件的两种方式</title><link>http://www.cppblog.com/alantop/archive/2008/05/14/49775.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Tue, 13 May 2008 17:51:00 GMT</pubDate><guid>http://www.cppblog.com/alantop/archive/2008/05/14/49775.html</guid><wfw:comment>http://www.cppblog.com/alantop/comments/49775.html</wfw:comment><comments>http://www.cppblog.com/alantop/archive/2008/05/14/49775.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cppblog.com/alantop/comments/commentRss/49775.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/alantop/services/trackbacks/49775.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: ftp开发中下载的两种方式 以及碰到的问题。&nbsp;&nbsp;<a href='http://www.cppblog.com/alantop/archive/2008/05/14/49775.html'>阅读全文</a><img src ="http://www.cppblog.com/alantop/aggbug/49775.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/alantop/" target="_blank">AlanTop</a> 2008-05-14 01:51 <a href="http://www.cppblog.com/alantop/archive/2008/05/14/49775.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>托管代码如何调用非托管代码(c sharp如何调用c++代码)?</title><link>http://www.cppblog.com/alantop/archive/2008/04/16/47318.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Wed, 16 Apr 2008 12:32:00 GMT</pubDate><guid>http://www.cppblog.com/alantop/archive/2008/04/16/47318.html</guid><wfw:comment>http://www.cppblog.com/alantop/comments/47318.html</wfw:comment><comments>http://www.cppblog.com/alantop/archive/2008/04/16/47318.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cppblog.com/alantop/comments/commentRss/47318.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/alantop/services/trackbacks/47318.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 托管代码如何调用非托管代码(c sharp如何调用c++代码)?&nbsp;&nbsp;<a href='http://www.cppblog.com/alantop/archive/2008/04/16/47318.html'>阅读全文</a><img src ="http://www.cppblog.com/alantop/aggbug/47318.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/alantop/" target="_blank">AlanTop</a> 2008-04-16 20:32 <a href="http://www.cppblog.com/alantop/archive/2008/04/16/47318.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>vc ++ 如何做界面开发？</title><link>http://www.cppblog.com/alantop/archive/2008/04/16/47185.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Tue, 15 Apr 2008 23:53:00 GMT</pubDate><guid>http://www.cppblog.com/alantop/archive/2008/04/16/47185.html</guid><wfw:comment>http://www.cppblog.com/alantop/comments/47185.html</wfw:comment><comments>http://www.cppblog.com/alantop/archive/2008/04/16/47185.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.cppblog.com/alantop/comments/commentRss/47185.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/alantop/services/trackbacks/47185.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: vc++k中如何开发界面&nbsp;&nbsp;<a href='http://www.cppblog.com/alantop/archive/2008/04/16/47185.html'>阅读全文</a><img src ="http://www.cppblog.com/alantop/aggbug/47185.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/alantop/" target="_blank">AlanTop</a> 2008-04-16 07:53 <a href="http://www.cppblog.com/alantop/archive/2008/04/16/47185.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>开源，跨平台免费C++ IDE ---Code::Block </title><link>http://www.cppblog.com/alantop/archive/2008/03/01/43513.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Sat, 01 Mar 2008 05:02:00 GMT</pubDate><guid>http://www.cppblog.com/alantop/archive/2008/03/01/43513.html</guid><wfw:comment>http://www.cppblog.com/alantop/comments/43513.html</wfw:comment><comments>http://www.cppblog.com/alantop/archive/2008/03/01/43513.html#Feedback</comments><slash:comments>9</slash:comments><wfw:commentRss>http://www.cppblog.com/alantop/comments/commentRss/43513.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/alantop/services/trackbacks/43513.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: Code Block 是一个免费, 开源的C++ IDE,它看上去有一个一致的外观，满足用户的需要，具有扩展性和可配置性。<br><br>这个IDE有你需要的所有功能，并且它是跨平台的。<br><br>另外，其具有插件框架，很容易扩展。大量的功能可以通过插件来安装提供。<br>&nbsp;&nbsp;<a href='http://www.cppblog.com/alantop/archive/2008/03/01/43513.html'>阅读全文</a><img src ="http://www.cppblog.com/alantop/aggbug/43513.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/alantop/" target="_blank">AlanTop</a> 2008-03-01 13:02 <a href="http://www.cppblog.com/alantop/archive/2008/03/01/43513.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>关于阻止迅雷上传,带慢计算机的工具</title><link>http://www.cppblog.com/alantop/archive/2008/02/26/43242.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Tue, 26 Feb 2008 02:29:00 GMT</pubDate><guid>http://www.cppblog.com/alantop/archive/2008/02/26/43242.html</guid><wfw:comment>http://www.cppblog.com/alantop/comments/43242.html</wfw:comment><comments>http://www.cppblog.com/alantop/archive/2008/02/26/43242.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.cppblog.com/alantop/comments/commentRss/43242.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/alantop/services/trackbacks/43242.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 关于阻止迅雷上传,带慢计算机的工具&nbsp;&nbsp;<a href='http://www.cppblog.com/alantop/archive/2008/02/26/43242.html'>阅读全文</a><img src ="http://www.cppblog.com/alantop/aggbug/43242.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/alantop/" target="_blank">AlanTop</a> 2008-02-26 10:29 <a href="http://www.cppblog.com/alantop/archive/2008/02/26/43242.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Visual Studio 2008 已经通过批量许可,零售和MSDN发布</title><link>http://www.cppblog.com/alantop/archive/2008/01/30/42193.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Wed, 30 Jan 2008 03:28:00 GMT</pubDate><guid>http://www.cppblog.com/alantop/archive/2008/01/30/42193.html</guid><wfw:comment>http://www.cppblog.com/alantop/comments/42193.html</wfw:comment><comments>http://www.cppblog.com/alantop/archive/2008/01/30/42193.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cppblog.com/alantop/comments/commentRss/42193.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/alantop/services/trackbacks/42193.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 微软已经公布了下一代开发平台Visual Studio 2008的发行策略,分别是批量许可,最终零售和MSDN订阅下载.&nbsp;&nbsp;<a href='http://www.cppblog.com/alantop/archive/2008/01/30/42193.html'>阅读全文</a><img src ="http://www.cppblog.com/alantop/aggbug/42193.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/alantop/" target="_blank">AlanTop</a> 2008-01-30 11:28 <a href="http://www.cppblog.com/alantop/archive/2008/01/30/42193.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>vc2008中MFC重大变革-Visual C++ 2008 Feature Pack Beta 发布(附图)</title><link>http://www.cppblog.com/alantop/archive/2008/01/08/40677.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Tue, 08 Jan 2008 01:34:00 GMT</pubDate><guid>http://www.cppblog.com/alantop/archive/2008/01/08/40677.html</guid><wfw:comment>http://www.cppblog.com/alantop/comments/40677.html</wfw:comment><comments>http://www.cppblog.com/alantop/archive/2008/01/08/40677.html#Feedback</comments><slash:comments>20</slash:comments><wfw:commentRss>http://www.cppblog.com/alantop/comments/commentRss/40677.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/alantop/services/trackbacks/40677.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: Visual C++ 2008 Feature Pack Beta的新功能和新特性 vc2008中mfc重大变革 提供下载&nbsp;&nbsp;<a href='http://www.cppblog.com/alantop/archive/2008/01/08/40677.html'>阅读全文</a><img src ="http://www.cppblog.com/alantop/aggbug/40677.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/alantop/" target="_blank">AlanTop</a> 2008-01-08 09:34 <a href="http://www.cppblog.com/alantop/archive/2008/01/08/40677.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>VS2008 Team system 正式版下载和预览图</title><link>http://www.cppblog.com/alantop/archive/2007/11/26/37307.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Mon, 26 Nov 2007 05:10:00 GMT</pubDate><guid>http://www.cppblog.com/alantop/archive/2007/11/26/37307.html</guid><wfw:comment>http://www.cppblog.com/alantop/comments/37307.html</wfw:comment><comments>http://www.cppblog.com/alantop/archive/2007/11/26/37307.html#Feedback</comments><slash:comments>14</slash:comments><wfw:commentRss>http://www.cppblog.com/alantop/comments/commentRss/37307.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/alantop/services/trackbacks/37307.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: VS2008 Team system 正式版下载和预览图&nbsp;&nbsp;<a href='http://www.cppblog.com/alantop/archive/2007/11/26/37307.html'>阅读全文</a><img src ="http://www.cppblog.com/alantop/aggbug/37307.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/alantop/" target="_blank">AlanTop</a> 2007-11-26 13:10 <a href="http://www.cppblog.com/alantop/archive/2007/11/26/37307.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>大智慧新一代日线格式解析（c++源码）</title><link>http://www.cppblog.com/alantop/archive/2007/10/30/35509.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Tue, 30 Oct 2007 04:23:00 GMT</pubDate><guid>http://www.cppblog.com/alantop/archive/2007/10/30/35509.html</guid><wfw:comment>http://www.cppblog.com/alantop/comments/35509.html</wfw:comment><comments>http://www.cppblog.com/alantop/archive/2007/10/30/35509.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/alantop/comments/commentRss/35509.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/alantop/services/trackbacks/35509.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 大智慧新一代日线格式解析（c++源码）&nbsp;&nbsp;<a href='http://www.cppblog.com/alantop/archive/2007/10/30/35509.html'>阅读全文</a><img src ="http://www.cppblog.com/alantop/aggbug/35509.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/alantop/" target="_blank">AlanTop</a> 2007-10-30 12:23 <a href="http://www.cppblog.com/alantop/archive/2007/10/30/35509.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>大智慧2逐笔数据提取工具</title><link>http://www.cppblog.com/alantop/archive/2007/10/26/35274.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Fri, 26 Oct 2007 14:54:00 GMT</pubDate><guid>http://www.cppblog.com/alantop/archive/2007/10/26/35274.html</guid><wfw:comment>http://www.cppblog.com/alantop/comments/35274.html</wfw:comment><comments>http://www.cppblog.com/alantop/archive/2007/10/26/35274.html#Feedback</comments><slash:comments>23</slash:comments><wfw:commentRss>http://www.cppblog.com/alantop/comments/commentRss/35274.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/alantop/services/trackbacks/35274.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 大智慧新一代逐笔数据提取工具 (试用版本发布)&nbsp;&nbsp;<a href='http://www.cppblog.com/alantop/archive/2007/10/26/35274.html'>阅读全文</a><img src ="http://www.cppblog.com/alantop/aggbug/35274.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/alantop/" target="_blank">AlanTop</a> 2007-10-26 22:54 <a href="http://www.cppblog.com/alantop/archive/2007/10/26/35274.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>vc中的xml开发</title><link>http://www.cppblog.com/alantop/archive/2007/09/04/31546.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Tue, 04 Sep 2007 04:07:00 GMT</pubDate><guid>http://www.cppblog.com/alantop/archive/2007/09/04/31546.html</guid><wfw:comment>http://www.cppblog.com/alantop/comments/31546.html</wfw:comment><comments>http://www.cppblog.com/alantop/archive/2007/09/04/31546.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/alantop/comments/commentRss/31546.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/alantop/services/trackbacks/31546.html</trackback:ping><description><![CDATA[<p><strong>1. libxml是一个跨平台库. 基于C语言的xml解析器.</strong></p> <p>其主页和网上内容很多,这里整理一下.</p> <p>libxml源码示例:<a title="http://xmlsoft.org/examples/index.html" href="http://xmlsoft.org/examples/index.html">http://xmlsoft.org/examples/index.html</a></p> <p>libxml参考手册:<a title="http://xmlsoft.org/html/index.html" href="http://xmlsoft.org/html/index.html">http://xmlsoft.org/html/index.html</a></p> <p>主页: <a title="http://xmlsoft.org/" href="http://xmlsoft.org/">http://xmlsoft.org/</a></p> <p>一个很详细的教程:<a title="http://hi.baidu.com/%CE%DA%D1%BB%C3%F7/blog/item/06df91547c79171e3a29358e.html" href="http://hi.baidu.com/%CE%DA%D1%BB%C3%F7/blog/item/06df91547c79171e3a29358e.html"><a title="http://blog.chinaunix.net/u/14063/showart_98851.html" href="http://blog.chinaunix.net/u/14063/showart_98851.html">http://blog.chinaunix.net/u/14063/showart_98851.html</a></a></p> <p>&nbsp;</p> <p><strong>2. 利用msxml4.0 sp2解析xml</strong></p> <p><a title="http://blog.csdn.net/max2008/archive/2007/06/11/1647613.aspx" href="http://blog.csdn.net/max2008/archive/2007/06/11/1647613.aspx">http://blog.csdn.net/max2008/archive/2007/06/11/1647613.aspx</a></p> <p>&nbsp;</p> <p><strong>3.cmarkup</strong></p> <p><strong>Homepage: <a href="http://www.firstobject.com/">http://www.firstobject.com/</a> </strong></p> <p><a title="http://www.cnblogs.com/bingxuefly/archive/2007/04/23/724318.html" href="http://www.cnblogs.com/bingxuefly/archive/2007/04/23/724318.html">http://www.cnblogs.com/bingxuefly/archive/2007/04/23/724318.html</a></p><img src ="http://www.cppblog.com/alantop/aggbug/31546.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/alantop/" target="_blank">AlanTop</a> 2007-09-04 12:07 <a href="http://www.cppblog.com/alantop/archive/2007/09/04/31546.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>谷歌百度一起搜程序源码</title><link>http://www.cppblog.com/alantop/archive/2007/09/04/31523.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Tue, 04 Sep 2007 01:16:00 GMT</pubDate><guid>http://www.cppblog.com/alantop/archive/2007/09/04/31523.html</guid><wfw:comment>http://www.cppblog.com/alantop/comments/31523.html</wfw:comment><comments>http://www.cppblog.com/alantop/archive/2007/09/04/31523.html#Feedback</comments><slash:comments>19</slash:comments><wfw:commentRss>http://www.cppblog.com/alantop/comments/commentRss/31523.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/alantop/services/trackbacks/31523.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 一次搜索google和百度的程序,谷歌百度一起搜 源码发布（c++版本和ASP.net版本）&nbsp;&nbsp;<a href='http://www.cppblog.com/alantop/archive/2007/09/04/31523.html'>阅读全文</a><img src ="http://www.cppblog.com/alantop/aggbug/31523.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/alantop/" target="_blank">AlanTop</a> 2007-09-04 09:16 <a href="http://www.cppblog.com/alantop/archive/2007/09/04/31523.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>一个封装文件操作和目录操作的类</title><link>http://www.cppblog.com/alantop/archive/2007/08/15/30047.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Wed, 15 Aug 2007 00:23:00 GMT</pubDate><guid>http://www.cppblog.com/alantop/archive/2007/08/15/30047.html</guid><wfw:comment>http://www.cppblog.com/alantop/comments/30047.html</wfw:comment><comments>http://www.cppblog.com/alantop/archive/2007/08/15/30047.html#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://www.cppblog.com/alantop/comments/commentRss/30047.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/alantop/services/trackbacks/30047.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 经常在项目中遇到文件和目录操作。拷贝，删除，移动，最讨厌的可能就是枚举了。  这里提供一个封装文件和目录的操作类。  &nbsp;  此类封装了一些高级的文件和目录操作。例如删除、建立、拷贝、移动、枚举文件和目录。  所有的错误处理都内置了。并且用bool值类型来表示其成功与否。如果失败，可以调用GetErrorMessage  函数得到CString类型的错误信息。  用法：这个类只需要建立CD...&nbsp;&nbsp;<a href='http://www.cppblog.com/alantop/archive/2007/08/15/30047.html'>阅读全文</a><img src ="http://www.cppblog.com/alantop/aggbug/30047.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/alantop/" target="_blank">AlanTop</a> 2007-08-15 08:23 <a href="http://www.cppblog.com/alantop/archive/2007/08/15/30047.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>一个不错的免费界面库</title><link>http://www.cppblog.com/alantop/archive/2007/07/31/29084.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Tue, 31 Jul 2007 08:31:00 GMT</pubDate><guid>http://www.cppblog.com/alantop/archive/2007/07/31/29084.html</guid><wfw:comment>http://www.cppblog.com/alantop/comments/29084.html</wfw:comment><comments>http://www.cppblog.com/alantop/archive/2007/07/31/29084.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cppblog.com/alantop/comments/commentRss/29084.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/alantop/services/trackbacks/29084.html</trackback:ping><description><![CDATA[<a href="http://www.gardenui.com/index.aspx">http://www.gardenui.com/index.aspx</a><br><br>界面库图片<br>对话框<br><img height=600 alt="" src="http://www.cppblog.com/images/cppblog_com/alantop/01.JPG" width=300 border=0><br><br>多文档<br><img height=768 alt="" src="http://www.cppblog.com/images/cppblog_com/alantop/02.JPG" width=988 border=0><br><br>单文档<br><img height=768 alt="" src="http://www.cppblog.com/images/cppblog_com/alantop/03.JPG" width=988 border=0><br>
<img src ="http://www.cppblog.com/alantop/aggbug/29084.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/alantop/" target="_blank">AlanTop</a> 2007-07-31 16:31 <a href="http://www.cppblog.com/alantop/archive/2007/07/31/29084.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>bitset::flip的含义和用法：</title><link>http://www.cppblog.com/alantop/archive/2007/07/11/27866.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Wed, 11 Jul 2007 06:12:00 GMT</pubDate><guid>http://www.cppblog.com/alantop/archive/2007/07/11/27866.html</guid><wfw:comment>http://www.cppblog.com/alantop/comments/27866.html</wfw:comment><comments>http://www.cppblog.com/alantop/archive/2007/07/11/27866.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/alantop/comments/commentRss/27866.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/alantop/services/trackbacks/27866.html</trackback:ping><description><![CDATA[<p>bitset::flip：反转所有位，或者指定的位。 <p>Toggles the value of all the bits in a bitset or toggles a single bit at a specified position. <p>&nbsp; <p>反转：原来是1，反转后就是0；如果原来是0，toggle后就是1. <p>不带参数调用，就是反转所有位。 <p>带参数，即是从右边数0开始数，反转第几位。（注意：两点 1是从右边数，2是从0开始） <p>&nbsp; <p>// bitset_flip.cpp<br>// compile with: /EHsc<br>#include &lt;bitset&gt;<br>#include &lt;iostream&gt;  <p>int main( )<br>{<br>&nbsp;&nbsp;&nbsp; using namespace std;<br>&nbsp;&nbsp;&nbsp; bitset&lt;5&gt; b1 ( 6 );  <p>&nbsp;&nbsp;&nbsp; cout &lt;&lt; "The collection of bits in the original bitset is: ( "<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;&lt; b1 &lt;&lt; " )" &lt;&lt; endl;  <p>&nbsp;&nbsp;&nbsp; bitset&lt;5&gt; fb1;<br>&nbsp;&nbsp;&nbsp; fb1 = b1.flip ( );  <p>&nbsp;&nbsp;&nbsp; cout &lt;&lt; "After flipping all the bits, the bitset becomes: ( "<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;&lt; fb1 &lt;&lt; " )" &lt;&lt; endl;  <p>&nbsp;&nbsp;&nbsp; bitset&lt;5&gt; f3b1;<br>&nbsp;&nbsp;&nbsp; f3b1 = b1.flip ( 0 );  <p>&nbsp;&nbsp;&nbsp; cout &lt;&lt; "After flipping the fourth bit, the bitset becomes: ( "<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;&lt; f3b1 &lt;&lt; " )" &lt;&lt; endl &lt;&lt; endl;  <p>&nbsp;&nbsp;&nbsp; bitset&lt;5&gt; b2;<br>&nbsp;&nbsp;&nbsp; int i;<br>&nbsp;&nbsp;&nbsp; for ( i = 0 ; i &lt;= 4 ; i++ )<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; b2.flip(i);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cout &lt;&lt; b2 &lt;&lt; "&nbsp; The bit flipped is in position "<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;&lt; i &lt;&lt; ".\n";<br>&nbsp;&nbsp;&nbsp; }<br>} <p>&nbsp; <p>运行结果： <p><a href="http://www.cppblog.com/images/cppblog_com/alantop/WindowsLiveWriter/bitsetflip_C6F3/flip.jpg" atomicselection="true"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="229" alt="flip" src="http://www.cppblog.com/images/cppblog_com/alantop/WindowsLiveWriter/bitsetflip_C6F3/flip_thumb.jpg" width="686" border="0"></a><img src ="http://www.cppblog.com/alantop/aggbug/27866.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/alantop/" target="_blank">AlanTop</a> 2007-07-11 14:12 <a href="http://www.cppblog.com/alantop/archive/2007/07/11/27866.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>如何提取数字和字符混合的字符串</title><link>http://www.cppblog.com/alantop/archive/2007/07/11/27848.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Wed, 11 Jul 2007 02:15:00 GMT</pubDate><guid>http://www.cppblog.com/alantop/archive/2007/07/11/27848.html</guid><wfw:comment>http://www.cppblog.com/alantop/comments/27848.html</wfw:comment><comments>http://www.cppblog.com/alantop/archive/2007/07/11/27848.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/alantop/comments/commentRss/27848.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/alantop/services/trackbacks/27848.html</trackback:ping><description><![CDATA[<p>#include &lt;stdlib.h&gt;<br>#include &lt;stdio.h&gt;  <p>int main( void )<br>{<br>&nbsp;&nbsp;&nbsp; char&nbsp;&nbsp; *string, *stopstring;<br>&nbsp;&nbsp;&nbsp; long&nbsp;&nbsp; l;  <p>&nbsp;&nbsp;&nbsp; string = "10110134";<br>&nbsp;&nbsp;&nbsp; l = strtol( string, &amp;stopstring, 10 );<br>&nbsp;&nbsp;&nbsp; printf( "string = %s\n", string );<br>&nbsp;&nbsp;&nbsp; printf("&nbsp;&nbsp; strtol = %ld\n", l );<br>&nbsp;&nbsp;&nbsp; printf("&nbsp;&nbsp; Stopped scan at: %s\n\n", stopstring );<br>}  <img src ="http://www.cppblog.com/alantop/aggbug/27848.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/alantop/" target="_blank">AlanTop</a> 2007-07-11 10:15 <a href="http://www.cppblog.com/alantop/archive/2007/07/11/27848.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>使用bitset做十进制、二进制的转换</title><link>http://www.cppblog.com/alantop/archive/2007/07/11/27845.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Wed, 11 Jul 2007 01:47:00 GMT</pubDate><guid>http://www.cppblog.com/alantop/archive/2007/07/11/27845.html</guid><wfw:comment>http://www.cppblog.com/alantop/comments/27845.html</wfw:comment><comments>http://www.cppblog.com/alantop/archive/2007/07/11/27845.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.cppblog.com/alantop/comments/commentRss/27845.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/alantop/services/trackbacks/27845.html</trackback:ping><description><![CDATA[<p>例子一、十进制转换二进制  <p>// bitset_bitset.cpp<br>// compile with: /EHsc<br>#include &lt;bitset&gt;<br>#include &lt;iostream&gt;  <p>int main( )<br>{<br>&nbsp;&nbsp;&nbsp; // Using the default constructor<br>&nbsp;&nbsp;&nbsp; using namespace std;  <p>&nbsp;&nbsp;&nbsp; // Using the second member function<br>&nbsp;&nbsp;&nbsp; bitset&lt;20&gt; b1 ( 5 );<br>&nbsp;&nbsp;&nbsp; cout &lt;&lt; "The set of bits in bitset&lt;5&gt; b1( 5 ) is: ( "<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;&lt; b1 &lt;&lt; " )." &lt;&lt; endl;  <p>}</p> <p>&nbsp;</p> <p>例子二、二进制转换十进制  <p>#include &lt;bitset&gt;<br>#include &lt;iostream&gt;  <p>void main()<br>{<br>&nbsp;&nbsp;&nbsp; using namespace std;<br>&nbsp;&nbsp;&nbsp; string bitval5 ("11110011011");<br>&nbsp;&nbsp;&nbsp; int length = strlen("11110011011");<br>&nbsp;&nbsp;&nbsp; bitset&lt;11&gt; b5 ( bitval5);<br>&nbsp;&nbsp;&nbsp; cout &lt;&lt; b5 &lt;&lt; endl;<br>&nbsp;&nbsp;&nbsp; cout &lt;&lt; b5.to_ulong( ) &lt;&lt; endl;<br>}  <p>&nbsp; <p>例子三、支持指针<br>#include &lt;bitset&gt;<br>#include &lt;iostream&gt;  <p>void main()<br>{<br>&nbsp;&nbsp;&nbsp; using namespace std;<br>&nbsp;&nbsp;&nbsp; char p[] = "11110011011";  <p>&nbsp;&nbsp;&nbsp; bitset&lt;50&gt; b5 ( p);<br>&nbsp;&nbsp;&nbsp; cout &lt;&lt; b5 &lt;&lt; endl;<br>&nbsp;&nbsp;&nbsp; cout &lt;&lt; b5.to_ulong( ) &lt;&lt; endl;<br>} <img src ="http://www.cppblog.com/alantop/aggbug/27845.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/alantop/" target="_blank">AlanTop</a> 2007-07-11 09:47 <a href="http://www.cppblog.com/alantop/archive/2007/07/11/27845.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>