ENSC 104: DIGITAL COMPUTER PROGRAMMING

INTRODUCTION TO C/C++


Readings: Pages 2-5


Overview of TextBook

Chapters 1-5: C Structured Programming

Chapters 6-21: OOP Features


Introduction to C/C++

C versus C++

A 'C' program will work on a C++ compiler. A 'C++' program will not work on a 'C' compiler, usually!!

C++ is one of the most popular software development languages today.

Discuss other programming languages.

The author's web site can be reached at http://www.deitel.com for an exact listing of the programs in this text.

Standards

 

Structured Programming

Break the problem to be solved down into three to five steps. Then break each of these steps down into three to five steps. Repeat this process until each step can be mapped to a C++ programming statement or function call.

Example: Write a program to solve the quadratic equation.

 

Object-Oriented Programming

Model the problem being solved. Describe the problem to be solved in paragraph form. Then the nouns, verbs and adjectives get mapped to C++ constructs for implementation.


 

What is a computer?

Computers process "data" under the control of sets of instructions called "computer programs". These computer programs guide the computer through orderly set of actions specified by the people called "computer programmers".

Software

Hardware

Firmware