Beruflich Dokumente
Kultur Dokumente
Introduction
Programming in C/C++ (EE3490E)
Lectures + Assignments (0.1) + Handouts (0.2) +
Final exam (0.7)
Compiler: MS Visual C++
Textbooks:
Website:
http://mica.edu.vn/en/perso/kiendt/EE3490E
EE3490E: Programming T1 2015/2016
Dr. o Trung Kin Hanoi Univ. of Science and Technology
Contents
Introduction (1 week)
Contents (cont.)
Object-oriented programming - OOP (3 weeks)
Introduction to OOP
Classes and objects
Inheritance
Data structures with OOP
Input/output programming with OOP
Overview
is a software
helps users to manipulate the computer
manages resources (CPU, memory, soft/hardware,)
runs programs
Programming languages
Are languages designed by human, and used to
create computer programs
Development history:
Program errors
Runtime errors:
Logical errors:
10
11
History of C language
Efficiency
Ability to access hardware at low level
Structural language (to replace programming in assembly)
Able to access memory directly and naturally
Condensed syntax, few keywords
12
13
Compiler
Object code
file1.obj
Source file
file2.c
Compiler
Object code
file2.obj
Libraries
Linker
Executable program
a.exe
14
Why C/C++?
Advantages:
Efficiency
Flexibility, highly customizable
Widely supported
Drawbacks:
16
17
in C: with /* */
in C++: additionally with // for commenting one lines
EE3490E: Programming T1 2015/2016
Dr. o Trung Kin Hanoi Univ. of Science and Technology
Writing programs
Compiling
Debugging
Do examples
18