<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feeds.feedsky.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feeds.feedsky.com/csdn.net/gothicane" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feeds.feedsky.com/csdn.net/gothicane" type="application/rss+xml"></fs:self_link><lastBuildDate>Thu, 09 Jun 2011 09:11:00 GMT</lastBuildDate><title>Gothic的专栏</title><description>刘小宇</description><link>http://blog.csdn.net/blogrss.aspx?username=gothicane</link><item><title>结构体0长度数组的作用</title><link>http://blog.csdn.net/gothicane/archive/2011/06/09/6534547.aspx</link><description>&lt;br /&gt;



在标准 C 和 C++ 中，不允许用 0 长度数组，但在 GNU C 中，却可以定义 0 长度数组。比如：引用 structline{&lt;br /&gt;
         intlength
;&lt;br /&gt;
         charcontents[0];&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;
0
 长度数组不占有空间，从打印 sizeof (struct line) 可以看到这个结构体的长度为 4，这 4 字节空间属于整型量 length
 。那么结构体里最后的 0 长度字符数组 contents[0] 用来做什么呢？答案是，它可以用来指向一段由你自己分配的 buffer 
空间。如：引用 intthis_length=60
;&lt;br /&gt;structline*thisline=
 (structline*
)malloc
 (sizeof
 (structline
) +this_length
);&lt;br /&gt;
thisline-&gt;length = this_length;&lt;br /&gt;&lt;br /&gt;
这样，就开辟了 64 字节空&lt;img src=&quot;http://www1.feedsky.com/t1/521155493/gothicane/csdn.net/s.gif?r=http://blog.csdn.net/gothicane/archive/2011/06/09/6534547.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Thu, 09 Jun 2011 17:11:00 +0800</pubDate><author>gothicane</author><guid isPermaLink="false">http://blog.csdn.net/gothicane/archive/2011/06/09/6534547.aspx</guid><dc:creator>gothicane</dc:creator><fs:srclink>http://blog.csdn.net/gothicane/archive/2011/06/09/6534547.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/gothicane/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/gothicane/~1094256/521155493/1094254</fs:itemid></item><item><title>类的成员函数指针</title><link>http://blog.csdn.net/gothicane/archive/2010/02/22/5317014.aspx</link><description>&lt;br /&gt;  先看这样一段代码&lt;br /&gt;class test &lt;br /&gt;{ &lt;br /&gt;public: &lt;br /&gt;test(int i){ m_i=i;} &lt;br /&gt;test(){}; &lt;br /&gt;void hello() &lt;br /&gt;{ &lt;br /&gt;printf(&quot;hello\n&quot;); &lt;br /&gt;} &lt;br /&gt;private: &lt;br /&gt;int m_i; &lt;br /&gt;}; &lt;br /&gt;int main() &lt;br /&gt;{ &lt;br /&gt; test *p=new test(); &lt;br /&gt; p-&gt;hello(); &lt;br /&gt; p=NULL; &lt;br /&gt; p-&gt;hello(); &lt;br /&gt;} &lt;br /&gt;结果是:&lt;br /&gt;hello&lt;br /&gt;hello&lt;br /&gt;为何&lt;br /&gt;p=NULL; &lt;br /&gt; p-&gt;hello();   这样之后，NULL-&gt;hello()也依然有效呢？&lt;br /&gt;我们第一反应一定是觉得类的实例的成员函数，不同于成员变量，成员函数全部都存在同一个地方，所以的类的实例来调用的时候，一定是调用相同的函数指针。（想想也是有道理的，成员函&lt;img src=&quot;http://www1.feedsky.com/t1/521155494/gothicane/csdn.net/s.gif?r=http://blog.csdn.net/gothicane/archive/2010/02/22/5317014.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Mon, 22 Feb 2010 15:20:00 +0800</pubDate><author>gothicane</author><guid isPermaLink="false">http://blog.csdn.net/gothicane/archive/2010/02/22/5317014.aspx</guid><dc:creator>gothicane</dc:creator><fs:srclink>http://blog.csdn.net/gothicane/archive/2010/02/22/5317014.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/gothicane/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/gothicane/~1094256/521155494/1094254</fs:itemid></item><item><title>用位运算求余数</title><link>http://blog.csdn.net/gothicane/archive/2009/01/20/3839180.aspx</link><description>用位运算求余数&lt;br /&gt;&lt;br /&gt;#include&lt;br /&gt;
using namespace std;&lt;br /&gt;
 *编写一个程序，将从键盘输出的一个整数值读入int型变量，&lt;br /&gt;
 *并使用按位运算符之一(不能用%运算符！)确定这个值除以8&lt;br /&gt;
 *时的正余数。例如，29＝(3*8)+5和-14=(-2*8)+2的正余数&lt;br /&gt;
 *分别是5和2&lt;br /&gt;
 *说明：29的二进制是11101，8的二进制是1000，根据&lt;br /&gt;
 *二进制128 64 32 16 8 4 2 1 从8~128...都是8的倍数；&lt;br /&gt;
 *      
0   0 
0  1 1 1 0 1&lt;br /&gt;
 *所以只需要让00011101和00000111进行与进算就可以了       &lt;br /&gt;&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
 int a,b;&lt;br /&gt;
 a=-2361;&lt;br /&gt;
 b=8;&lt;br /&gt;
 cout</description><pubDate>Tue, 20 Jan 2009 12:36:00 +0800</pubDate><author>gothicane</author><guid isPermaLink="false">http://blog.csdn.net/gothicane/archive/2009/01/20/3839180.aspx</guid><dc:creator>gothicane</dc:creator><fs:srclink>http://blog.csdn.net/gothicane/archive/2009/01/20/3839180.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/gothicane/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/gothicane/~1094256/521155495/1094254</fs:itemid></item><item><title>epoll为什么这么快</title><link>http://blog.csdn.net/gothicane/archive/2008/11/14/3298415.aspx</link><description>epoll是多路复用IO(I/O Multiplexing)中的一种方式,但是仅用于linux2.6以上内核</description><pubDate>Fri, 14 Nov 2008 13:37:00 +0800</pubDate><author>gothicane</author><guid isPermaLink="false">http://blog.csdn.net/gothicane/archive/2008/11/14/3298415.aspx</guid><dc:creator>gothicane</dc:creator><fs:srclink>http://blog.csdn.net/gothicane/archive/2008/11/14/3298415.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/gothicane/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/gothicane/~1094256/521155496/1094254</fs:itemid></item><item><title>C代码优化方案</title><link>http://blog.csdn.net/gothicane/archive/2008/10/16/3086582.aspx</link><description>C代码优化方案</description><pubDate>Thu, 16 Oct 2008 17:11:00 +0800</pubDate><author>gothicane</author><guid isPermaLink="false">http://blog.csdn.net/gothicane/archive/2008/10/16/3086582.aspx</guid><dc:creator>gothicane</dc:creator><fs:srclink>http://blog.csdn.net/gothicane/archive/2008/10/16/3086582.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/gothicane/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/gothicane/~1094256/521155497/1094254</fs:itemid></item><item><title>Linux网卡驱动分析</title><link>http://blog.csdn.net/gothicane/archive/2008/09/24/2973508.aspx</link><description>Linux网卡驱动分析</description><pubDate>Wed, 24 Sep 2008 15:57:00 +0800</pubDate><author>gothicane</author><guid isPermaLink="false">http://blog.csdn.net/gothicane/archive/2008/09/24/2973508.aspx</guid><dc:creator>gothicane</dc:creator><fs:srclink>http://blog.csdn.net/gothicane/archive/2008/09/24/2973508.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/gothicane/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/gothicane/~1094256/521155498/1094254</fs:itemid></item><item><title>C++中数值--字符串间的转换</title><link>http://blog.csdn.net/gothicane/archive/2008/09/19/2950197.aspx</link><description>C++中数值--字符串间的转换</description><pubDate>Fri, 19 Sep 2008 10:06:00 +0800</pubDate><author>gothicane</author><guid isPermaLink="false">http://blog.csdn.net/gothicane/archive/2008/09/19/2950197.aspx</guid><dc:creator>gothicane</dc:creator><fs:srclink>http://blog.csdn.net/gothicane/archive/2008/09/19/2950197.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/gothicane/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/gothicane/~1094256/521155499/1094254</fs:itemid></item><item><title>strace命令详解</title><link>http://blog.csdn.net/gothicane/archive/2008/09/18/2947134.aspx</link><description>strace命令详解</description><pubDate>Thu, 18 Sep 2008 14:38:00 +0800</pubDate><author>gothicane</author><guid isPermaLink="false">http://blog.csdn.net/gothicane/archive/2008/09/18/2947134.aspx</guid><dc:creator>gothicane</dc:creator><fs:srclink>http://blog.csdn.net/gothicane/archive/2008/09/18/2947134.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/gothicane/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/gothicane/~1094256/521155500/1094254</fs:itemid></item><item><title>openssl开发过程中的一些总结</title><link>http://blog.csdn.net/gothicane/archive/2008/09/10/2908199.aspx</link><description>openssl开发过程中的一些总结</description><pubDate>Wed, 10 Sep 2008 11:26:00 +0800</pubDate><author>gothicane</author><guid isPermaLink="false">http://blog.csdn.net/gothicane/archive/2008/09/10/2908199.aspx</guid><dc:creator>gothicane</dc:creator><fs:srclink>http://blog.csdn.net/gothicane/archive/2008/09/10/2908199.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/gothicane/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/gothicane/~1094256/521155501/1094254</fs:itemid></item><item><title>用OpenSSL编写SSL,TLS程序 - Win32版</title><link>http://blog.csdn.net/gothicane/archive/2008/09/10/2908136.aspx</link><description>用OpenSSL编写SSL,TLS程序 - Win32版</description><pubDate>Wed, 10 Sep 2008 11:19:00 +0800</pubDate><author>gothicane</author><guid isPermaLink="false">http://blog.csdn.net/gothicane/archive/2008/09/10/2908136.aspx</guid><dc:creator>gothicane</dc:creator><fs:srclink>http://blog.csdn.net/gothicane/archive/2008/09/10/2908136.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/gothicane/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/gothicane/~1094256/521155502/1094254</fs:itemid></item></channel></rss>
