Chapter 2: The Recording Process ACT 201 Lecture By: Ms. Adina Malik.
Chapter 2 Malik
29
Basic Elements of C++ Chapter 2
-
Upload
amishadalal -
Category
Documents
-
view
246 -
download
5
description
sa
Transcript of Chapter 2 Malik
Basic Elements of C++Chapter 22Chapter TopicsThe Basics of a C++ ProgramData TypesArithmetic Operators and Operator PrecedenceExpressionsInputIncrement and Decrement OperatorsOutputPreprocessor DirectiesProgram !tyle and "orm#ore on Assignment !tatements3The Basics of a C++ ProgramA C++ program is a collection of one or more su$programs %functions&"unction'Collection of statements'!tatements accomplish a tas(Eery C++ program has a function called main4Example Program#include using namespace std;int main(){cout