Академический Документы
Профессиональный Документы
Культура Документы
a bs tr a c t as ba s e bool br e a k byte ca se
c a tc h c ha r c he c k e d c la s s c ons t c ontinue de c im a l
moheman.tariq@gmail.com 1
اﻟﻤﺘﻐﻴﺮات ﻓﻲ اﻟﻠﻐﺔ
moheman.tariq@gmail.com 2
ﺗﺤﻮﻳﻞ اﻟﻤﺘﻐﻴﺮات
1 T o B o o lea n
2 T oB yte
3 T oChar
4 T o D a t eT im e
5 T o D ecim a l
6 T o D o u ble
7 T o In t 1 6
8 T o In t 3 2
9 T o In t 6 4
10 T oS byte
11 T o S in gle
12 T o S t r ing
C onve r ts a ty pe to a s tr ing.
moheman.tariq@gmail.com 3
ﺗﺤﻮﻳﻞ اﻟﻤﺘﻐﻴﺮات
13 T oT ype
14 T o UIn t 1 6
15 T o UIn t 3 2
16 T o UIn t 6 4
moheman.tariq@gmail.com 4
اﻟﻌﻤﻠﻴﺎت اﻟﺮﻳﺎﺿﻴﺔ
ﻋﻤﻠﻴﺎت اﻟﻤﻘﺎرﻧﺔ
moheman.tariq@gmail.com 5
اﻟﻌﻤﻠﻴﺎت اﻟﻤﻨﻄﻘﻴﺔ
&& C a lle d Logic a l A ND ope r a tor . If both the ope r a nds A & & B is fa ls e .
a r e non ze r o the n c ondition be c om e s tr ue .
moheman.tariq@gmail.com 6
ﺟﻤﻞ اﺗﺨﺎذ اﻟﻘﺮار
ﺟﻤﻞ اﻟﺸﺮﻃﻴﺔ
if(boolean_expression)
{
/* statement(s) will execute if the boolean expression is true */
}
if(boolean_expression)
{
/* statement(s) will execute if the boolean expression is true */
}
else
{
/* statement(s) will execute if the boolean expression is false */
}
if( boolean_expression 1)
{
/* Executes when the boolean expression 1 is true */
if(boolean_expression 2)
{
/* Executes when the boolean expression 2 is true */
}
}
moheman.tariq@gmail.com 7
ﺟﻤﻞ اﺗﺨﺎذ اﻟﻘﺮار
اﻟﻌﺎﻣﻞ
اﻻﻧﺘﻘﺎل
switch(expression) {
case constant-expression :
statement(s);
break; /* optional */
case constant-expression :
statement(s);
break; /* optional */
moheman.tariq@gmail.com 8
ﺟﻤﻞ اﻟﺘﻜﺮار
for ﺟﻤﻠﺔ
while ﺟﻤﻠﺔ
do
{
statement(s);
}while( condition );
break;
continue;
moheman.tariq@gmail.com 9