﻿<?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++博客-BillyYu-最新评论</title><link>http://www.cppblog.com/BillyYu/CommentsRSS.aspx</link><description /><language>zh-cn</language><pubDate>Sat, 19 Apr 2008 04:49:12 GMT</pubDate><lastBuildDate>Sat, 19 Apr 2008 04:49:12 GMT</lastBuildDate><generator>cnblogs</generator><item><title>re: 在Linux 下编写了一段 shell 脚本，出错</title><link>http://www.cppblog.com/BillyYu/archive/2008/03/19/32825.html#44889</link><dc:creator>keky</dc:creator><author>keky</author><pubDate>Wed, 19 Mar 2008 13:52:00 GMT</pubDate><guid>http://www.cppblog.com/BillyYu/archive/2008/03/19/32825.html#44889</guid><description><![CDATA[兄弟我遇到同样的问题，能否交流下经验。。QQ87280231<br>Email:hyclf@126.com<br>THX..<img src ="http://www.cppblog.com/BillyYu/aggbug/44889.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/BillyYu/" target="_blank">keky</a> 2008-03-19 21:52 <a href="http://www.cppblog.com/BillyYu/archive/2008/03/19/32825.html#44889#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Setting gmail in Kmail</title><link>http://www.cppblog.com/BillyYu/archive/2008/03/09/43541.html#44029</link><dc:creator>志华</dc:creator><author>志华</author><pubDate>Sun, 09 Mar 2008 11:33:00 GMT</pubDate><guid>http://www.cppblog.com/BillyYu/archive/2008/03/09/43541.html#44029</guid><description><![CDATA[试了多次之后，发现发送的功能还不能实现，看来还要在折腾一番，如果有谁知道的话，提个醒啊！！<img src ="http://www.cppblog.com/BillyYu/aggbug/44029.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/BillyYu/" target="_blank">志华</a> 2008-03-09 19:33 <a href="http://www.cppblog.com/BillyYu/archive/2008/03/09/43541.html#44029#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Makefile manual---转载</title><link>http://www.cppblog.com/BillyYu/archive/2008/02/17/39534.html#42851</link><dc:creator>志华</dc:creator><author>志华</author><pubDate>Sun, 17 Feb 2008 14:11:00 GMT</pubDate><guid>http://www.cppblog.com/BillyYu/archive/2008/02/17/39534.html#42851</guid><description><![CDATA[终于在转贴完这篇Makefile的文档后的一个多月后把这个学习了一下，以后再接再厉！！<img src ="http://www.cppblog.com/BillyYu/aggbug/42851.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/BillyYu/" target="_blank">志华</a> 2008-02-17 22:11 <a href="http://www.cppblog.com/BillyYu/archive/2008/02/17/39534.html#42851#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 在Linux 下编写了一段 shell 脚本，出错</title><link>http://www.cppblog.com/BillyYu/archive/2007/09/29/32825.html#33230</link><dc:creator>志华</dc:creator><author>志华</author><pubDate>Sat, 29 Sep 2007 15:13:00 GMT</pubDate><guid>http://www.cppblog.com/BillyYu/archive/2007/09/29/32825.html#33230</guid><description><![CDATA[当初试这个脚本的时候，是在一个unix服务器上，只装有Java，而没有c/c++；后来在linux上事了一下之后，发现是可以运行的，没有出现相关的错误，而这个电脑上是装有gcc编译器的。看来，那位回答我问题的仁兄说的是正确的。<br><br>抱着怀疑的态度固然不错，但瞎起疑就不对了。有则改之无则加勉，嗯。keep going on！<img src ="http://www.cppblog.com/BillyYu/aggbug/33230.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/BillyYu/" target="_blank">志华</a> 2007-09-29 23:13 <a href="http://www.cppblog.com/BillyYu/archive/2007/09/29/32825.html#33230#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 在Linux中利用gcc编译遇到问题</title><link>http://www.cppblog.com/BillyYu/archive/2007/09/23/32715.html#32742</link><dc:creator>AMXTSHMF</dc:creator><author>AMXTSHMF</author><pubDate>Sun, 23 Sep 2007 13:51:00 GMT</pubDate><guid>http://www.cppblog.com/BillyYu/archive/2007/09/23/32715.html#32742</guid><description><![CDATA[呵呵，需要了解一下gcc编译器，其实g++编译时他会调用gcc，然后链接。<img src ="http://www.cppblog.com/BillyYu/aggbug/32742.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/BillyYu/" target="_blank">AMXTSHMF</a> 2007-09-23 21:51 <a href="http://www.cppblog.com/BillyYu/archive/2007/09/23/32715.html#32742#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 在Linux中利用gcc编译遇到问题</title><link>http://www.cppblog.com/BillyYu/archive/2007/09/23/32715.html#32716</link><dc:creator>志华</dc:creator><author>志华</author><pubDate>Sun, 23 Sep 2007 05:57:00 GMT</pubDate><guid>http://www.cppblog.com/BillyYu/archive/2007/09/23/32715.html#32716</guid><description><![CDATA[哎呀，以后还是要遵循一条原则：知之为知之，不知google之。 后来我去找了一下，这个错误是因为用错了命令所致的，在linux中对C++的应用g++进行编译，顺便贴一下一个博客中的内容<br><br>Linux C++ 自学笔记 <br>作者：未知 来源:<a target="_new" href="http://www.51one.net">http://www.51one.net</a> (2005-03-21 13:39:10) <br><br> <br>Linux C++ 自学笔记<br>1、安装系统<br>这就不用说了吧，我装的是Redhat Linux 7.2，安装过程智能化，价格也不贵（<br><br>9CD+500页手册共69RMB），大家也都支持支持正版，还有一些简单命令<br>ls - 列目录<br>cd - 进入目录<br>man - 帮助<br>gcc -　编译器<br><br>2、文本编辑器<br>开如想用vi，发现不太好用，在图形界面下找了个Advanced Editor,当文件存为.c或<br><br>.cpp后，关键字自动以不同颜色显示（呵呵，比windows的帅多了），支持缩格^I，赶<br><br>快加入Favorites，菜单位置在KDE menus-&gt;Editors-&gt;Advanced Editor<br><br>3、编译C－“Hello world!”<br>#include &lt;stdio.h&gt;<br><br>int main(void)<br>{<br> printf(&quot;Hello world!\n&quot;);<br> return 0;<br>}<br>存盘为Hello.c<br>在命令行下输入：gcc Hello.c -o hello (要注意大小写哦)<br>编译时可能有如下警告：<br>no newline at end of file<br>在文件最后补一个新行即可<br>执行文件：./hello<br>呵呵，Hello world!可爱的字眼就出来了<br><br>4、编译C++ －“Hello world!”<br>#include &lt;iostream.h&gt;<br><br>int main()<br>{<br> cout &lt;&lt; &quot;Hello world!\n&quot; &lt;&lt; endl;<br> return 0;<br>}<br>编译出错：　undefined reference to ''cout''<br>呀！怎么连cout都不认识，赶快查查，看man怎么说：<br>man gcc<br>哦，原来要用g++编译C++程序<br>g++ Hello.cpp -o hello<br><br>5、编译类<br>有三个文件：Hello.h、Hello.cpp、MyFirst.cpp，内容如下：<br>file://Hello.h<br>#ifndef HelloH<br>#define HelloH<br><br>class Hello<br>{<br> Hello();<br> void Display();<br>}<br><br>file://Hello.cpp<br>#include &quot;Hello.h&quot;<br>#include &lt;iostream.h&gt;<br><br>Hello::Hello()<br>{<br>}<br><br>Hello::Display()<br>{<br> cout &lt;&lt; &quot;Hello world!\n&quot; &lt;&lt; endl;<br>}<br><br>file://MyFirst.cpp<br>#include &lt;iostream.h&gt;<br>#include &quot;Hello.h&quot;<br><br>int main()<br>{<br> Hello theHello;<br> theHello-&gt;Display();<br><br> return 0;<br>}<br>开始编译：g++ MyFirst.cpp -o MyFirst<br>呀，出错：<br>undefined reference to ''Hello::Hello(void)''<br>undefined reference to ''Hello::Display()''<br>呵，看来是不能链接Hello.cpp出错，先改一下<br>在MyFirst.cpp中：将#include &quot;Hello.h&quot;改为#include &quot;Hello.cpp&quot;<br>编译通过，在查查帮助，有参数 -c　可以只编译不链接<br><br>呵呵，天黑了，玩把帝国，晚上看看书，明天再接着来。<br><br> <br><img src ="http://www.cppblog.com/BillyYu/aggbug/32716.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/BillyYu/" target="_blank">志华</a> 2007-09-23 13:57 <a href="http://www.cppblog.com/BillyYu/archive/2007/09/23/32715.html#32716#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: The means of Gotcha</title><link>http://www.cppblog.com/BillyYu/archive/2007/09/17/32279.html#32352</link><dc:creator>力为</dc:creator><author>力为</author><pubDate>Mon, 17 Sep 2007 07:57:00 GMT</pubDate><guid>http://www.cppblog.com/BillyYu/archive/2007/09/17/32279.html#32352</guid><description><![CDATA[I got you~<img src ="http://www.cppblog.com/BillyYu/aggbug/32352.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/BillyYu/" target="_blank">力为</a> 2007-09-17 15:57 <a href="http://www.cppblog.com/BillyYu/archive/2007/09/17/32279.html#32352#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: The means of Gotcha</title><link>http://www.cppblog.com/BillyYu/archive/2007/09/17/32279.html#32331</link><dc:creator>turing</dc:creator><author>turing</author><pubDate>Sun, 16 Sep 2007 16:07:00 GMT</pubDate><guid>http://www.cppblog.com/BillyYu/archive/2007/09/17/32279.html#32331</guid><description><![CDATA[gotcha一般可以译为“陷阱”。<img src ="http://www.cppblog.com/BillyYu/aggbug/32331.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/BillyYu/" target="_blank">turing</a> 2007-09-17 00:07 <a href="http://www.cppblog.com/BillyYu/archive/2007/09/17/32279.html#32331#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: The means of Gotcha</title><link>http://www.cppblog.com/BillyYu/archive/2007/09/16/32279.html#32292</link><dc:creator>志华</dc:creator><author>志华</author><pubDate>Sat, 15 Sep 2007 23:49:00 GMT</pubDate><guid>http://www.cppblog.com/BillyYu/archive/2007/09/16/32279.html#32292</guid><description><![CDATA[原来有了这样一本书出来了啊，有机会的话，倒可以好好的研究研究！！谢谢Minidx，发现你的blog上好多东西，要好好的学习下<br>^_^@Minidx全文检索<br><img src ="http://www.cppblog.com/BillyYu/aggbug/32292.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/BillyYu/" target="_blank">志华</a> 2007-09-16 07:49 <a href="http://www.cppblog.com/BillyYu/archive/2007/09/16/32279.html#32292#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: The means of Gotcha</title><link>http://www.cppblog.com/BillyYu/archive/2007/09/15/32279.html#32281</link><dc:creator>Minidx全文检索</dc:creator><author>Minidx全文检索</author><pubDate>Sat, 15 Sep 2007 15:09:00 GMT</pubDate><guid>http://www.cppblog.com/BillyYu/archive/2007/09/15/32279.html#32281</guid><description><![CDATA[下面是一点参考：<br>如果你打球时假动作逼真，骗过了对手，球回到令对手意想不到的地方而得分，就可以自鸣得意的大叫一声 “Gotcha!”，意思是(I’ve)got you，骗到你了吧！不知大家记不记得电影《小鬼当家》，小机灵用玩具水枪吓得歹徒落荒而逃后，满脸童真的笑意，说了一句“Gotcha!”<br><br>如果你开玩笑，朋友却信以为真，也可以说Gotcha，骗到你了吧。<br><br>在电脑领域中尤其是编程语言里经常出现，到底是什么意思呢？<br><br>Gotcha是I’ve got you的省略语，为“难倒你了”、“问倒你了”的意思。<br><br>I got you.<br>我了解.<br><br>这句跟 I see, I understand, 都是一样的, 适合在跟美国同学讨论功课时使用. 例如有一次我跟我的美国同学说这题该怎么怎么作, 他就很高兴地说, Ok, now I got you. 你如果不说 I got you, 说 I got it 也是可以的, 这二个都很常听人家说.<br>　<br>另外 I got you 有一个更常用的解释, 就是我骗到你了, 通常会读成 Gotcha.. 比如说你骗人家说, I got married. 别人回答: Oh~ Really? 这时你就可以吹著口哨说.. Hahaha.. Gotcha.<br><br>C+ +长久演化与发展以来，这样一本gotchas书籍的迟迟出版显得有点怪怪的。C++作为一个现实可用的语言，已经有至少十五年的历史了；而C++标准在过去的五年中也几乎没有改变。就此你可能会认为，语言中的缺陷现在应该已经成为众人皆知的“常识（common knowledge）[注1]”了。然而，即使经验丰富的C++程序员也会时不时遇到麻烦；Steve Dewhurst——这位从业多年的C++课程教师、作者以及顾问——则比任何人都清楚这一点。Dewhurst看上去似乎更多的是在责备程序员的求次而安，而非C++的复杂性。在本书中，对C++基础议题的忽视及不良的风格被列为程序设计中的两大原罪。经验本身无法避免这样一些人为的失误；有时候我们确是需要一些刺耳忠言。据此，C++ Gotchas不仅仅是一本关于C++疑难杂症的目类书籍，也是现世警言，提醒我们去关注那些可能被我们忽视的问题。<br><br>惯用法便是上述问题之一。在口语中，所谓惯用法是指被经常使用的单语（比如“gotcha”），其能迅捷的表达一个明晰的含义。而惯用法的含义之所以明晰，则仅仅是因为该单语被广泛使用，而非其中的各单字的含义使然。在一门编程语言中，一个惯用法是指一个表达式或技巧，其能够明晰的表达程序员的意图。同样，编程语言中惯用法表意明晰之性质源自其被广泛使用的程度。一个没能学到口语惯用法的人会处于非常不便的境地；而一个不使用编程惯用法的程序员则会导致其他所有程序员——特别是其代码维护者——的工作更难做。在Dewhurst的书中，恰当的运用惯用法被视为良好的编程风格，而良好的编程风格可以最大程度的减少gotchas出现。<img src ="http://www.cppblog.com/BillyYu/aggbug/32281.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/BillyYu/" target="_blank">Minidx全文检索</a> 2007-09-15 23:09 <a href="http://www.cppblog.com/BillyYu/archive/2007/09/15/32279.html#32281#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>