Introduction to C++ Programming

Outline 1. History of C and C++ 2. C++ Standard Library 3. Basics of a Typical C++ Environment 4. Introduction to C++ Programming 5. A Simple Program: Printing a Line of Text 6. Another Simple Program: Adding Two Integers 7. Arithmetic 8. Decision Making: Equality and Relational Operators 9. Introduction to Object Technology

1

 2003 Prentice Hall, Inc. All rights reserved.

2

History of C and C++ • History of C
– Evolved from two other programming languages
• BCPL and B – “Typeless” languages

– Dennis Ritchie (Bell Laboratories)
• Added data typing, other features

– Development language of UNIX – Hardware independent
• Portable programs

– 1989: ANSI standard – 1990: ANSI and ISO standard published
• ANSI/ISO 9899: 1990

 2003 Prentice Hall, Inc. All rights reserved.

3

History of C and C++ • History of C++
– – – – Extension of C Early 1980s: Bjarne Stroustrup (Bell Laboratories)