Lecture 2 Write Your First Program in C++
Lecture 2 Write Your First Program in C++
Frst freoram
goting started M.E formot
plony) CNCtable
/1
Jorvmot GBinay
Lang
b-2
Snew line or
ent"
Same
inside
memorry +0 to end ire/
state - mont
Schac eh -
ch
emoy
1 bte 8 bit
True 1
False O
float
loat 4 =12 ;
8 bate
double doublo d = 133; |1.23
Vaniabb Nae
abe 1ab)D
ABC abl
A1
A_1
4yte
0000 o0 00 1000
32 bi
jnt a=5 101
3bit O000 O000 O000 ol01
-ve numbae?)
i byte
(o/) 8bil- ch
32 bi4 int )
max
min = 0
aha ch >i byte ’8it
/g1< max
Omyn
123 45G
last bit a int
Valu tore
chat
nums. oute storod
Hoa vogalve
First bit nclicate e
Ly ve 0
111| 111 O0
int a - 5
print a-?(oploy
1111 1111 111 10 lL
scomp: O000 O000 O000 O90000
-(2)
>dcfault
int = 1, -
|O...
Sunsgned int -2
Opanatons (% modlelo
Arithmaie
’0. 4
o.40
lool/n Fbat
doublecbuble
Ralational cparators
a=3
b= 4
asb
a<=b
int a =3;
vEnt
25| 6 t|| 80
pt 'normol'.
eanot of a
Bilise opariatos
Loancd
50mpilation
1st prgram
’ Líine by ine ouplaiakon
’Data ypes/Vamiolles
practhee
note