C++ Primer Plus (第五版)中文版 勘误表 您所在的位置:网站首页 cprimerplus第5版中文版 C++ Primer Plus (第五版)中文版 勘误表

C++ Primer Plus (第五版)中文版 勘误表

2023-08-20 10:00| 来源: 网络整理| 查看: 265

最的第六版出来了,听说和五版相同,只是多了一章C++11的内容,于是于,我还是学五版吧。

同样五版有错误,引用这个勘误表:http://blog.csdn.net/woxing615701/article/details/3888576

C++ Primer Plus (第五版)中文版 勘误表 (不断更新)这是我在读《c++ Primer Plus》中发现的明显的错误

中文版第4页倒数第18行 错误程度:*** “http://www.research.att.com/-bs/” 网页错了,应该是“http://www.research.att.com/~bs/”也不说什么了。

中文版第9页 21行 (好像是OCR 才能犯的错误) 错误程度:** “某个源代码文件,如mu.cxx,则可使用my.cxx 和precious.o 来重新编译” 其中“mu.cxx” 应改为 “my.cxx” 英文版原文为 If you subsequently modify just one of the source code files, say my.cxx, you can recompile using my.cxx and the precious.o:

中文版第13页第12行(量词错误,看上去就像不懂程序设计的人翻译的)错误程度:* “这样老式的,则要么换一台新的编译器” 其中 编译器是一个程序,应该按照中文版第8页的所使用的量词 “换一个新的编译器”这样比较合适。

中文版第26页,27页插图中 错误程度:** 调用函数的代码都打成了“S = sqrt(6+25)”, 但根据前后文,应该为6.25 不过这个错误英文版中也犯了。

中文版第41页,到数第14行 错误程度:** “也就是说,预处理器不会将PINT_MAXTM 替换为 P32767IM。” 其中 “PINT_MAXTM”应改为 PINT_MAXIM 可能是译者看错了吧。 英文版原文为 That is, the preprocessor doesn't replace PINT_MAXIM with P32767IM.

中文版第47页第18行 错误程度:**** “最后,程序使用cout.put()函数来显示c和a字符常量。” 这里犯了一个非常低级,非常严重的错误。 先看一下英文版原文 Finally, the program uses the cout.put() function to display both c and a character constant. 正确的译法为 最后,程序使用cout.put()函数来显示ch和一个字符常量。 因为在英文版中 程序清单3.6(morechar.cpp) 是这样的 // morechar.cpp -- the char type and int type contrasted #include using namespace std; int main() {     char c = 'M';       // assign ASCII code for M to c     int i = c;          // store same code in an int     cout



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有