<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>遇君阁</title><link>http://blog.vckbase.com/eyesonyhm/</link><description>前不见古人，后不见来者&lt;br&gt;念天地之悠悠，独怆然而涕下</description><managingEditor>遇君阁</managingEditor><dc:language>af</dc:language><generator>.Text Version 0.958.2004.214</generator><item><dc:creator>_Bill</dc:creator><title>re: [转] C++命名规则—时刻提醒自己，命名很重要，英文要学好</title><link>http://blog.vckbase.com/eyesonyhm/archive/2008/09/23/33058.html#35105</link><pubDate>Tue, 23 Sep 2008 07:44:00 GMT</pubDate><guid>http://blog.vckbase.com/eyesonyhm/archive/2008/09/23/33058.html#35105</guid><description>类型前辍是最丑陋的规范&lt;br&gt;类型前辍将变量的类型信息从单一地点（声明变量处）复制到了多个地点（使用变量处），这是典型的冗余法。&lt;br&gt;&lt;br&gt;如：strcpy(pstrSource,pcstrDest)&amp;nbsp;Vs&amp;nbsp;strcpy(source,dest)&lt;br&gt;类型前辍在这里有个屁用（除了增加输入量）&lt;br&gt;没有一个程序员会承认自己不知道strcpy函数的参数类型吧。&lt;br&gt;再如：Function(nFoo)&amp;nbsp;Vs&amp;nbsp;Function(foo)&lt;br&gt;类型前辍在这里有什么用呢？&lt;br&gt;对于一个不能确定类型的函数，程序员应该去查看该函数的文档，&lt;br&gt;类型前辍的唯一好处是看代码的人知道这个函数要求一个整型参数，这又有什么用处呢？函数是一种接口，参数的类型仅仅是接口中的一小部分。诸如函数的功能、出口信息、线程安全性、参数合法性等重要信息还是必须查阅文档。&lt;br&gt;&lt;br&gt;再比如：nFoo=nBar&amp;nbsp;Vs&amp;nbsp;foo=bar&lt;br&gt;类型前辍在这里有什么用呢？使用类型前辍的唯一好处是看代码的人知道这里发生了一个整型变量的赋值动作。如果他看到的是nFoo=szBar，可能会从美梦中惊醒。且慢，事情真的会是这样吗？我想首先被惊醒的应该是编译器。另一方面，nFoo=nBar只是在语法上合法而已，看代码的人真正关心的是语义的合法性，类型前辍对此毫无帮助。&lt;br&gt;&lt;br&gt;最后，在模板内部定义中，你怎样在模板参数类型的对象的名字里增加些丑陋的前缀？你不知道它们是什么。&lt;img src ="http://blog.vckbase.com/eyesonyhm/aggbug/35105.html" width = "1" height = "1" /&gt;</description></item><item><dc:creator>清风雨</dc:creator><title>re: 遇到const修饰typedef所定义的类型时，请注意！</title><link>http://blog.vckbase.com/eyesonyhm/archive/2008/05/16/33618.html#33646</link><pubDate>Fri, 16 May 2008 01:57:00 GMT</pubDate><guid>http://blog.vckbase.com/eyesonyhm/archive/2008/05/16/33618.html#33646</guid><description>其实我个人认为面试把主要精力放在考察这种细节上，是一个不正确的导向，适度考察一下就可以了。&lt;br&gt;至少我以前出题时，就只是顺带。所以，我也比较相信应该有很多公司并不是真的在扣这种死细节！&lt;br&gt;不过，基础是很重要的，我自己看书一般都是学基础。&lt;br&gt;个人看法，仅供参考。&lt;br&gt;&lt;img src ="http://blog.vckbase.com/eyesonyhm/aggbug/33646.html" width = "1" height = "1" /&gt;</description></item><item><dc:creator>zdd</dc:creator><title>re: 遇到const修饰typedef所定义的类型时，请注意！</title><link>http://blog.vckbase.com/eyesonyhm/archive/2008/05/15/33618.html#33639</link><pubDate>Thu, 15 May 2008 04:27:00 GMT</pubDate><guid>http://blog.vckbase.com/eyesonyhm/archive/2008/05/15/33618.html#33639</guid><description>面试的时候经考这个知识点&lt;img src ="http://blog.vckbase.com/eyesonyhm/aggbug/33639.html" width = "1" height = "1" /&gt;</description></item><item><dc:creator>zdd</dc:creator><title>re: 遇到const修饰typedef所定义的类型时，请注意！</title><link>http://blog.vckbase.com/eyesonyhm/archive/2008/05/15/33618.html#33640</link><pubDate>Thu, 15 May 2008 04:27:00 GMT</pubDate><guid>http://blog.vckbase.com/eyesonyhm/archive/2008/05/15/33618.html#33640</guid><description>面试的时候经考这个知识点&lt;img src ="http://blog.vckbase.com/eyesonyhm/aggbug/33640.html" width = "1" height = "1" /&gt;</description></item><item><dc:creator>遇君阁</dc:creator><title>re: 简单查看unicode编码对应的字符</title><link>http://blog.vckbase.com/eyesonyhm/archive/2008/05/15/33602.html#33637</link><pubDate>Thu, 15 May 2008 03:28:00 GMT</pubDate><guid>http://blog.vckbase.com/eyesonyhm/archive/2008/05/15/33602.html#33637</guid><description>在word里进行，记事本不可以。&lt;img src ="http://blog.vckbase.com/eyesonyhm/aggbug/33637.html" width = "1" height = "1" /&gt;</description></item><item><dc:creator>遇君阁</dc:creator><title>re: 遇到const修饰typedef所定义的类型时，请注意！</title><link>http://blog.vckbase.com/eyesonyhm/archive/2008/05/15/33618.html#33636</link><pubDate>Thu, 15 May 2008 03:27:00 GMT</pubDate><guid>http://blog.vckbase.com/eyesonyhm/archive/2008/05/15/33618.html#33636</guid><description>const string 返回的是常量指针&lt;br&gt;const char *返回的是常量char&lt;img src ="http://blog.vckbase.com/eyesonyhm/aggbug/33636.html" width = "1" height = "1" /&gt;</description></item><item><dc:creator>gaoqing000</dc:creator><title>re: 遇到const修饰typedef所定义的类型时，请注意！</title><link>http://blog.vckbase.com/eyesonyhm/archive/2008/05/14/33618.html#33626</link><pubDate>Wed, 14 May 2008 11:17:00 GMT</pubDate><guid>http://blog.vckbase.com/eyesonyhm/archive/2008/05/14/33618.html#33626</guid><description>&lt;P&gt;&lt;FONT color=#000000&gt;难道先返回的是&lt;FONT color=#ff1493&gt;常量指&lt;/FONT&gt;针，后返回的是&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;常量char&lt;/FONT&gt;&lt;/P&gt;&lt;img src ="http://blog.vckbase.com/eyesonyhm/aggbug/33626.html" width = "1" height = "1" /&gt;</description></item><item><dc:creator>gaoqing000</dc:creator><title>re: 简单查看unicode编码对应的字符</title><link>http://blog.vckbase.com/eyesonyhm/archive/2008/05/14/33602.html#33625</link><pubDate>Wed, 14 May 2008 11:01:00 GMT</pubDate><guid>http://blog.vckbase.com/eyesonyhm/archive/2008/05/14/33602.html#33625</guid><description>在哪里进行&lt;br&gt;哪个工具，记事本中不行啊&lt;img src ="http://blog.vckbase.com/eyesonyhm/aggbug/33625.html" width = "1" height = "1" /&gt;</description></item><item><dc:creator>gaoqing000</dc:creator><title>re: 请仔细权衡内存对齐</title><link>http://blog.vckbase.com/eyesonyhm/archive/2008/05/14/33555.html#33623</link><pubDate>Wed, 14 May 2008 10:58:00 GMT</pubDate><guid>http://blog.vckbase.com/eyesonyhm/archive/2008/05/14/33555.html#33623</guid><description>编译了一下&lt;br&gt;全是错，在vc6下试的&lt;br&gt;inline   unsigned   __int64   GetCycleCount(void)   &lt;br&gt;{   &lt;br&gt;      _asm         _emit   0x0F   &lt;br&gt;      _asm         _emit   0x31   &lt;br&gt;}&lt;br&gt;&lt;br&gt;int _tmain(int argc, _TCHAR* argv[])&lt;br&gt;{&lt;br&gt; long long l = 3000000000000;&lt;br&gt;&lt;br&gt; unsigned   __int64 begin = GetCycleCount();&lt;br&gt; &lt;br&gt; for(long long i = 1000000000; i &amp;gt; 0; i--)&lt;br&gt; {&lt;br&gt;  // Empty the cache in CPU.&lt;br&gt;  l--;&lt;br&gt;  // Access the memory as the address can not be divided by 4&lt;br&gt;  __asm&lt;br&gt;  {&lt;br&gt;   &lt;br&gt;   mov ecx,dword ptr [l+1]&lt;br&gt;  }&lt;br&gt; }&lt;br&gt; &lt;br&gt; unsigned   __int64 end = GetCycleCount();&lt;br&gt; printf(&amp;quot;The elapse time is:%I64d\n&amp;quot;, end - begin);&lt;br&gt; return 0;&lt;br&gt;}&lt;br&gt;&lt;br&gt;&lt;img src ="http://blog.vckbase.com/eyesonyhm/aggbug/33623.html" width = "1" height = "1" /&gt;</description></item><item><dc:creator>gaoqing000</dc:creator><title>re: 请仔细权衡内存对齐</title><link>http://blog.vckbase.com/eyesonyhm/archive/2008/05/14/33555.html#33624</link><pubDate>Wed, 14 May 2008 10:58:00 GMT</pubDate><guid>http://blog.vckbase.com/eyesonyhm/archive/2008/05/14/33555.html#33624</guid><description>Compiling...&lt;br&gt;ss.cpp&lt;br&gt;d:\mytestprogram\p56\ss.cpp(5) : warning C4035: 'GetCycleCount' : no return value&lt;br&gt;d:\mytestprogram\p56\ss.cpp(7) : error C2061: syntax error : identifier '_TCHAR'&lt;br&gt;d:\mytestprogram\p56\ss.cpp(9) : error C2632: 'long' followed by 'long' is illegal&lt;br&gt;d:\mytestprogram\p56\ss.cpp(9) : warning C4305: 'initializing' : truncation from 'const __int64' to 'long'&lt;br&gt;d:\mytestprogram\p56\ss.cpp(9) : warning C4309: 'initializing' : truncation of constant value&lt;br&gt;d:\mytestprogram\p56\ss.cpp(13) : error C2632: 'long' followed by 'long' is illegal&lt;br&gt;d:\mytestprogram\p56\ss.cpp(26) : error C2065: 'printf' : undeclared identifier&lt;img src ="http://blog.vckbase.com/eyesonyhm/aggbug/33624.html" width = "1" height = "1" /&gt;</description></item></channel></rss>