application that provides comprehensive facilities to computer programmers for software development.. Ø An IDE normally consists of a source code editor, build.[r]
Trang 1Overview
of Previous Lesson(s)
Trang 2Over View
Ø Programming language is an artificial language designed to communicate instructions to a machine, particularly a
computer
Ø Types of Programming Languages
Ø High level languages
Ø Low level languages
Ø Assembly Language
Ø Machine Language
Ø Programming Types
Ø Structured Programming
Ø Object Oriented Programming
2
Trang 3Over View
Ø An IDE or interactive development environment is a software application that provides comprehensive facilities to computer programmers for software development
Ø An IDE normally consists of a source code editor, build
automation tools and a debugger
3
Trang 4Over View…
Ø Microsoft Visual Studio is an integrated development
environment (IDE) from Microsoft Corporation
Ø It is used to develop console and graphical applications along with Windows Forms, Websites in both native code and with managed code
Ø It is supported by Microsoft Windows, Win Mobile, Win
CE, NET Framework
4
Trang 5Over View
Ø Our First Program
#include <iostream.h> using namespace std;
// main() is where program execution begins
int main()
{ cout << "Hello World"; // prints Hello World
return 0;
}
5
Trang 6LESSON 03
Trang 7An example Program
Ø A program which gets two values from user, add them and shows the result
7
Trang 8C++ Program
Ø Some common elements in programming languages
Ø Key Words
Ø Programmer-Defined Identifiers
Ø Operators
Ø Punctuation
Ø Syntax
8
Trang 9Key Words
Ø Also known as reserved words
Ø Have a special meaning in C++
Ø Can not be used for any other purpose
Ø Key words in the example program
Ø main
Ø using
Ø namespace
Ø int
Ø return
Ø cout
Ø cin
9
Trang 10Key Words
10