- Shopping Bag ( 0 items )
Your Fast-Paced Guide to C++ Success!
No one teaches C++ better than Herb Schildt. That's why his books are the choice of millions worldwide. Now you, too, can quickly master C++ using his proven method. In this fully updated new edition, Herb explains the C++ language, from its fundamentals to its most advanced features. You'll start with an overview of C++ and the general form of a C++ program. You'll then learn essentials such as control statements, operators, variables, ...
Your Fast-Paced Guide to C++ Success!
No one teaches C++ better than Herb Schildt. That's why his books are the choice of millions worldwide. Now you, too, can quickly master C++ using his proven method. In this fully updated new edition, Herb explains the C++ language, from its fundamentals to its most advanced features. You'll start with an overview of C++ and the general form of a C++ program. You'll then learn essentials such as control statements, operators, variables, classes, and objects. Then it's on to exceptions, templates, namespaces, run-time type ID, and the Standard Template Library (STL). There is even a synopsis of the extended keywords used for .NET programming--all presented in Herb's clear, crisp, uncompromising style.
You will learn about:
This guide teaches programming in C++ to those who have no C background. Readers will learn the fundamentals of the C++ programming language, along with function basics, class fundamentals, virtual functions, the C++ I/O system, and more. The book features a plethora of screens and charts that enhance the clear instructions, practical examples, and valuable tips.
All object-oriented programming languages have three things in common: encapsulation, polymorphism, and inheritance. Although we will examine these concepts in detail later in this book, let's take a brief look at them now.
Within an object, the code, data, or both may be private to that object or public. Private code or data is known to, and accessible only by, another part of the object. That is, private code or data may not be accessed by a piece of the program that exists outside the object. When code or data is public, other parts of your program may access it even though it is defined within an object. Typically, the public parts of an object are used to provide a controlled interface to the private elements of the object.
More generally, the concept of polymorphism is often expressed by the phrase "one interface, multiple methods." This means that it is possible to design a generic interface to a group of related activities. Polymorphism helps reduce complexity by allowing the same interface to be used to specify a general class of action. It is the compiler's job to select the speciflc action (i.e., method) as it applies to each situation. You, the programmer, don't need to do this selection manually. You need only remember and utilize the general interface.
The first object-oriented programming languages were interpreters, so polymorphism was, of course, supported at run time. However, C++ is a compiled language. Therefore, in C++, both run-time and compile-time polymorphism are supported.
If you are using a PC, then you have several C++ compilers from which to choose. just make sure that you use an up-to-date C++ compiler. The code in this book complies with Standard C++ and has been tested with Microsoft C++. It should work with virtually any contemporary C++ compiler. It is best, however, if you can use a compiler that accepts the version of C++ specified by the ANSI/ISO standards committee (i.e., Standard C++).
Now that you know the story behind C++, it is time to start learning how to use it. The next chapter introduces you to the C++ fundamentals...
|1||The Story of C++||1|
|2||An Overview of C++||11|
|3||The Basic Data Types||33|
|4||Program Control Statements||57|
|5||Arrays and Strings||81|
|7||Functions, Part One: The Fundamentals||127|
|8||Functions, Part Two: References, Overloading, and Default Arguments||157|
|9||More Data Types and Operators||181|
|10||Structures and Unions||215|
|11||Introducing the Class||245|
|12||A Closer Look at Classes||273|
|15||Virtual Functions and Polymorphism||357|
|18||The C++ I/O System||417|
|19||Run-Time Type ID and the Casting Operators||451|
|20||Namespaces and Other Advanced Topics||471|
|21||Introducing the Standard Template Library||499|
|22||The C++ Preprocessor||547|
|B||Working with an Older C++ Compiler||581|
|C||The .NET Managed Extensions to C++||585|