You are on page 1of 1

chapter 1

#include <iostream> = use liberary it`s name (iostream)


using namespace std; = inputs and outputs ( cout & cin )

(cout)

cout<< = print
new line : "\n" or <<endl
space= \t

(variables)

(data type) + (name) ;

int x=5;
lw htyna (const) abl variable byt7wl l sabt ;

const int x=5; ( x tool 3mrha htb2a b 5 mynf3sh a3`erha tani )

data type :
numbers: strings:
boolean:
int : intgers ( 4 bite ) char: ‫حرف‬ char c='c';
bool b= true or false ;
float: decimals ( 4 bite ) string : ‫ كلمه‬string c="c"
double: decimals ( 8 bite )

#mynfa3sh name yb2a awloo ramz ela _#

(arthmetic)

awlwyat multple w division w sum w subtract


c++= c+1
c--= c-1
#include <cmath>
pow (base ,2)
pow(2,3)= 2^3
sqrt(25)= 5 == square root

(prefix
and postfix)

prefix postfix
++z z++
z=z+1 z=z+1

You might also like