C++ How to Program (7th Edition)
This book presents leading-edge computing technologies for students, instructors and software development professionals. At the heart of the book is the Deitel signarure “live-code approach.” Concepts are presented in the context of complete working C++ programs, rather than in code snippets. Each code example is immediately followed by one or more san1ple executions. All the source code is available atwww.deitel.com/books/cpphtp7/.
New and Updated Features
Here are the updates we’ve made for C++ How to Program, 7/e.
• “Making a Difference” Exercise Sets. We encourage you to use computers and the Internet to research and solve problems that really matter. These new exercises are meant to increase awareness of important issues the world is fucing. We hope you’ll approach them with your own values, politics and beliefs. e Prefer string Objects to C Stri11gs. C++ offers two types of strings–stri ng class objects (which we use starting in Chapter 3) and C-style, pointer-based strings. We continue to include some early discussions ofC strings to give you practice with pointer manipulations, to illustrate dynan1ic memory allocation with new and de 1 ete and to prepare you for working with C strings in the “legacy code” that you’ll encounter in industry. In new development, you should favor string class objects. \Xle’ve replaced most occurrences of C strings with instances of C++ class string to make programs more robust and eliminate many of the security problems that can be caused by manipulating C strings.
• Prefer vectors to C A1rays. Similarly, C++ offers two types of arrays–vector class objects (which we use starting in Chapter 7) and C-scyle, pointer-based arrays. As appropriate, we use class template vector instead of C arrays throughout the book. However, we begin by discussing C arrays in Chapter 7 to prepare you for working with legacy code and to use as a basis for building your own customized Array class in Chapter 11, Operator Overloading.
• New Companion Website (……,,pearsonh1ghered. com/de1te1/}. This edition’s Companion Website includes a wealth of material to help you with your study of C++ programming. We provide an extensive number of VideoNotes thar walk you through the code examples in 14 of the key chapters, solutions to many of the book’s exercises, bonus chapters, and more (see the Companion \Xlebsite section later in this Preface).
• Dy11amic Me,mrry All,ocatio11. We moved dynamic memory allocation later in the book to Chapter 11, where it’s first needed. The “proxy class” discussion (which llSes dynamic memory) has also been moved to Chapter 11.
• Titled Programming Exercises. We’ve tided all the programming exercises. This and the previous rwo features help instructors tune assignmen£S for their classes.
• Elimfuued “Magic” M,mbers. We eliminated all uses of truly “magic’ numbers r and replaced them with named constants or enums as appropriate. In a few cases in which the context is absolutely clear, we don’t consider numbers to be “magic.”
• Enha11ced Use of const. \Ve increased our use of con st bookwide to encourage better software engineering.
• Elimi11ated “return O;”. According to tl1e C++ standard, any main function tl1at does not contain “return O;” as its last statement is assllmed to return 0. For this reason, we’ve eliminated “return O;” from all but tl1e first progran1 in the book.
• Use “using namespace std;”. Previollsly, we specified a using declaration for every individllal item that we referenced from a C++ Standard Library header file. Since these items are well known and unlikely to have nan1e collisions witl1 other C++ libraries, we now use “using namespace std;” for all C++ Standard Library components from Chapter 3 forward. This simplifies the progran1s and saves many lines of code.
• New Desig11. The book has a new interior design that graphically serves to organize, clarify and highlight the information, and enhances the book’s pedagogy.
• Reorga11ized Optio11al OOD Case St11dy. \Ve tuned tl1e Object-Oriented Design/UML automated telJer machine (ATM) case study and reorganized it into rwo optional chapters (25 and 26) d1at present tl1e A TM’ s design and complete code implementation. This is a nice business example d1at most students can relate to. Working through these rwo chapters as a unit will help you tie togetl1er many of the object-oriented progran1ming (OOP) concepts you learn in Chapters 1-13. A key concept in OOP is the interactions among objects. In most textbooks, the code examples create and use only one or rwo objects. The ATM case study gives you the opportunity to examine the interactions among many objects that provide the functionality of a substantial system. For instructors who wish to cover the case study in a distributed manner, we’ve indicated where eacl1 section in Chapters 25 and 26 can be covered inline with earlier clupters in tl1e book.
• F1111ctio11 Pointer Exercises. \Ve added several real-world function-pointers exercises. These are available at the Companion Website and atwww.deitel.com/ books/cpphtp7 /.
• Improved Termi11ology Sections. \Y/e’ve added page numbers for the defining occurrences of all terms in the terminology lists for easy reference.
|Download Ebook||Read Now||File Type||Upload Date|
||Read Now||January 11, 2017|
Do you like this book? Please share with your friends, let's read it !! :)How to Read and Open File Type for PC ?