C++ For Java Programmers
Pearson (Verlag)
978-0-201-61246-2 (ISBN)
- Titel ist leider vergriffen;
keine Neuauflage - Artikel merken
This book provides students with an introduction to C++ that enlists their Java programming skills to get them comfortably programming in C++. It is an appropriate supplement for any upper-level course in which students are required to program in C++, or for anyone with experience in Java who is interested in an introduction to C++. The text starts off by teaching how to perform tasks in C++ that are inherent in Java, such as pointers and memory management. It then builds upon their Java experience to teach language features like class definitions and polymorphism, which are slightly different in C++. Finally, aspects of C++ that have no correlation in Java — as well as those aspects of Java not found in C++ — are presented.
Timothy A. Budd is an Associate Professor of Computer Science at Oregon State University. Budd received his Bachelor of Arts degree in Mathematics and Computer Science from Western Washington University, and his masters and doctorate degrees in computer science from Yale University. His research interests include multi-paradigm programming languages, programming environments, compiler implementation and optimization techniques. 0201612461AB04062001
1. Basic Philosophical Differences.
The Language C.
The Development of C++.
The Legacy Problem.
The Language Java.
The Better Language.
Further Reading.
2. Fundamental Data Types.
Integers.
Floating Point Values.
Enumerated Values.
The Void Type.
Arrays.
Structures and Unions.
Object Values.
Functions.
3. Pointers and References.
Java Pointers.
Pointers on Pointers.
The Address-of Operator.
Pointers to Simple Values.
Pointers to Structures.
Pointers to Arrays.
References.
4. Memory Management.
The Memory Model.
Stack-Resident Memory Values.
Heap-Resident Memory Values.
5. Class Definition.
Obvious Similarities and Minor Differences.
Separation of Class and Implementation.
Forward References.
Constructors and Initialization.
The Orthodox Canonical Class Form.
Visibility Modifiers.
Inner Classes versus Nested Classes.
Static Initialization.
Final Classes.
6. Polymorphism.
Virtual and Nonvirtual Overriding.
Abstract Classes.
Downcasting (Reverse Polymorphism).
Name Resolution.
A Forest, Not a Tree.
Virtual Destructors.
Private Inheritance.
Inheritance and Arrays.
Overloading.
7. Operator Overloading.
Overloaded Functions or Methods.
The Simple Binary Operators.
The Comparison Operators.
The Increment and Decrement Operators.
The Shift Operators.
The Assignment Operator.
The Compound Assignment Operators.
The Subscript Operator.
The Parenthesis Operator.
The Address-of Operator.
The Logical Connectives.
The Comma Operator.
The Arrow Operator.
Pointers to Members and Pointers to Member Functions.
Conversion Operators.
Memory Management Operators.
Disallowing Operations.
Implicit Functions and Invocations.
8. Characters and Strings.
Characters and Literals Strings.
Constant and Mutable Values.
The String Data Type.
Example Program—Split a Line into Words.
9. Templates and Containers.
Template Classes.
Template Functions.
The Standard Template Library.
10. Input/Output.
The stdio Library.
The Stream I/O Facility.
An Example Program.
11. Exception Handling.
Flags and Return Codes.
The Assertion Library.
The setjmp and longjmp Facility.
Signals.
Exception Handling.
12. Features Found Only In C++.
Global Variables.
The Preprocessor.
typedef Statement.
The const Keyword.
Default Arguments.
Friends.
Name Spaces.
Multiple Inheritance.
goto Statement.
13. Features Found Only in Java.
Wrapper Classes.
Interfaces.
Inline Classes.
Threads.
Reflection.
14. Case Study: Fractions.
Classes.
Constructors.
Behavior.
Input and Output Streams.
15. Case Study: Containers.
Shortest Path Problem Graph.
A Concordance.
16. Case Study: A Card Game.
The Class Card.
Data and View Classes.
The Game.
Card Piles—Inheritance in Action.
Playing the Polymorphic Game.
The Graphical User Interface.
17. Case Study: Combining Separate Classes.
Appendix: Include Files.
Input and Output.
Diagnostics.
Strings.
STL Containers.
STL Utility Routines.
Numeric Support.
Run-Time Support.
Miscellaneous.
Erscheint lt. Verlag | 7.5.1999 |
---|---|
Sprache | englisch |
Maße | 190 x 230 mm |
Gewicht | 530 g |
Themenwelt | Informatik ► Programmiersprachen / -werkzeuge ► Java |
Mathematik / Informatik ► Informatik ► Web / Internet | |
ISBN-10 | 0-201-61246-1 / 0201612461 |
ISBN-13 | 978-0-201-61246-2 / 9780201612462 |
Zustand | Neuware |
Haben Sie eine Frage zum Produkt? |
aus dem Bereich