PRACTICAL, EXAMPLE-RICH COVERAGE OF:
Le informazioni nella sezione "Riassunto" possono far riferimento a edizioni diverse di questo titolo.
Paul J. Deitel and Dr. Harvey M. Deitel are the founders of Deitel & Associates, Inc., the internationally recognized programming languages authoring, corporate-training and Internet business development organization. The Deitels have written many international best-selling programming-language professional books and textbooks that millions of people worldwide have used to master C++, C, Java™, C#, Visual Basic®, Visual C++® XML, Perl, Python, and Internet and web programming.Excerpt. © Reprinted by permission. All rights reserved.:
“The chief merit of language is clearness ...”
Welcome to C++ for Programmers! At Deitel & Associates, we write programming language professional books and textbooks for publication by Prentice Hall, deliver programming languages corporate training courses at organizations worldwide and develop Internet businesses. This book is intended for programmers who do not yet know C++, and may or may not know object-oriented programming.
Features of C++ for Programmers
The Tour of the Book section of this Preface will give you a sense of C++ for Programmers’ coverage of C++ and object-oriented programming. Here’s some key features of the book:
All of this was carefully reviewed by distinguished industry developers and academics. We believe that this book will provide you with an informative, interesting, challenging and entertaining C++ educational experience.
As you read this book, if you have questions, send an e-mail to firstname.lastname@example.org; we’ll respond promptly. For updates on this book and the status of all supporting C++ software, and for the latest news on all Deitel publications and services, visit http://www.deitel.com. Sign up at http://www.deitel.com/newsletter/subscribe.html for the free Deitel¨ Buzz Online e-mail newsletter and check out our growing list of C++ and related Resource Centers at http://www.deitel.com/ResourceCenters.html. Each week we announce our latest Resource Centers in the newsletter.
C++ for Programmers contains a rich collection of examples. The book concentrates on the principles of good software engineering and stresses program clarity. We teach by example. We are educators who teach programming languages in industry classrooms worldwide. The Deitels have taught courses at all levels to government, industry, military and academic clients of Deitel & Associates.
Live-Code Approach. C++ for Programmers is loaded with “live-code” examples—by this we mean that each new concept is presented in the context of a complete working C++ application that is immediately followed by one or more actual executions showing the program’s inputs and outputs.
Syntax Shading. We syntax-shade all the C++ code, similar to the way most C++ integrated development environments (IDEs) and code editors syntax-color code. This greatly improves code readability—an especially important goal, given that this book contains over 15,500 lines of code. Our syntax-shading conventions are as follows:comments appear in italic keywords appear in bold italic errors and ASP.NET script delimiters appear in bold black constants and literal values appear in bold gray all other code appears in plain black
Code Highlighting. We place white rectangles around the key code segments in each program.
Using Fonts for Emphasis. We place the key terms and the index’s page reference for each defining occurrence in bold italic text for easier reference. We emphasize on-screen components in the bold Helvetica font (e.g., the File menu) and emphasize C++ program text in the Lucida font (e.g., int x = 5).
Web Access. All of the source-code examples for C++ for Programmers are available for download from http://www.deitel.com/books/cppfp/.
Objectives. Each chapter begins with a statement of objectives. This lets you know what to expect and gives you an opportunity, after reading the chapter, to determine if you’ve met the objectives.
Quotations. The learning objectives are followed by quotations. Some are humorous; some are philosophical; others offer interesting insights. We hope that you enjoy relating the quotations to the chapter material.
Outline. The chapter outlines help you approach the material in a top-down fashion, so you can anticipate what is to come and set a comfortable and effective learning pace.
Illustrations/Figures. Abundant charts, tables, line drawings, programs and program output are included. We model the flow of control in control statements with UML activity diagrams. UML class diagrams model the fields, constructors and methods of classes. We make extensive use of six major UML diagram types in the optional OOD/UML 2 ATM case study.
Programming Tips. We include programming tips to help you focus on important aspects of program development. These tips and practices represent the best we’ve gleaned from a combined seven decades of programming experience—they provide a basis on which to build good software.
Good Programming Practice - Good Programming Practices call attention to techniques that will help you produce programs that are clearer, more understandable and more maintainable.
Common Programming Error - Pointing out these Common Programming Errors reduces the likelihood that you’ll make the same mistakes.
Error-Prevention Tip - These tips contain suggestions for exposing bugs and removing them from your programs; many describe aspects of C++ that prevent bugs from getting into programs in the first place.
Performance Tip - These tips highlight opportunities for making your programs run faster or minimizing the amount of memory that they occupy.
Portability Tip - We include Portability Tips to help you write code that will run on a variety of platforms and to explain how C++ achieves its high degree of portability.
Software Engineering Observation - The Software Engineering Observations highlight architectural and design issues that affect the construction of software systems, especially large-scale systems.
Wrap-Up Section. Each of the chapters ends with a brief “wrap-up” section that recaps the chapter content and transitions to the next chapter.
Thousands of Index Entries. We’ve included an extensive index which is especially useful when you use the book as a reference.
“Double Indexing” of C++ Live-Code Examples. For every source-code program in the book, we index the figure caption both alphabetically and as a subindex item under “Examples.” This makes it easier to find examples using particular features.
Tour of the Book
You’ll now take a tour of the C++ capabilities you’ll study in C++ for Programmers. Figure 1 illustrates the dependencies among the chapters. We recommend studying the topics in the order indicated by the arrows, though other orders are possible.
Chapter 1, Introduction, discusses the origin of the C++ programming language, and introduces a typical C++ programming environment. We walk through a “test drive” of a typical C++ application on the Windows and Linux platforms. We also introduce basic object technology concepts and terminology, and the Unified Modeling Language.
Chapter 2, Introduction to C++ Programming, provides a lightweight introduction to programming applications in C++. The programs in this chapter illustrate how to display data on the screen, obtain data from the keyboard, make decisions and perform arithmetic operations.
Chapter 3, Introduction to Classes and Objects, provides a friendly early introduction to classes and objects. We introduce classes, objects, member functions, constructors and data members using a series of simple real-world examples. We develop a well-engineered framework for organizing object-oriented programs in C++. We motivate the notion of classes with a simple example. Then we present a carefully paced sequence of seven complete working programs to demonstrate creating and using your own classes. These examples begin our integrated case study on developing a grade-book class that an instructor can use to maintain student test scores. This case study is enhanced over the next several chapters, culminating with the version presented in Chapter 7. The GradeBook class case study describes how to define a class and how to use it to create an object. The case study discusses how to declare and define member functions to implement the class’s behaviors, how to declare data members to implement the class’s attributes and how to call an object’s member functions to make them perform their tasks. We introduce C++ Standard Library class string and create string objects to store the name of the course that a GradeBook object represents. We explain the differences between data members of a class and local variables of a function, and how to use a constructor to ensure that an object’s data is initialized when the object is created. We show how to promote software reusability by separating a class definition from the client code (e.g., function main) that uses the class. We also introduce another fundamental principle of good software engineering—separating interface from implementation.
Fig. 1 C++ for Programmers chapter dependency chart.
Chapter 4, Control Statements: Part 1, focuses on the program-development process involved in creating useful classes. The chapter introduces some cont...
Le informazioni nella sezione "Su questo libro" possono far riferimento a edizioni diverse di questo titolo.
Descrizione libro Prentice Hall. Condizione libro: New. Brand New. Codice libro della libreria 0137001304
Descrizione libro Prentice Hall, 2009. Paperback. Condizione libro: New. Never used!. Codice libro della libreria P110137001304
Descrizione libro Prentice Hall, 2009. Condizione libro: New. Brand new! Please provide a physical shipping address. Codice libro della libreria 9780137001309
Descrizione libro Prentice Hall Ptr, 2009. Paperback. Condizione libro: Brand New. 1st edition. 1000 pages. 9.00x7.00x2.00 inches. In Stock. Codice libro della libreria zk0137001304