Professional Documents
Culture Documents
Chapter 1
Chapter 1
• Byte:
– A sequence of eight bits
Sample Run:
My first C++ program.
• The IDE contains many pre-written programs that are useful in creating
your program, makes the job easy for the programmer.
– For example, it contains the necessary code (program) to display the
results of the program.
• Once the program is developed and successfully compiled, you must still
bring the code from the IDE into your program to produce a final program.
This prewritten code (program) resides in a place called the library.
• A program called a linker combines the object program with the programs
from libraries
• Loader:
– Loads executable program into main memory
• Structured programming:
– Implementing a structured design
• Analyzing each subproblem
• Obtaining solution for each subproblem
• Combining the solution of each subproblem to obtain overall solution
• The structured design approach is also called:
– Top-down (or bottom-up) design
– Stepwise refinement
– Modular programming
C++ Programming: From Problem Analysis to Program Design, Sixth Edition 54
Object-Oriented Programming
• Object-oriented design (OOD)
– Identify components called objects
– Determine how objects interact with each other