Professional Documents
Culture Documents
Week 1
Introduction to the course
Lecture slides are modified by Dr. B. Kanber, based on original slides by Dr. A. Bingl and Dr. A. Beddall
Sayfa 1
Sayfa 2
Course Books
Essential C++ for Engineers and Scientists, Jeri R. Hanly, Addison-Wesley (2002) ~ 80 $
Programming with C++, John R. Hubbard Schaum Outline Series (2000) ~ 15 $ Practical C++ Programming, Steve Qualline OReilly Media (2003) ~ 25 $
Sayfa 4
Course Content
Introduction to Programming History of C++ Structure of C++ C++ Basics
Fundamental Input / Output, Data Types, Strings, Operators, Variables, Constants, Intrinsic Functions
Control Structures: Selection & Loops Functions Arrays Multidimensional Arrays Vectors File Processing Introduction to Classes
Sayfa 5
Wednesdays
two-hour programming session 8:30-10.20 in BIM lab 3
Attendance
You must attend at least 70% of the course
Exams
All are written exams First midterm Second midterm Quizes Final 20% 20% 20% 40%
Sayfa 6
Wednesdays
two-hour programming session 17:00-18.45 in BIM lab 3
Attendance
You must attend at least 70% of the course
Exams
All are written exams First midterm Second midterm Quizes Final 20% 20% 20% 40%
Sayfa 7
Computer Labs
We will learn C++ using the Dev-C++ compiler under Windows; you may also use Linux , e.g. Ubuntu, gul4.bim... Every week you should write a few programs yourself in the BIM lab (and more in your free time). In the BIM Computer Labs your programs will be deleted when the computer reboots. So you need to save them on a flash drive or on the internet.
The Computer
See http://en.wikipedia.org/wiki/Computer A computer is a machine that manipulates data according to a set of instructions. The first computers were developed in 19401945, they were very large in size! Modern computers are based on integrated circuits making them very fast and small in size.
Sayfa 9
Sayfa 10
Sayfa 12
Sayfa 13
Sayfa 14
Sayfa 15
A program is input from an HDD(1) and executed in RAM(2). Data is input from a keyboard(3) which is again stored in RAM(4). The CPU operates on the program and data in RAM(5) and outputs results to the HDD(6) as well as the monitor(7). This is all controlled by the CPU requiring only basic data flow instructions from the programmer.
Sayfa 16
Sayfa 17
Sayfa 21