LEC15-Wrap-up - 1 COEN 243 WINTER 2007 Instructor: Dr....

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
1 LECTURE 15 Review for the Final Exam Instructor: Dr. Abdelwahab Hamou-Lhadj COEN 243 WINTER 2007
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 LEC 1- Introduction to Computer  Science Computer architecture: CPU, RAM, ROM, Input Units, Output Units, Storage Units Software Programs, large applications Operating systems: Windows, Linux, MAC-OS Programming Languages: Machine language, Assembly, High-level languages (C++) Structured Programming: Based on functions and function calls Object-oriented programming: Based on objects
Background image of page 2
3 It is a high-level language Allows structured and object-oriented programming Entry point of a program: main() function Comments: // /* …. */ Escape characters: \n, \t, etc… Preprocessor directives: #include <iostream>, etc. . LEC 2- Overview of C++
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 LEC 2- Overview of C++ (cont.) Phases of C++ Programs: Edit, Preprocess, Compile, Link, Load, and Execute Namespace std cin and cout Primitive data types: int, float, char, double, bool Variables and constants Must be declared Type must be specified Arithmetic operators: +, -, /, %, * Relational operators: <, >, >=, !=, ==, <= Logical operators: &&, ||, ! Assignment statement: =
Background image of page 4
5 LEC 3- Control Structures if if and else switch Conditions can be combined using logical operators
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
6 LEC 4 - Repetitions while loop do/while loop Executes at least once for loop Good when you know the number of iterations Counter-controlled repetitions Sentinel-controlled repetitions
Background image of page 6
7 LEC 5 - Functions The Divide and Conquer principle
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/27/2009 for the course ECE Coen 243 taught by Professor Drlajam during the Winter '07 term at Concordia Canada.

Page1 / 20

LEC15-Wrap-up - 1 COEN 243 WINTER 2007 Instructor: Dr....

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online