SlideShare a Scribd company logo
1 of 117
C++Mohamed Loey
C++
C++Contents
1.Basic Information
2.Expressions
3.Statements
4.Arrays and Strings
5.Functions
C++
1 Basic Information
1.Program
2.Hello World
3.Comments
4.Includes
5.Main Function
6.Namespaces
C++
1.1 Program
•A program is a set of human-readable
instructions for the computer to carry
out.
C++
1.2 Hello World
#include <iostream>
// include iostream package
int main() { // begin main function
std::cout << "Hello world"; // Output
return 0; // main function return
} // end main function
C++
1.3 Comments
•Comments are pieces of source code
discarded from the code by the compiler.
•They do nothing, but it allow programmers
to insert notes or descriptions
C++
1.3 Comments Example
// line comment
/* block comment */
C++
1.4 Includes
• Sentences that begin with a pound sign (#) are
directives for the preprocessor
• In the example the sentence
#include <iostream>
• tells the compiler's preprocessor to include the
iostream standard header file.
C++
1.5 Main Function
• The main function is the point by where all C++ programs
begin their execution.
• A function is a program (or code) that performs a task.
int main() { //main function
return 0; // main function return
}
C++
1.6 Code Blocks
• Code block is a set of statements that fall
between open and closing brackets: "{" "}".
int main() { //main function (code blocks)
std::cout << "Hello world"; // Output
return 0; // main function return (code blocks)
} // end main function
C++
1.7 Namespaces
•Namespaces allow to group a set of
global classes, objects and/or
functions under a name.
C++
1.7 Namespaces Example
#include <iostream>
using namespace std; //namespace
int main () {
cout << "Hello world!";
return 0;
}
C++
2 Expressions
1.Variables
2.Data Types
3.Operators
C++
2.1 Variable
• A variable is a named location in memory that is
used to hold a value which may be modified by the
program.
• The general form of a declaration is
datatype variable = initial;
C++
2.1 Variable Example
int i, j, k;
char ch;
double current_balance;
C++
2.2 Data Types
1. Boolean
2. Character
3. Integer
4. Floating-Point
5. Casts
6. Variable Locations
C++
2.2 Data Types
•C++ has a set of basic data types:
•boolean (bool)
•character (char)
•integer (such as int)
•floating-point (such as double and float)
•with the exception of type void
C++
2.2 Data Types
•The basic data types can be modified by
using a signed, unsigned, long, or
short modifier.
C++
2.2.1 Boolean
•A Boolean can have one of the two values
true or false (1 or 0).
Type Range Size in Bits
bool 0,1 1
C++
2.2.1 Boolean Examples
bool b = true; // b becomes true
int i = false; // int(false) is 0, so i becomes 0
bool b = 4; // bool(4) is true, so b becomes true
C++
2.2.2 Character
•A Character type char can hold a character
such as 'A' or '$'
Type Range Size in Bits
char -127 to 127 8
signed char -127 to 127 8
unsigned char 0 to 255 8
C++
2.2.2 Character Example
char ch = 'a'; // ch hold ‘a’
•ASCII is the dominant encoding scheme
• Examples
• ' ' encoded as 32 '+' encoded as 43
• 'A' encoded as 65 'Z' encoded as 90
• 'a' encoded as 97 'z' encoded as 122
C++
2.2.2 Character
• A few characters have standard names that use
the backslash  as an escape character such as “n
t v”.
Character ASCII Description
n NL (LF) newline
t HT horizontal tab
v VT vertical tab
C++
2.2.3 Integer
•Integer can store a whole number value such
as 7 or 1024
Type Range Size in Bits
int -32 767 to 32 767 16
signed int -32 767 to 32 767 16
unsigned int 0 to 65 535 16
short int -32 767 to 32 767 16
C++
2.2.3 Integer
• Continue
Type Range Size in Bits
signed short int -32 767 to 32 767 16
unsigned short int 0 to 65 535 16
long int -2 147 483 647 to 2 147 483 647 32
signed long int -2 147 483 647 to 2 147 483 647 32
unsigned long int 0 to 4 294 967 295 32
C++
2.2.3 Integer Examples
int k = 123; // decimal
int k = 012; // octal (12)8= (10)10
int k = 0x12; // hexadecimal (12)16= (18)10
int k = 'A'; // k hold 65 ASCII code of ‘A’
C++
2.2.4 Floating-Point
•Floating-Point can represent real values,
such as 3.14 or 0.01
Type Range Size in Bits
float 1e-37 to 1e+37, 6 digits of precision 32
double *, 10 digits of precision 64
long double *, 10 digits of precision 128
C++
2.2.4 Floating-Point
float f = 1.23; // f hold 1.23
float f = 2.0f; // f hold 2.0
double d = .123; // d hold .123
C++
2.2.5 Casts
•Casts can be used to make data type
conversion
• Example:
float f = 2.5f; // f hold 2.5
int i = int(f); // i hold 2
int z = (int)f; // i hold 2
C++
2.2.6 Variable Locations
•Variables can be located inside functions
(local variables)
•Variables outside all functions (global
variables)
C++
2.2.6 Variable Locations Example
#include <iostream>
using namespace std;
int i=1; // Global variable
int main() {
int k=2; // Local variable
return 0;
}
C++
2.3 Operators
1.Assignment
2.Arithmetic
3.Comparison
4.Logical
5.Conditional
6.Bitwise
C++
2.3 Operators
•C++ is rich in built-in operators. It
places significantly more importance on
operators than do most other computer
languages.
C++
2.3.1 Assignment
•The assignment operator assigns a
value to a variable.
C++
2.3.1 Assignment
Sign Description Sign Description
= simple assignment &= AND and assign
+= add and assign |=
inclusive OR and
assign
-= subtract and assign ^=
exclusive OR and
assign
*= multiply and assign <<= shift left and assign
/= divide and assign >>= shift right and assign
%= modulo and assign
C++
2.3.1 Assignment Example
int i, j; // i:? j:?
i = 1; // i:1 j:?
j = 2; // i:1 j:2
i += j; // i:3 j:2
j *= 4; // i:3 j:8
C++
2.3.2 Arithmetic
•Operations of addition, subtraction,
multiplication, division and
remainder (modulo)
C++
2.3.2 Arithmetic
Sign Description Sign Description
opr1 + opr2 addition. ++opr add 1 to operand before using the value
opr1 - opr2 subtraction. --opr
subtract 1 from operand before using
the value
opr1 * opr2 multiplication opr++ add 1 to operand after using the value
opr1 / opr2 division opr--
subtract 1 from operand after using the
value
opr1 % opr2
remainder (modulo) after dividing
opr1 by opr2.
++opr add 1 to operand before using the value
opr1 + opr2 addition.
C++
2.3.2 Arithmetic Example
int i; // i:?
i = 1; // i:1
i++; // i:2
i = 11 % 3; // i:2
i = 13 / 4; // i:3
C++
2.3.3 Comparison
•C++ standard specifies that the
result of a relational operation is
a bool value that can only
be true or false.
C++
2.3.3 Comparison
Sign Description Sign Description
== Equal < Less than
!= Different >= Greater or equal than
> Greater than <= Less or equal than
C++
2.3.3 Comparison Example
(1 == 2) // false
(1 != 2) // true
int i = 1;
int j = 4;
(i <= j) // true
(i > j) // false
C++
2.3.4 Logical
•Logic operators && and || are used
when evaluating two expressions to
obtain a single result.
•Operator ! is equivalent to boolean
operation NOT, it has only one
operand
C++
2.3.4 Logical
Sign Description
opr1 && opr2 Conditional "and". true if both operands are true, otherwise false.
opr1 || opr2 Conditional "or". true if either operand is true, otherwise false.
!opr true if opr is false, false if opr is true
C++
2.3.4 Logical Example
(ch == 'A' || ch == 'Z')
// ch may Capital 'A' or Capital 'Z'
(income > 5 && income < 10)
/* income must be greater than 5 and
less than 10 */
C++
2.3.5 Conditional
•The conditional operator ( ? ) evaluates
an expression and returns a different
value according to the evaluated
expression, depending on whether it is
true or false.
C++
2.3.5 Conditional
cond ? res1 : res2
if cond is true, the value is res1, else res2.
Results must be the same type
C++
2.3.5 Conditional Example
1==2 ? 1 : 2
// returns 2 since 1 is not equal to 2
C++
2.3.6 Bitwise
•Bitwise operators modify the
variables considering the bits that
represent the value they store, that
means, their binary representation.
C++
2.3.6 Bitwise
Sign Description Sign Description
opr1 & opr2 bitwise AND ~ opr complement
opr1 | opr2 bitwise inclusice OR opr1 << opr2 shift right
opr1 ^ opr2 bitwise exclusive OR (XOR) opr1 >> opr2 shift left
C++
2.3.6 Bitwise Example
int x = 7;
// value of x= (7)10 = (00000111)2
x = x << 1;
// value of x= (14)10 = (00001110)2
C++
3 Statements
1.Conditional (Selection)
2.Iteration (Loop)
3.Jump
C++
3.1 Conditional
1.If Statement
2.If-else Statement
3.Switch Statement
C++
3.1.1 If Statement
•If the boolean expression
evaluates to true, then the if
block of code will be executed.
otherwise skip if block of code.
Expression
Action
true false
Flow Chart
C++
3.1.1 If Statement
if(Condition)
{
// Action
}
C++
3.1.1 If Statement Example
if ( 5 < 10 ) { // if statement
cout<<"Five is now less than ten,
that's a big surprise";
} // end of if statement
C++
3.1.2 If-else Statement
•If the boolean expression
evaluates to true, then the if
block of code will be executed,
otherwise else block of code
will be executed.
Flow Chart
Expression
Action1 Action2
true false
C++
3.1.2 If-else Statement
if(Condition)
{
// Action 1
}else{
// Action 2
}
C++
3.1.2 If-else Statement Example
if ( 5 > 10 ) { // if statement
cout<<"Five is less than ten";
}else{ // if else statement
cout<<"Five is not greater than ten";
}
C++
3.1.2 If-else Statement Example 2
if ( x< 0 ) // if statement
cout << x<< " is negative" << endl;
else if ( x> 0 ) // else if statement
cout << x<< " is positive" << endl;
else // else statement
cout << x<< " is zero" << endl;
C++
3.1.3 Switch Statement
•The switch statement causes control to be
transferred to one of several statements
depending on the value of an expression.
•Technically, the break statements inside
the switch statement are optional. They
terminate the statement sequence
C++
3.1.3 Switch Statement Example Part 1
cout << "Type a, b, or c: ";
cin >> ch; // read user input
switch(ch) // check the value of "ch"
{
case 'a': // if ch equals 'a' or 'A', say so
cout << "You typed a.";
break; // break switch statement
C++
3.1.3 Switch Statement Example Part 2
case 'b': cout << "You typed b.";
break;
case 'c': cout << "You typed c";
break;
default: // if ch isn't a, b or c, say so
cout << "You did not type a, b or c.";
}
C++
3.2 Iteration
• Repeating identical or similar
tasks
1.While Statement
2.Do Statement
3.For Statement
Flow Chart
C++
3.2.1 While Statement
•The while loop iterates while the
condition is true. When the condition
becomes false, program control passes to
the line after the loop code.
C++
3.2.1 While Statement
while (Condition)
{
// Action
}
C++
3.2.1 While Statement
int x=0;
while (x<=5)
{
cout<<x<<endl; // action
x++; // increment
}
Console Output
0
1
2
3
4
5
C++
3.2.2 Do Statement
•Like a while statement, except that it
tests the condition at the end of the loop
body.
•Execute at least one time
C++
3.2.2 Do Statement
do{
// Action
}while( Condition );
C++
3.2.2 Do Statement
int x=0;
do{
cout<<x<<endl; //action
x++; // increment
} while (x<=5);
Console Output
0
1
2
3
4
5
C++
3.2.3 For Statement
•Execute a sequence of statements
multiple times and abbreviates the code
that manages the loop variable.
C++
3.2.3 For Statement
for(initialization ; condition; increment)
{
// Action
}
C++
3.2.3 For Statement
for(int x=0 ; x<=5; x++)
{
cout<<x<<endl; // Action
}
Console Output
0
1
2
3
4
5
C++
3.3 Conditional
1.Break Statement
2.Continue Statement
3.Switch Statement
C++
3.3.1 Break Statement
•Terminates the loop or switch statement
and transfers execution to anthor
statement.
C++
3.3.1 Break Statement
for(int x=0 ; x<=5; x++)
{
if(x==3) break;
cout<<x<<endl; // Action
}
Console Output
0
1
2
C++
3.3.2 Continue Statement
•Causes the loop to skip the remainder of
its body and immediately retest its
condition prior to reiterating.
C++
3.3.2 Continue Statement
for(int x=0 ; x<=5; x++)
{
if(x==3) continue;
cout<<x<<endl; // Action
}
Console Output
0
1
2
4
5
C++
4 Arrays and Strings
1.Single-Dimension Arrays
2.Multidimensional Arrays
3.String
C++
4.1 Single-Dimension Arrays
•Single-dimension arrays are essentially
lists of information of the same type that
are stored in contiguous memory
locations in index order. All arrays have
zero as the index of their first element.
C++
4.1 Single-Dimension Arrays
1.Static Arrays
2.Array of Char Manipulation
C++
4.1.1 Static Arrays
Datatype variable[size] = { initials };
C++
4.1.1 Static Arrays Example
int x[5] = {1, 2, 5, 3, 6};
C++
4.1.1 Static Arrays Example
int x[5];
x[0]=1;
x[1]=2;
x[2]=5;
x[3]=3;
x[4]=6;
C++
4.1.1 Static Arrays Example
int n[5];
cout<<"Enter 5 numbers: ";
for (int i = 0; i < 5; i++) { cin>>n[i]; }
// input all elements of array n
for (int i = 0; i < 5; i++) { cout<<n[i]<<endl; }
// output all elements of array n
C++
4.1.2 Array of Char Manipulation
1- import package cstring
#include <cstring>
C++
4.1.2 Array of Char Manipulation
Name Function
strcpy(s1, s2) Copies s2 into s1
strcat(s1, s2) Concatenates s2 onto the end of s1
strlen(s1) Returns the length of s1
strcmp(s1, s2) Returns zero if s1 and s2 are the same; less than zero if s1 < s2;
greater than zero if s1 > s2
strchr(s1, ch) Returns a pointer to the first occurence of ch in s1
strstr(s1, s2) Returns a pointer to the first occurence s2 in s1
#include <cstring>
C++
4.1.2 Array of Char Manipulation
char name[] = "Lasse";
cout << “name length = " <<
strlen(name) << endl;
// name length = 5
C++
4.2 Multidimensional Arrays
•A two-dimensional array can be think as a
table, which will have x number of rows and
y number of columns.
Datatype arrayName [ x ][ y ];
C++
4.2 Multidimensional Arrays
int a[2][3];
C++
4.2 Multidimensional Arrays
int test[2][3]
= { {2, -5, 6},
{4, 0, 9}};
C++
4.2 Multidimensional Arrays Input
for(int i = 0; i < 2; ++i) {
for(int j = 0; j < 3; ++j) {
cout<<"Enter your number = ";
cin>> test[i][j];
} }
C++
4.2 Multidimensional Arrays Input
for(int i = 0; i < 2; ++i) {
for(int j = 0; j < 3; ++j) {
cout<< test[i][j]<<endl;
} }
C++
4.3 String
String is sequences of characters
C++
4.3 String
char str1[10] = "Hello";
C++
4.3 String Example
char str2[10] = "World";
char str3[10];
strcpy( str3, str2);
cout <<str3<< endl; // str3=“World”
C++
4.3 String Class
1- import package string
#include <string>
C++
4.3 String Class Example
string str1 = "Hello";
string str2 = "World";
string str3;
str3 = str1 + str2; // str3=“Hello World”
cout << "str1 + str2 : " << str3 << endl;
C++
5 Functions
1.Function Definition
2.Function Calling
3.Function Arguments
4.Function Return Values
C++
5.1 Function Definition
A function is a block of instructions
that is executed when it is called
from some other point of the
program.
C++
5.1 Function Definition
Datatype function-name (arguments)
{
statement;
}
C++
5.1 Function Definition
void show() // function show
{
cout<<“Hello World”;
}
C++
5.2 Function Calling
void main() //main function
{
show(); // show function call
}
C++
5.3 Function Arguments
1- Pass by Value
2- Pass by Reference
C++
5.3.1 Pass by Value
• The Pass by Value method of
passing arguments to a function
copies the actual value of an
argument into the formal
parameter of the function.
C++
5.3.1 Pass by Value Example1
void show(int arg1)
{
cout<<“pass by value=”<<arg1;
}
C++
5.3.1 Pass by Value Calling Example1
void main()
{
show(5); // print 5 on screen
}
C++
5.3.1 Pass by Value Example2
void add(int x, int y)
{
cout<<“add(x,y)=”<<x+y;
}
C++
5.3.1 Pass by Value Calling Example2
void main()
{
add(5,6);
// print “add(x,y)=11” on screen
}
C++
5.3.2 Pass by Reference
In pass by reference , a
copy of the address of the
actual parameter is stored.
C++
5.3.2 Pass by Reference Example1
void addone(int &x)
{
x=x+1;
}
C++
5.3.2 Pass by Reference calling
Example1
void main(){
int y=2;
addone(y)
cout<<y; // print 3 on screen
}
C++
5.4 Function Return Values
A function may return a value.
The return type is the data
type of the value the
function returns.
C++
5.4 Function Return Values Example1
int add (int x, int y)
{
return x+y;
}
C++
5.3.2 Pass by Reference calling
Example1
void main(){
Int a=1,b=4;
cout<<add(a,b);
// print 5 on screen
}
Thanks For Listening
Mohamed Loey

More Related Content

What's hot

Presentation on C++ Programming Language
Presentation on C++ Programming LanguagePresentation on C++ Programming Language
Presentation on C++ Programming Languagesatvirsandhu9
 
class and objects
class and objectsclass and objects
class and objectsPayel Guria
 
C++ Overview
C++ OverviewC++ Overview
C++ Overviewkelleyc3
 
08 c++ Operator Overloading.ppt
08 c++ Operator Overloading.ppt08 c++ Operator Overloading.ppt
08 c++ Operator Overloading.pptTareq Hasan
 
Control Flow Statements
Control Flow Statements Control Flow Statements
Control Flow Statements Tarun Sharma
 
Friend function
Friend functionFriend function
Friend functionzindadili
 
Object Oriented Programming Using C++
Object Oriented Programming Using C++Object Oriented Programming Using C++
Object Oriented Programming Using C++Muhammad Waqas
 
Oop c++class(final).ppt
Oop c++class(final).pptOop c++class(final).ppt
Oop c++class(final).pptAlok Kumar
 
Object oriented programming c++
Object oriented programming c++Object oriented programming c++
Object oriented programming c++Ankur Pandey
 
Basic Structure of C Language and Related Term
Basic Structure of C Language  and Related TermBasic Structure of C Language  and Related Term
Basic Structure of C Language and Related TermMuhammadWaseem305
 
Functions in c++
Functions in c++Functions in c++
Functions in c++Maaz Hasan
 
INLINE FUNCTION IN C++
INLINE FUNCTION IN C++INLINE FUNCTION IN C++
INLINE FUNCTION IN C++Vraj Patel
 

What's hot (20)

Presentation on C++ Programming Language
Presentation on C++ Programming LanguagePresentation on C++ Programming Language
Presentation on C++ Programming Language
 
class and objects
class and objectsclass and objects
class and objects
 
C++ Overview PPT
C++ Overview PPTC++ Overview PPT
C++ Overview PPT
 
C++ Overview
C++ OverviewC++ Overview
C++ Overview
 
Functions in C++
Functions in C++Functions in C++
Functions in C++
 
Functions in c++
Functions in c++Functions in c++
Functions in c++
 
08 c++ Operator Overloading.ppt
08 c++ Operator Overloading.ppt08 c++ Operator Overloading.ppt
08 c++ Operator Overloading.ppt
 
Control Flow Statements
Control Flow Statements Control Flow Statements
Control Flow Statements
 
Friend function
Friend functionFriend function
Friend function
 
Object Oriented Programming Using C++
Object Oriented Programming Using C++Object Oriented Programming Using C++
Object Oriented Programming Using C++
 
Break and continue
Break and continueBreak and continue
Break and continue
 
Intro to c++
Intro to c++Intro to c++
Intro to c++
 
Oop c++class(final).ppt
Oop c++class(final).pptOop c++class(final).ppt
Oop c++class(final).ppt
 
Object oriented programming c++
Object oriented programming c++Object oriented programming c++
Object oriented programming c++
 
C functions
C functionsC functions
C functions
 
Strings in c++
Strings in c++Strings in c++
Strings in c++
 
Basic Structure of C Language and Related Term
Basic Structure of C Language  and Related TermBasic Structure of C Language  and Related Term
Basic Structure of C Language and Related Term
 
Functions in c++
Functions in c++Functions in c++
Functions in c++
 
C++ ppt
C++ pptC++ ppt
C++ ppt
 
INLINE FUNCTION IN C++
INLINE FUNCTION IN C++INLINE FUNCTION IN C++
INLINE FUNCTION IN C++
 

Viewers also liked

01 c++ Intro.ppt
01 c++ Intro.ppt01 c++ Intro.ppt
01 c++ Intro.pptTareq Hasan
 
Convolutional Neural Network Models - Deep Learning
Convolutional Neural Network Models - Deep LearningConvolutional Neural Network Models - Deep Learning
Convolutional Neural Network Models - Deep LearningMohamed Loey
 
Algorithms Lecture 3: Analysis of Algorithms II
Algorithms Lecture 3: Analysis of Algorithms IIAlgorithms Lecture 3: Analysis of Algorithms II
Algorithms Lecture 3: Analysis of Algorithms IIMohamed Loey
 
PMP Lecture 1: Introduction to Project Management
PMP Lecture 1: Introduction to Project ManagementPMP Lecture 1: Introduction to Project Management
PMP Lecture 1: Introduction to Project ManagementMohamed Loey
 
Algorithms Lecture 4: Sorting Algorithms I
Algorithms Lecture 4: Sorting Algorithms IAlgorithms Lecture 4: Sorting Algorithms I
Algorithms Lecture 4: Sorting Algorithms IMohamed Loey
 
Computer Security Lecture 7: RSA
Computer Security Lecture 7: RSAComputer Security Lecture 7: RSA
Computer Security Lecture 7: RSAMohamed Loey
 
Algorithms Lecture 2: Analysis of Algorithms I
Algorithms Lecture 2: Analysis of Algorithms IAlgorithms Lecture 2: Analysis of Algorithms I
Algorithms Lecture 2: Analysis of Algorithms IMohamed Loey
 
Algorithms Lecture 5: Sorting Algorithms II
Algorithms Lecture 5: Sorting Algorithms IIAlgorithms Lecture 5: Sorting Algorithms II
Algorithms Lecture 5: Sorting Algorithms IIMohamed Loey
 
Computer Security Lecture 5: Simplified Advanced Encryption Standard
Computer Security Lecture 5: Simplified Advanced Encryption StandardComputer Security Lecture 5: Simplified Advanced Encryption Standard
Computer Security Lecture 5: Simplified Advanced Encryption StandardMohamed Loey
 
Deep Learning - Overview of my work II
Deep Learning - Overview of my work IIDeep Learning - Overview of my work II
Deep Learning - Overview of my work IIMohamed Loey
 
Intro. to prog. c++
Intro. to prog. c++Intro. to prog. c++
Intro. to prog. c++KurdGul
 

Viewers also liked (15)

01 c++ Intro.ppt
01 c++ Intro.ppt01 c++ Intro.ppt
01 c++ Intro.ppt
 
C++ ppt
C++ pptC++ ppt
C++ ppt
 
C++ programming
C++ programmingC++ programming
C++ programming
 
Convolutional Neural Network Models - Deep Learning
Convolutional Neural Network Models - Deep LearningConvolutional Neural Network Models - Deep Learning
Convolutional Neural Network Models - Deep Learning
 
Algorithms Lecture 3: Analysis of Algorithms II
Algorithms Lecture 3: Analysis of Algorithms IIAlgorithms Lecture 3: Analysis of Algorithms II
Algorithms Lecture 3: Analysis of Algorithms II
 
PMP Lecture 1: Introduction to Project Management
PMP Lecture 1: Introduction to Project ManagementPMP Lecture 1: Introduction to Project Management
PMP Lecture 1: Introduction to Project Management
 
Algorithms Lecture 4: Sorting Algorithms I
Algorithms Lecture 4: Sorting Algorithms IAlgorithms Lecture 4: Sorting Algorithms I
Algorithms Lecture 4: Sorting Algorithms I
 
Computer Security Lecture 7: RSA
Computer Security Lecture 7: RSAComputer Security Lecture 7: RSA
Computer Security Lecture 7: RSA
 
Algorithms Lecture 2: Analysis of Algorithms I
Algorithms Lecture 2: Analysis of Algorithms IAlgorithms Lecture 2: Analysis of Algorithms I
Algorithms Lecture 2: Analysis of Algorithms I
 
Algorithms Lecture 5: Sorting Algorithms II
Algorithms Lecture 5: Sorting Algorithms IIAlgorithms Lecture 5: Sorting Algorithms II
Algorithms Lecture 5: Sorting Algorithms II
 
Computer Security Lecture 5: Simplified Advanced Encryption Standard
Computer Security Lecture 5: Simplified Advanced Encryption StandardComputer Security Lecture 5: Simplified Advanced Encryption Standard
Computer Security Lecture 5: Simplified Advanced Encryption Standard
 
Deep Learning - Overview of my work II
Deep Learning - Overview of my work IIDeep Learning - Overview of my work II
Deep Learning - Overview of my work II
 
Intro. to prog. c++
Intro. to prog. c++Intro. to prog. c++
Intro. to prog. c++
 
Intro to C++ - language
Intro to C++ - languageIntro to C++ - language
Intro to C++ - language
 
Slideshare ppt
Slideshare pptSlideshare ppt
Slideshare ppt
 

Similar to C++ Programming Language

Cs1123 4 variables_constants
Cs1123 4 variables_constantsCs1123 4 variables_constants
Cs1123 4 variables_constantsTAlha MAlik
 
C_BASICS FOR C PROGRAMMER WITH SRIVATHS P
C_BASICS FOR C PROGRAMMER WITH  SRIVATHS PC_BASICS FOR C PROGRAMMER WITH  SRIVATHS P
C_BASICS FOR C PROGRAMMER WITH SRIVATHS Pamankr1234am
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAAiman Hud
 
Lab 4 reading material formatted io and arithmetic expressions
Lab 4 reading material formatted io and arithmetic expressionsLab 4 reading material formatted io and arithmetic expressions
Lab 4 reading material formatted io and arithmetic expressionsAksharVaish2
 
CPP Language Basics - Reference
CPP Language Basics - ReferenceCPP Language Basics - Reference
CPP Language Basics - ReferenceMohammed Sikander
 
Introduction to C++ lecture ************
Introduction to C++ lecture ************Introduction to C++ lecture ************
Introduction to C++ lecture ************Emad Helal
 
Learning C++ - Introduction to c++ programming 1
Learning C++ - Introduction to c++ programming 1Learning C++ - Introduction to c++ programming 1
Learning C++ - Introduction to c++ programming 1Ali Aminian
 
Few Operator used in c++
Few Operator used in c++Few Operator used in c++
Few Operator used in c++sunny khan
 
C++ Programming.pdf
C++ Programming.pdfC++ Programming.pdf
C++ Programming.pdfMrRSmey
 

Similar to C++ Programming Language (20)

Cs1123 4 variables_constants
Cs1123 4 variables_constantsCs1123 4 variables_constants
Cs1123 4 variables_constants
 
C_BASICS FOR C PROGRAMMER WITH SRIVATHS P
C_BASICS FOR C PROGRAMMER WITH  SRIVATHS PC_BASICS FOR C PROGRAMMER WITH  SRIVATHS P
C_BASICS FOR C PROGRAMMER WITH SRIVATHS P
 
#Code2 create c++ for beginners
#Code2 create  c++ for beginners #Code2 create  c++ for beginners
#Code2 create c++ for beginners
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
Lecture1
Lecture1Lecture1
Lecture1
 
Lab 4 reading material formatted io and arithmetic expressions
Lab 4 reading material formatted io and arithmetic expressionsLab 4 reading material formatted io and arithmetic expressions
Lab 4 reading material formatted io and arithmetic expressions
 
CP 04.pptx
CP 04.pptxCP 04.pptx
CP 04.pptx
 
6 operators-in-c
6 operators-in-c6 operators-in-c
6 operators-in-c
 
6 operators-in-c
6 operators-in-c6 operators-in-c
6 operators-in-c
 
C++
C++C++
C++
 
CPP Language Basics - Reference
CPP Language Basics - ReferenceCPP Language Basics - Reference
CPP Language Basics - Reference
 
3.Loops_conditionals.pdf
3.Loops_conditionals.pdf3.Loops_conditionals.pdf
3.Loops_conditionals.pdf
 
Introduction to C++ lecture ************
Introduction to C++ lecture ************Introduction to C++ lecture ************
Introduction to C++ lecture ************
 
Learning C++ - Introduction to c++ programming 1
Learning C++ - Introduction to c++ programming 1Learning C++ - Introduction to c++ programming 1
Learning C++ - Introduction to c++ programming 1
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
Week7a.pptx
Week7a.pptxWeek7a.pptx
Week7a.pptx
 
Few Operator used in c++
Few Operator used in c++Few Operator used in c++
Few Operator used in c++
 
C++ Programming.pdf
C++ Programming.pdfC++ Programming.pdf
C++ Programming.pdf
 
901131 examples
901131 examples901131 examples
901131 examples
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
 

More from Mohamed Loey

Lecture 6: Deep Learning Applications
Lecture 6: Deep Learning ApplicationsLecture 6: Deep Learning Applications
Lecture 6: Deep Learning ApplicationsMohamed Loey
 
Lecture 5: Convolutional Neural Network Models
Lecture 5: Convolutional Neural Network ModelsLecture 5: Convolutional Neural Network Models
Lecture 5: Convolutional Neural Network ModelsMohamed Loey
 
Lecture 4: Deep Learning Frameworks
Lecture 4: Deep Learning FrameworksLecture 4: Deep Learning Frameworks
Lecture 4: Deep Learning FrameworksMohamed Loey
 
Lecture 4: How it Works: Convolutional Neural Networks
Lecture 4: How it Works: Convolutional Neural NetworksLecture 4: How it Works: Convolutional Neural Networks
Lecture 4: How it Works: Convolutional Neural NetworksMohamed Loey
 
Lecture 3: Convolutional Neural Networks
Lecture 3: Convolutional Neural NetworksLecture 3: Convolutional Neural Networks
Lecture 3: Convolutional Neural NetworksMohamed Loey
 
Lecture 2: Artificial Neural Network
Lecture 2: Artificial Neural NetworkLecture 2: Artificial Neural Network
Lecture 2: Artificial Neural NetworkMohamed Loey
 
Lecture 1: Deep Learning for Computer Vision
Lecture 1: Deep Learning for Computer VisionLecture 1: Deep Learning for Computer Vision
Lecture 1: Deep Learning for Computer VisionMohamed Loey
 
Design of an Intelligent System for Improving Classification of Cancer Diseases
Design of an Intelligent System for Improving Classification of Cancer DiseasesDesign of an Intelligent System for Improving Classification of Cancer Diseases
Design of an Intelligent System for Improving Classification of Cancer DiseasesMohamed Loey
 
Computer Security - CCNA Security - Lecture 2
Computer Security - CCNA Security - Lecture 2Computer Security - CCNA Security - Lecture 2
Computer Security - CCNA Security - Lecture 2Mohamed Loey
 
Computer Security - CCNA Security - Lecture 1
Computer Security - CCNA Security - Lecture 1Computer Security - CCNA Security - Lecture 1
Computer Security - CCNA Security - Lecture 1Mohamed Loey
 
Algorithms Lecture 8: Pattern Algorithms
Algorithms Lecture 8: Pattern AlgorithmsAlgorithms Lecture 8: Pattern Algorithms
Algorithms Lecture 8: Pattern AlgorithmsMohamed Loey
 
Algorithms Lecture 7: Graph Algorithms
Algorithms Lecture 7: Graph AlgorithmsAlgorithms Lecture 7: Graph Algorithms
Algorithms Lecture 7: Graph AlgorithmsMohamed Loey
 
Algorithms Lecture 6: Searching Algorithms
Algorithms Lecture 6: Searching AlgorithmsAlgorithms Lecture 6: Searching Algorithms
Algorithms Lecture 6: Searching AlgorithmsMohamed Loey
 
Algorithms Lecture 1: Introduction to Algorithms
Algorithms Lecture 1: Introduction to AlgorithmsAlgorithms Lecture 1: Introduction to Algorithms
Algorithms Lecture 1: Introduction to AlgorithmsMohamed Loey
 
Computer Security Lecture 4.1: DES Supplementary Material
Computer Security Lecture 4.1: DES Supplementary MaterialComputer Security Lecture 4.1: DES Supplementary Material
Computer Security Lecture 4.1: DES Supplementary MaterialMohamed Loey
 
PMP Lecture 4: Project Integration Management
PMP Lecture 4: Project Integration ManagementPMP Lecture 4: Project Integration Management
PMP Lecture 4: Project Integration ManagementMohamed Loey
 
Computer Security Lecture 4: Block Ciphers and the Data Encryption Standard
Computer Security Lecture 4: Block Ciphers and the Data Encryption StandardComputer Security Lecture 4: Block Ciphers and the Data Encryption Standard
Computer Security Lecture 4: Block Ciphers and the Data Encryption StandardMohamed Loey
 
Computer Security Lecture 3: Classical Encryption Techniques 2
Computer Security Lecture 3: Classical Encryption Techniques 2Computer Security Lecture 3: Classical Encryption Techniques 2
Computer Security Lecture 3: Classical Encryption Techniques 2Mohamed Loey
 
Computer Security Lecture 2: Classical Encryption Techniques 1
Computer Security Lecture 2: Classical Encryption Techniques 1Computer Security Lecture 2: Classical Encryption Techniques 1
Computer Security Lecture 2: Classical Encryption Techniques 1Mohamed Loey
 
Computer Security Lecture 1: Overview
Computer Security Lecture 1: OverviewComputer Security Lecture 1: Overview
Computer Security Lecture 1: OverviewMohamed Loey
 

More from Mohamed Loey (20)

Lecture 6: Deep Learning Applications
Lecture 6: Deep Learning ApplicationsLecture 6: Deep Learning Applications
Lecture 6: Deep Learning Applications
 
Lecture 5: Convolutional Neural Network Models
Lecture 5: Convolutional Neural Network ModelsLecture 5: Convolutional Neural Network Models
Lecture 5: Convolutional Neural Network Models
 
Lecture 4: Deep Learning Frameworks
Lecture 4: Deep Learning FrameworksLecture 4: Deep Learning Frameworks
Lecture 4: Deep Learning Frameworks
 
Lecture 4: How it Works: Convolutional Neural Networks
Lecture 4: How it Works: Convolutional Neural NetworksLecture 4: How it Works: Convolutional Neural Networks
Lecture 4: How it Works: Convolutional Neural Networks
 
Lecture 3: Convolutional Neural Networks
Lecture 3: Convolutional Neural NetworksLecture 3: Convolutional Neural Networks
Lecture 3: Convolutional Neural Networks
 
Lecture 2: Artificial Neural Network
Lecture 2: Artificial Neural NetworkLecture 2: Artificial Neural Network
Lecture 2: Artificial Neural Network
 
Lecture 1: Deep Learning for Computer Vision
Lecture 1: Deep Learning for Computer VisionLecture 1: Deep Learning for Computer Vision
Lecture 1: Deep Learning for Computer Vision
 
Design of an Intelligent System for Improving Classification of Cancer Diseases
Design of an Intelligent System for Improving Classification of Cancer DiseasesDesign of an Intelligent System for Improving Classification of Cancer Diseases
Design of an Intelligent System for Improving Classification of Cancer Diseases
 
Computer Security - CCNA Security - Lecture 2
Computer Security - CCNA Security - Lecture 2Computer Security - CCNA Security - Lecture 2
Computer Security - CCNA Security - Lecture 2
 
Computer Security - CCNA Security - Lecture 1
Computer Security - CCNA Security - Lecture 1Computer Security - CCNA Security - Lecture 1
Computer Security - CCNA Security - Lecture 1
 
Algorithms Lecture 8: Pattern Algorithms
Algorithms Lecture 8: Pattern AlgorithmsAlgorithms Lecture 8: Pattern Algorithms
Algorithms Lecture 8: Pattern Algorithms
 
Algorithms Lecture 7: Graph Algorithms
Algorithms Lecture 7: Graph AlgorithmsAlgorithms Lecture 7: Graph Algorithms
Algorithms Lecture 7: Graph Algorithms
 
Algorithms Lecture 6: Searching Algorithms
Algorithms Lecture 6: Searching AlgorithmsAlgorithms Lecture 6: Searching Algorithms
Algorithms Lecture 6: Searching Algorithms
 
Algorithms Lecture 1: Introduction to Algorithms
Algorithms Lecture 1: Introduction to AlgorithmsAlgorithms Lecture 1: Introduction to Algorithms
Algorithms Lecture 1: Introduction to Algorithms
 
Computer Security Lecture 4.1: DES Supplementary Material
Computer Security Lecture 4.1: DES Supplementary MaterialComputer Security Lecture 4.1: DES Supplementary Material
Computer Security Lecture 4.1: DES Supplementary Material
 
PMP Lecture 4: Project Integration Management
PMP Lecture 4: Project Integration ManagementPMP Lecture 4: Project Integration Management
PMP Lecture 4: Project Integration Management
 
Computer Security Lecture 4: Block Ciphers and the Data Encryption Standard
Computer Security Lecture 4: Block Ciphers and the Data Encryption StandardComputer Security Lecture 4: Block Ciphers and the Data Encryption Standard
Computer Security Lecture 4: Block Ciphers and the Data Encryption Standard
 
Computer Security Lecture 3: Classical Encryption Techniques 2
Computer Security Lecture 3: Classical Encryption Techniques 2Computer Security Lecture 3: Classical Encryption Techniques 2
Computer Security Lecture 3: Classical Encryption Techniques 2
 
Computer Security Lecture 2: Classical Encryption Techniques 1
Computer Security Lecture 2: Classical Encryption Techniques 1Computer Security Lecture 2: Classical Encryption Techniques 1
Computer Security Lecture 2: Classical Encryption Techniques 1
 
Computer Security Lecture 1: Overview
Computer Security Lecture 1: OverviewComputer Security Lecture 1: Overview
Computer Security Lecture 1: Overview
 

Recently uploaded

ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsManeerUddin
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxleah joy valeriano
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 

Recently uploaded (20)

FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture hons
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 

C++ Programming Language