C++ Primer Plus, Sixth Edition New C++11 Coverage C++ Primer Plus is a carefully crafted, complete tutorial on one of the most significant and widely used programming languages today. An accessible and easy-to-use self-study guide, this book is appropriate for both serious students of programming as well as developers already proficient in other languages. The sixth edition of...
C++ Primer Plus, Sixth Edition New C++11 Coverage C++ Primer Plus is a carefully crafted, complete tutorial on one of the most significant and widely used programming languages today. An accessible and easy-to-use self-study guide, this book is appropriate for both serious students of programming as well as developers already proficient in other languages. The sixth edition of C++ Primer Plus has been updated and expanded to cover the latest developments in C++, including a detailed look at the new C++11 standard. Author and educator Stephen Prata has created an introduction to C++ that is instructive, clear, and insightful. Fundamental programming concepts are explained along with details of the C++ language. Many short, practical examples illustrate just one or two concepts at a time, encouraging readers to master new topics by immediately putting them to use. Review questions and programming exercises at the end of each chapter help readers zero in on the most critical information and digest the most difficult concepts. In C++ Primer Plus, you'll find depth, breadth, and a variety of teaching techniques and tools to enhance your learning: * A new detailed chapter on the changes and additional capabilities introduced in the C++11 standard * Complete, integrated discussion of both basic C language and additional C++ features* Clear guidance about when and why to use a feature* Hands-on learning with concise and simple examples that develop your understanding a concept or two at a time* Hundreds of practical sample programs* Review questions and programming exercises at the end of each chapter to test your understanding* Coverage of generic C++ gives you the greatest possible flexibility* Teaches the ISO standard, including discussions of templates, the Standard Template Library, the string class, exceptions, RTTI, and namespacesTable of Contents 1: Getting Started with C++ 2: Setting Out to C++ 3: Dealing with Data 4: Compound Types 5: Loops and Relational Expressions 6: Branching Statements and Logical Operators 7: Functions: C++'s Programming Modules 8: Adventures in Functions 9: Memory Models and Namespaces 10: Objects and Classes 11: Working with Classes 12: Classes and Dynamic Memory Allocation 13: Class Inheritance 14: Reusing Code in C++ 15: Friends, Exceptions, and More 16: The string Class and the Standard Template Library 17: Input, Output, and Files 18: The New C++11 Standard A Number Bases B C++ Reserved Words C The ASCII Character Set D Operator Precedence E Other Operators F The stringTemplate Class G The Standard Template Library Methods and Functions H Selected Readings and Internet Resources I Converting to ISO Standard C++ J Answers to Chapter Reviews
作者简介
· · · · · ·
Stephen Prata在美国加州肯特菲尔得的马林学院教授天文、物理和计算机科学。他毕业于加州理工学院,在美国加州大学伯克利分校获得博士学位。他单独或与他人合作编写的编程图书有十多本,其中《New C Primer Plus》获得了计算机出版联合会1990年度最佳“How-to”计算机图书奖,《C++ Primer Plus》获得了计算机出版联合会1991年度最佳“How-to”计算机图书奖提名。
Amazon 上第五版有位教授C++的建议阅读顺序是: C++ Primer Plus C++ Primer Thinking in C++ (great book, free on the internet) The C++ Programming Language (by Stroustrup) 第一本我现在看完了7章,在这之前看了大版本C++ How to Program 5/e 相比之下,这本写的要清楚...
(展开)
很久之前,在网上看到有人推荐C++书籍的时候,有一位说,推荐C++ Primer,注意不是C++ Primer Plus,完全是两本不同的书。后来也零零星星地听到过一些关于这本C++ Primer Plus的评价,大致都是说这本书不行,请去看C++ Primer或者Accelerate C++之类的。 前些日子偶然看到,这...
(展开)
int * pt; pt = 0xB8000000; C prior to C99 lets you make assignments like this. 事实上,C99中还可以这么做 C99 6.3.2.3.5 An integer may be converted to any pointer type. Except as previously specified, the result is implementation-defined
2013-06-07 23:19
int * pt;
pt = 0xB8000000;
C prior to C99 lets you make assignments like this. 引自 Pointers and Numbers
事实上,C99中还可以这么做
C99 6.3.2.3.5
An integer may be converted to any pointer type. Except as previously specified, the result is implementation-defined引自 Pointers and Numbers
Next, to find the lower limit, you find the smallest enumerator value. If it is 0 or greater, the lower limit for the range is 0. If the smallest enumerator is negative, you use the same approach as for finding the upper limit but toss in a minus sign. (For example, if the smallest enumerator is -6, the next power of two [times a minus sign] is -8, and the lower limit is -7.) 这里的说法错了,范...
2013-06-07 22:51
Next, to find the lower limit, you find the smallest enumerator value. If it is 0 or greater, the lower limit for the range is 0. If the smallest enumerator is negative, you use the same approach as for finding the upper limit but toss in a minus sign. (For example, if the smallest enumerator is -6, the next power of two [times a minus sign] is -8, and the lower limit is -7.)引自 Value Ranges for Enumerations
Thus C++ is a superset of C, meaning that any valid C program is a valid C++ program, too.There are some minor discrepancies but nothing crucial. C++不是C的超集,虽然在大体上是兼容C的。几个显而易见的例子 int grade, class; // 完全合法的C代码,但是用C++编译器没法编译,class在C++中是关键字 sizeof('A'); // 按作C++代码编译,值为1;按作C代码编译,值肯定大于1 — character literal 在C中是int 型,违反直...
2013-06-03 17:15
Thus C++ is a superset of C, meaning that any valid C program is a valid C++ program, too.There are some minor discrepancies but nothing crucial. 引自 The Genesis of C++
C++不是C的超集,虽然在大体上是兼容C的。几个显而易见的例子
int grade, class; // 完全合法的C代码,但是用C++编译器没法编译,class在C++中是关键字
sizeof('A'); // 按作C++代码编译,值为1;按作C代码编译,值肯定大于1 — character literal 在C中是int 型,违反直觉?是的。
int *p = malloc(10 * sizeof(int)); //在C中合法,在C++中则通不过编译 — C++不允许void*到int *的隐式转换。
int * pt; pt = 0xB8000000; C prior to C99 lets you make assignments like this. 事实上,C99中还可以这么做 C99 6.3.2.3.5 An integer may be converted to any pointer type. Except as previously specified, the result is implementation-defined
2013-06-07 23:19
int * pt;
pt = 0xB8000000;
C prior to C99 lets you make assignments like this. 引自 Pointers and Numbers
事实上,C99中还可以这么做
C99 6.3.2.3.5
An integer may be converted to any pointer type. Except as previously specified, the result is implementation-defined引自 Pointers and Numbers
Next, to find the lower limit, you find the smallest enumerator value. If it is 0 or greater, the lower limit for the range is 0. If the smallest enumerator is negative, you use the same approach as for finding the upper limit but toss in a minus sign. (For example, if the smallest enumerator is -6, the next power of two [times a minus sign] is -8, and the lower limit is -7.) 这里的说法错了,范...
2013-06-07 22:51
Next, to find the lower limit, you find the smallest enumerator value. If it is 0 or greater, the lower limit for the range is 0. If the smallest enumerator is negative, you use the same approach as for finding the upper limit but toss in a minus sign. (For example, if the smallest enumerator is -6, the next power of two [times a minus sign] is -8, and the lower limit is -7.)引自 Value Ranges for Enumerations
Or you can select an array size after the program is running.This is called dynamic binding, meaning that the array is created while the program is running. 这个说法非常古怪,因为在C++中,dynamic binding一般指的是virtual method在运行时的解析。例如在Wikipedia上的说法: Late binding, or dynamic binding,[1] is a computer programming mechanism in which the method being called upon an object is look...
2013-06-07 17:01
Or you can select an array size after the program is running.This is called dynamic binding, meaning that the array is created while the program is running. 引自 Using new to Create Dynamic Arrays
Late binding, or dynamic binding,[1] is a computer programming mechanism in which the method being called upon an object is looked up by name at runtime.
n C++, late binding (also called "dynamic binding") is normally made happen by prepending the virtual keyword to a method. 引自 Using new to Create Dynamic Arrays
0 有用 [已注销] 2019-11-23
不太适合想要快速上手的初学者吧。。。适合当个reference
0 有用 璇璇璇 2018-06-28
完整读完了英文版上下册,除了一些章节后面的习题没有做,别的基本都看了。理论结合实践,会有更好的效果。感觉很好,以后也要经常回顾,适合入门。学习这个之后还应当系统地学习stl,多实践。
0 有用 红色最高通缉 2019-07-08
和中文版一起看的,发现原版也有不少错误。不过对于没有编程经验的小白而言是很好的C++入门读物。没错,我就是小白😀
0 有用 豆瓣用户141043 2013-08-12
比较适合初学者吧,但是初学者不能止步于此就是了
0 有用 崔崔崔~ 2019-11-13
适合没编程基础的同学入门C++。 作者的讲解很详细易懂,看完收获不会小的。
0 有用 [已注销] 2019-11-23
不太适合想要快速上手的初学者吧。。。适合当个reference
0 有用 崔崔崔~ 2019-11-13
适合没编程基础的同学入门C++。 作者的讲解很详细易懂,看完收获不会小的。
0 有用 goodman 2019-08-30
ok
0 有用 红色最高通缉 2019-07-08
和中文版一起看的,发现原版也有不少错误。不过对于没有编程经验的小白而言是很好的C++入门读物。没错,我就是小白😀
1 有用 cosy 2019-03-22
对不起,我是智障,后面完全看不懂。