<?xml version="1.0" encoding="UTF-8"?><rss version="0.92">
<channel>
	<title>wildpointer&#039;s blog</title>
	<link>http://wildpointer.net</link>
	<description>方向比努力重要，能力比知识重要，健康比成绩重要，生活比文凭重要，情商比智商重要</description>
	<lastBuildDate>Sat, 14 Apr 2012 08:13:27 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	<!-- generator="WordPress/3.2.1" -->

	<item>
		<title>用Doxygen+Graphviz生成函数调用流程图</title>
		<description><![CDATA[上面这张图是用Doxygen+Graphviz从netcat的源代码生成的函数调用关系图。这种图有助于阅读源代码。 还可以生成class（或者struct）之间的关系图，如下所示： &#160; 现在介绍如何使用Doxygen和Graphviz生成这种图： 1. 下载并安装Doxygen和Graphviz。直接Google就可以找到主页，下载安装即可。 2. 记住Graphviz的安装目录，以后要用到。 3. 运行doxywizard。 &#160;]]></description>
		<link>http://wildpointer.net/2012/04/14/doxygen_graphviz/</link>
			</item>
	<item>
		<title>参数类型提升</title>
		<description><![CDATA[读了Sponge Liu的这篇文章之后，学到了参数类型提升相关的东西。 在C11最新的草案N1570中的6.5.2.2节的第6条提到 1 2 3 If the expression that denotes the called function has a type that does not include a prototype, the integer promotions are performed on each argument, and arguments that have type float are promoted to double. 我的理解是：函数调用时，如果实参在形参表中没有原型，则对实参进行类型提升。float提升到double，char, unsigned char, short, unsigned short 提升到 int。 由此可知，使用变参数函数时，va_arg的第二个参数不可以是char, unsigned char, short, unsigned short, [...]]]></description>
		<link>http://wildpointer.net/2012/04/01/argument_promotion/</link>
			</item>
	<item>
		<title>编译安装gcc4.7.0</title>
		<description><![CDATA[gcc4.7.0出来了，我想体验一下C11的新特性，找了找，没找到Ubuntu10.04上的DEB安装包，只能自己编译安装了。 Google一下在这里下载到源码包，然后不管三七二十一，解压，./configure, make。然后出错了。说需要gmp, mpfr和mpc。 于是又去这里下载了这三个包。 分别解压，./configure, make, make install.然后我看了一下，这三个包都装在了/usr/lib里。 于是回到gcc 4.7.0的目录，运行./configure &#8211;with-gmp=/usr/lib &#8211;with-mpfr=/usr/lib &#8211;with-mpc=/usr/lib， 然后make，然后我就下班回家了。今天早上来了看了看，编译完了，sudo make install，然后运行了一下gcc -v，看到是4.7.0，安装成功了。]]></description>
		<link>http://wildpointer.net/2012/03/27/compile_and_install_gcc4-7-0/</link>
			</item>
	<item>
		<title>常州行</title>
		<description><![CDATA[18号阿寅结婚，我去了趟常州。见到了几个同学。 一段时间前，李园从日本回来了，18号就走了。他不认识李明了，说明东京的辐射挺严重的。 在常州火车站打车真难。好多黑车。 见到了一个楼盘广告牌，4980一平。还有常州世贸中心，也是两个离得很近的楼。 火车站的地挺干净的。本来是四点的火车，我们迟到了几分钟。去趟厕所，出来后坐在厕所门口等七点的火车。脑袋实在不清楚（喝酒了），躺在地上睡了两了时，好爽！四个人躺在厕所门口睡觉，被各种人围观。我都不记得上一次躺在地上睡觉是什么时候了。]]></description>
		<link>http://wildpointer.net/2012/03/23/changzhou_trip/</link>
			</item>
	<item>
		<title>0和NULL的区别</title>
		<description><![CDATA[在C/C++语言中，NULL是个宏。 在我的Windows机器上的stddef.h中，有如下的宏定义： 1 2 3 4 5 6 7 8 /* Define NULL pointer value */ #ifndef NULL #ifdef __cplusplus #define NULL 0 #else #define NULL ((void *)0) #endif #endif 在我的Linux虚拟机中的stddef.h中，有差不多的定义。 以上定义说明：在C++语言中，NULL是int型的0；在C++语言中，NULL是void *类型的0。表面上是这样，事实却不同。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 [...]]]></description>
		<link>http://wildpointer.net/2012/01/17/difference_0_null/</link>
			</item>
	<item>
		<title>欲望的层次</title>
		<description><![CDATA[今天看到有人在水木上发帖：发帖人刚怀孕，但这是二胎，自己和工作在体制内，没办法再要了，要打掉，很伤感。 鱼和熊掌不可得兼，舍鱼而取熊掌者也。 孩子和体制内的工作，二者不可得兼，舍孩子而取工作者也。 有些人，为了鱼和熊掌不能兼得而伤感； 有些人，嫌鱼和熊掌太小而伤感； 有些人，因为没鱼也没熊掌而伤感。]]></description>
		<link>http://wildpointer.net/2012/01/07/level_of_desire/</link>
			</item>
	<item>
		<title>一个练手的程序</title>
		<description><![CDATA[1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 [...]]]></description>
		<link>http://wildpointer.net/2011/12/12/1136/</link>
			</item>
	<item>
		<title>This is a test</title>
		<description><![CDATA[Teach Bing Liu. 先在1号圈圈里写标题。之后会自动生成地址。 可以点击2号圈圈改地址。 点击3号圈圈。 4号圈圈中的东西可以上传图片、音乐、视频。 5号圈圈中的东西就像word一样。 6号圈圈可以让你把word文档直接贴进来。 7号圈圈可以用来加链接，一会儿你做好了第个网页再用。 8号圈圈让你发布，点了它之后，你就可以在www.wildpointer.net看到你的帖子了。]]></description>
		<link>http://wildpointer.net/2011/11/29/bing-liu-test/</link>
			</item>
	<item>
		<title>螺旋数组</title>
		<description><![CDATA[1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 [...]]]></description>
		<link>http://wildpointer.net/2011/11/07/rotate_array/</link>
			</item>
	<item>
		<title>operator new的故事</title>
		<description><![CDATA[operator new是一组函数，当使用new operator申请内存并调用构造函数时会用到它，operator new函数就是用来申请内存的，差不多相当于malloc. operator delete也是一组函数，如果new operator调用operator new分配空间后，调用构造函数失败，则operator delete被C++运行环境调用来释放operator new申请到的空间，程序员不会手动直接调用这类函数。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 namespace std &#123; class bad_alloc; class bad_array_new_length; struct nothrow_t &#123;&#125;; extern const nothrow_t nothrow; typedef void &#40;*new_handler&#41;&#40;&#41;; new_handler get_new_handler&#40;&#41; noexcept; new_handler set_new_handler&#40;new_handler new_p&#41; noexcept; [...]]]></description>
		<link>http://wildpointer.net/2011/11/06/operator-new/</link>
			</item>
</channel>
</rss>

