Document Details

UnabashedCitrine

Uploaded by UnabashedCitrine

Prince Sattam bin Abdulaziz University Applied College

false

Dr. Ahmed Naghamish

Tags

computer programming object-oriented programming c++ programming concepts

Summary

These notes cover computer programming 2 with a focus on concepts for object oriented programming and related technology (such as C++). The documents provided are lecture notes.

Full Transcript

9/16/2023 Applied College Computer Programming 2 By Dr. Ahmed Naghamish Assistant Professor of Computer Science 1445 - 2023 Chapter 1 Review of Programming Concepts and Introducing Object Technology...

9/16/2023 Applied College Computer Programming 2 By Dr. Ahmed Naghamish Assistant Professor of Computer Science 1445 - 2023 Chapter 1 Review of Programming Concepts and Introducing Object Technology 1 9/16/2023 Resources  C++ How to Program, Deitel & Deitel, 8th edition.  Chapters:  Chapter 2: Introduction to C++ Programming  Chapter 4: Control Statements: Part 1  Chapter 5: Control Statements: Part 2  Chapter 6: Functions and an Introduction to Recursion  Chapter 7: Arrays and Vectors  Chapter 8: Pointers Outline 1. Introduction 2. C++ 3. A Simple Program: Adding Two Integers 4. C++ Standard Library 5. Header Files 6. Inline Functions 7. References and Reference Parameters 8. Default Arguments 9. Unary Scope Resolution Operator 10. Function Overloading 11. Function Templates 2 9/16/2023 1.1 Introduction C Language: 1. Procedural programming 2. Top-down program design  C++ Language: 1. Object based programming (classes, objects, encapsulation, operator overloading) 2. Object Oriented Programming-OOP (inheritance, polymorphism) 3. Generic programming (class templates and function templates) 1.1 Introduction  First Program in C++: Printing a Line of Text // 1-1.cpp // This is a simple C++ program. It prints a sentence. //#include Preprocessor Directive #include // allows program to output data to the screen // function main begins program execution int main() { // std namespace // std::cout is a standard output stream object std::cout

Use Quizgecko on...
Browser
Browser