1120

Click here to load reader

Robert lafore , object oriented programming in c++

Embed Size (px)

Citation preview

  • 1.Object-Oriented Programming in C++, Third Edition (Publisher: Macmillan Computer Publishing) Author(s): Robert Lafore ISBN: 157169160x Publication Date: 11/25/98Introduction About the Author Preface CHAPTER 1THE BIG PICTURE Why Do We Need Object-Oriented Programming? Procedural Languages The Object-Oriented Approach Characteristics of Object-Oriented Languages Objects Classes Inheritance Reusability Creating New Data Types Polymorphism and Overloading C++ and C Laying the Groundwork Summary QuestionsCHAPTER 2C++ PROGRAMMING BASICS Getting Started Basic Program Construction Functions Program Statements Whitespace Output Using cout String Constants Directives Preprocessor Directives Header Files The using Directive Comments Comment Syntax When to Use Comments Alternative Comment Syntax Integer Variables Defining Integer Variables

2. Declarations and Definitions Variable Names Assignment Statements Integer Constants Output Variations The endl Manipulator Other Integer Types Character Variables Character Constants Initialization Escape Sequences Input with cin Variables Defined at Point of Use Cascading