CPP Lec1
CPP Lec1
Programming in C++
Lecture 1:
Introduction
Course Objectives
The internet!!
http://www.cplusplus.com/doc/tutorial/
http://www.cprogramming.com/tutorial.html
http://www2.research.att.com/~bs/C++.html
Aim of Lecture
Computer software is …
The collection of programs used by a
computer
Includes:
Editors
Translators
System Managers
More on programs…
source
code
Definitions
Algorithm
1. ask the user for the first number
2. ask the user for the second number
3. add the two numbers
4. display the result on the screen
//This program performs a basic addition operation of two numbers
#include <iostream>
int main()
{
int a, b, c; //Variable declaration
c = a + b; //addition takes
place here
cout <<"The result of addition is: " << c;
return 0;
}
Loaded to
Memory Run by CPU
one instruction
at a time
IDEs
Integrated Development Environments or IDEs
Supports the entire software development cycle
E.g., MS Visual C++, Borland, Code Warrior
Provides all the capabilities for developing software
Editor
Compiler
Linker
Loader
Debugger
Viewer
Any General Questions