﻿<?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>IT博客-流水不腐，户枢不蠹-随笔分类-01c/c++</title><link>http://www.cnitblog.com/funny/category/3143.html</link><description>swap, not lost! </description><language>zh-cn</language><lastBuildDate>Sun, 02 Oct 2011 01:12:47 GMT</lastBuildDate><pubDate>Sun, 02 Oct 2011 01:12:47 GMT</pubDate><ttl>60</ttl><item><title>c/c++几个入门知识点</title><link>http://www.cnitblog.com/funny/archive/2006/06/19/12494.html</link><dc:creator>my whole world! </dc:creator><author>my whole world! </author><pubDate>Mon, 19 Jun 2006 06:01:00 GMT</pubDate><guid>http://www.cnitblog.com/funny/archive/2006/06/19/12494.html</guid><wfw:comment>http://www.cnitblog.com/funny/comments/12494.html</wfw:comment><comments>http://www.cnitblog.com/funny/archive/2006/06/19/12494.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/funny/comments/commentRss/12494.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/funny/services/trackbacks/12494.html</trackback:ping><description><![CDATA[1.在申明区里，下面两种头文件引用方式的区别：<br />  #include &lt;iostream.h&gt;:  <font color="#0000ff">只在编译器提供的头文件的目录下寻找该文件。</font><br />  #inclued "iostream.h":    <font color="#0000ff">先在所要编译的程序的目录下寻找该文件，未找到时再去编译器提供的头文件的目录下寻找该文件。</font><br /><br />2.程序头中void main()与int main()区别：<br /> <font color="#0000ff"> void main()：</font>程序结束时，<font color="#0000ff">无需加return 0;</font> 返回语句即可返回。<br />  <font color="#ff1493">int main()：</font> 程序结束时，<font color="#ff1493">需加return 0;</font> 返回语句才能返回。<br /><br />3.看变量的定义类型的小诀窍：<br />  c/c++中由于有指针数组的引入，很多变量定义会容易混淆，如 *int a,和 int *a ,这里有个小诀窍。<br />  记住下面的表达式，<font color="#0000ff">...(8)(6)(4)(2)a(1)(3)(5)(7)...<br /></font>  然后记住规则：看变量，先看右边紧邻的定义，然后看左边紧邻，然后再看右边第二邻的，再看左边第二邻。。。。这样是否很简单了？呵呵！<br /><br />4.布尔类型：<br />  false   代表   0<br />  true    代表   1<br /> <br /><img src ="http://www.cnitblog.com/funny/aggbug/12494.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/funny/" target="_blank">my whole world! </a> 2006-06-19 14:01 <a href="http://www.cnitblog.com/funny/archive/2006/06/19/12494.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>