C[++] for Pascal programmers
著者
書誌事項
C[++] for Pascal programmers
Benjamin Cummings Pub. Co., c1995
2nd ed
大学図書館所蔵 全2件
  青森
  岩手
  宮城
  秋田
  山形
  福島
  茨城
  栃木
  群馬
  埼玉
  千葉
  東京
  神奈川
  新潟
  富山
  石川
  福井
  山梨
  長野
  岐阜
  静岡
  愛知
  三重
  滋賀
  京都
  大阪
  兵庫
  奈良
  和歌山
  鳥取
  島根
  岡山
  広島
  山口
  徳島
  香川
  愛媛
  高知
  福岡
  佐賀
  長崎
  熊本
  大分
  宮崎
  鹿児島
  沖縄
  韓国
  中国
  タイ
  イギリス
  ドイツ
  スイス
  フランス
  ベルギー
  オランダ
  スウェーデン
  ノルウェー
  アメリカ
注記
Includes index
内容説明・目次
内容説明
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.
目次
(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
「Nielsen BookData」 より