C[++] for Pascal programmers

Author(s)
Bibliographic Information

C[++] for Pascal programmers

Ira Pohl

Benjamin Cummings Pub. Co., c1995

2nd ed

Search this Book/Journal
Note

Includes index

Description and Table of Contents

Description

This unique book is designed to train Pascal programmers to think and develop programs in C++. The first three chapters lay a foundation for C++ by demonstrating basic C concepts and showing how elements of Pascal are translated to C. Each succeeding chapter offers new C++ concepts, which are amply illustrated with examples of working code. This edition adheres to the ANSI C++ standard and includes two chapters on its new features, templates, and exception handling. Object-oriented programming methodologies, which are integrated throughout, demonstrate the power and elegance of C++ as a programming paradigm.

Table of Contents

(Most chapters contain "Summary" and "Exercises".) An Overview Of C++ And Object-Oriented Programming. Object-Oriented Programming. Why C++ Is A Better C. Why Switch To C++? Pascal As A Starting Point. Classes And Abstract Data Types. Overloading. Constructors And Destructors. Inheritance. Polymorphism. Templates. C++ Exceptions. Benefits Of Object-Oriented Programming. References. Native Types And Statements. Program Elements. Input/Output. Program Structure. Simple Types. The Traditional Conversions. Enumeration Types. Expressions. Statements. Summary. Exercises. Functions And Pointers. Functions. Function Definition. The Return Statement. Function Prototypes. Default Arguments. Overloading Functions. Inlining. Scope And Storage Class. Pointer Types. Reference Declarations And Call-By-Reference. The Uses Of Void. Arrays And Pointers. The Relationship Between Arrays And Pointers. Passing Arrays To Functions. Strings: A Kernel Language Adt. Multidimensional Arrays. Free Store Operators New And Delete. Summary. Exercises. Classes. He Aggregate Type: Struct. Structure Pointer Operator. A Linked List. An Example: Stack. Unions. Bit Fields. Member Functions. Visibility Private And Public. Classes. Static Member. Class Scope. An Example: Flushing. Key Differences Between C++ And Pascal. Pragmatics. Turbo Pascal Equivalence. Summary. Exercises. Constructors And Destructors. Classes With Constructors. Constructing A Dynamically Sized Stack. Classes With Destructors . The This Pointer. Static And Const Member Functions. An Example: Dynamically Allocated Strings. A Class Vect. Members That Are Class Types. An Example: A Singly Linked List. Two-Dimensional Arrays. Strings Using References Semantics. No Constructor, Copy Constructor, And Other Mysteries. Pragmatics. Turbo Pascal Equivalence. Summary. Exercises. Operator Overloading And Conversions. The Traditional Conversions. Adt Conversions. Overloading And Function Selection. Friend Functions. Overloading Operators. Unary Operator Overloading. Binary Operator Overloading. Overloading Assignment And Subscripting Operators. Signature Matching. Pragmatics. Summary. Exercises. Inheritance. A Derived Class. Typing Conversions And Visibility. Code Reuse: Dynamic Array Bounds. Code Reuse: A Binary Tree Class. Virtual Functions. Abstract Base Classes. Multiple Inheritance. Detailed C++ Considerations. Pragmatics. Turbo Pascal Equivalence. Summary. Exercises. Templates. Template Class Stack. Function Templates. Class Templates. Parameterizing The Class Vect. Paramaterized Binary Search Tree. Inheritance. Pragmatics. Summary. Exercises. Exceptions. Using Assert.H. C++ Exceptions. Throwing Exceptions. Try Blocks. Handlers. Exception Specification. Terminate () And Unexpected () Example Exception Code. Pragmatics. Summary. Exercises. Oop Using C++. Oop Language Requirements. Adts In Non-Oop Languages. Clients And Manufacturers. Reuse And Inheritance. Polymorphism. Language Complexity. C++ Oop Bandwagon. Platonism: Tabula Rasa Design. Design Principles. Last Words. References. Summary. Exercises. Appendix A. Ascii Character Codes. Appendix B. Operator Precedence And Associativity. Appendix C. Turbo Pascal And C++. Program Structure. Indentifiers. Simple Data Types. Statements. Expressions. Procedures And Functions. Structured Types. Units And Objects. Appendix D. Language Guide. Lexical Elements. Constants. Declarations And Scope Rules. Linkage Rules. Types. Conversion Rules. Expressions And Operators. Statements. Classes. Functions. Templates. Exceptions. Caution And Compatibility. New And Proposed Features. Style Examples And Pragmatics. Appendix E. Input/Output. The Output Class Ostream. Formatted Output And Iomanip.H. User-Defined Types: Output. The Input Class Istream. Files. The Functions And Macros In Ctype.H. Using Stream States. Mixing I/O Libraries. Index. 0805331581T04062001

by "Nielsen BookData"

Details
Page Top