Professional Documents
Culture Documents
-Chinese Proverb
EE112
Programming for engineers-II
Course Code : EE112
Total Credit hours: 3+1
Pre—requisite: EE110
Instructor: Furqan Aziz
Email: furqan.aziz@nu.edu.pk
TAs: TBA
What is a Computer?
What does computer Understand
01000101010111010101110101010101000
01111111111100000000010101010101010
111010101010111010101010…………….
What is Programming
Low Level Programming
Machine Language
Assembly Language
High Level Programming
C/C++
Java
C#
1.14 Basics of a Typical C++
Environment Editor Disk
Program is created in
the editor and stored
on disk.
2. Preprocess Primary
Memory
stores it on disk
Loader
4. Link ..
Primary
Memory
5. Load CPU
CPU takes each
instruction and
executes it, possibly
storing new data
6. Execute ..
..
..
values as the program
executes.
Object Oriented Programming
Encapsulation
Data Hiding
Inheritance
Polymorphism
What is Integrated Development
Environment
In computing, an integrated development
environment (abbreviated as IDE) is a software
application that provides comprehensive facilities
to computer programmers for software
development. An IDE normally consists of a
source code editor, a compiler and/or interpreter,
build automation tools, and (usually) a debugger.
(Wikipedia)
Your First C++
// Hello .cpp
/* Saying Hello with a
C++ Program*/
# include <iostream>
using namespace std;
int main()
{
cout<<“Hello World”<<endl;
cout<<“Welcome to Computer Programming”;
return 0;
}
Your First C++
// Hello .cpp •iostream
/* Saying Hello with a
C++ Program*/ •Namespaces
# include <iostream> •Comments
using namespace std;
int main() •Manipulators
{ •Functions
cout<<“Hello World”<<endl;
cout<<“Welcome to Computer Programming”;
return 0;
}
C++ uses Variables to name and
store data
Each variable has a name and is assigned a
memory location.
Variable Names
Variable declaration
Variable definition
Type
Size
Data Types of variable
Char
Short
Int
Float
Double