C++ in Urdu
C++ in Urdu
C++ in Urdu
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
1).'-'L
J'l 'f-!J~r &R~LJ1 ;£~ J. .fJ,t.:~ib t-S C++IJ! ~
-v.! J~L)P(Ii
s
ok
2)......,L
&R;v.:zui~-r J~A,i.w?c+
bo
v.rjJ1l:)~
d
3)......,L
-Lv!'~AJ}:t."r
an
rs
. 4;?.....,L
pe
.~JI};'if!-Lu:(v£t/,{"r1
pa
_('-)ft~LP":l ~ y!f
. .
it
Bs
6/.'-'L
J!.{r"/~';1fi-IALj#
-ct~/ ~ ., ----,
7_~, ft. ·• . •
- L~?v!'-.£,J{5rlfstc+
•
[\lUlCK START SERIES
•
C++
s
ok
bo
d
an
rs
pe
pa
•
st
pa
it
Bs
s
ok
bo
~'
•
,,.;·,, an
d
rs
pe
rcL~JI.<-
pa
~
~ •;. mlq·,{ ' f"'£
J_,bt.f~ • •
"':"'CJ:' -I.)!'?=~" • ("" "' :. •
I l..f?v! c;;rc' ..£.1..1,{
f.": I -" . f
~Jiq·I H" . f"'£
5 '- ( ';"'I('
""
s
ok
J~ J'('t) ~.:-L}vJ)Y V:'-.~L,;{/()tfivou (~),J'vf.r
bo
';"TV:v-7J)~cr.L&R,t2£Iu!
vr.t-f~,V:7!J"IL(')}Y;{ ;f.~,t
d
an _,JLT-v..I.__Lf
v: C++ v: (;)t:-f~ [ P-JI, Lr. J~l OJ~) ~ ~~v: ~ ~' ~- vR7- ;j.~,J J
rs
v. cf;/v• -v.r ~ ;fvY(v."-A L i Rv,L .Yo=..r-r-"' .;>! J'v• + k" vir (.,v..;'
pe
vV"(L ~ -: r.;: "--'L. L 1.11L 1.1) .. ~ -: (/-,f.,u .. ,f.J'[ Rv• ~ -: Uu..r if.J"?J::ul..-...
0
it
fvr. t-f~ V: "Practice makes a man perfect" f (t, IJt Z....t 7- tf-.:,?~IL
Bs
t,)Yi
dJt,j.f() .J{ ~
M C.S, B.C.S, E-Commerce
zaki352@ hotmail.com
s
ok
bo
L vH r.)'!c.- V: d'-7- lS' .1.1 (;) ~ ..,::;J (p S~.: 1,-1 ~ .fo .1JI uJ? J,_;! i:;;-J ~; 1.-:.,IY,_;-1
d
.JJIJJ,-L '":"CJ!J'I.;JJ V~Uv (~1,_;- L U.yJ)_JJlh.~fou! ~.1SJ i:;;-IJYc.- .t~
!JI'.)_}c-:,f~vAL(;b4
an /,-/(Concepts) uY(Ltk'.£1),~
s
-v.n(.;)?'v!; r.>~;J,I_tuelP! . .. .. . . ~x '=--'/ .~_,bLfV:
er
' ':' ~
-lJ.n(.;)?'~4- ('":~1
p
st
LS'.~)t;J/( ~J{' •
Bs
~;.{,!r • (;)l;..i''c"r •
~.JUVIi • (fit;Jt?) •
visit ourdJIJj..frJ.;Jr?.:
website: www.pupapersbook.Blogspot.com
M.C.S, B.C.S, E-Commerce
Upload by: Shahzad khan Bsit past papers and books
t
.. 1~
.
13 ................................................................... ~ 411111tfo. ~ ~"' •
15 ............................................................J&&i" ~J
16 ........................................................................................................ ~71/'Jd
C++ m
...
s
17 ................................................................................................................ /P- ..
ok
17 ....................................................................................................... b~rJ C++ .,.J
bo
• 18 ........................................................................................... u;(/.!J~k- C++ .-
18 ...............................................................................................J~t,;i(71hC-+ .-J
d
18 .................................................................................................... ~(lh{C+ .-
an
21 ............................................................................................................ .f.'-11..5;(' ..
21 .............................................................................................. ;/~-l.,jif ..
rs
21 ......................................................................................................... ?-fJur- -
,
pe
22 ............................................................................................................ ~l:(Cj ..
pa
23 ......................................................................................................... ~lCJint .-
24 ..................................................................................................... ~i(C,;.}-f' ) ..
, . ~.
st
25 ............................................................................................ ~lC)I{.t=P .-
25 .............................................................................................. ;):./IArithmJt..> .-
pa
27 ......................................................................................................... ;f.<TL~-! .-
Bs
29 ....................................................................................................... ;.<rJ*~ ..
30 ......................................................................................................... t.:)5'?;~ -
32 ........................................................................................................~t.:JI)' .-
33 .................................................................................................................. ,y-- -
37 • • • • • • • • • •.J;'C#-~ .• :. ~ •• •• ' .,-~ . -~ • ."':.~ ~~2
J J.,r-
38 ................................................................................................. ~ j,J' /··f' -
38 ........................................................................................................ ~if ..
39 ................................................................................................ ~els-if .-
visit our website: www.pupapersbook.Blogspot.com
Upload by: Shahzad khan Bsit past papers and books
101
C++
. .
41 ........................................................................................... ~Nestd-lf
42 ................................................................................................ ~SWitCh
. .
....
.-J
.• "" (.>
45 ....................................................................................................... .~;- 1~.,:· -
46 ..................................................................................................... ":(fi.-1tJ~ -
48 .................................................................................................................. v:;,. .,_J
s
ok
50 ................................................................................................ ";"}Nested-for .-J
52 .......................................................................................................... .....,}while -
bo
?
54 ...................................................................................................,~.[/
d
.,_J
an
54 ................................ ,........................................................... ~contiue
•
•
.-
?.;~c)}-1 -
st
60 ...................................................................................................
pa
68 ................................................................................................... J-.~Xl;: .-
it
l.:)~f-1
Bs
70 ............................................................................................................ -
72 .................................................................................................... J"j}.JJJI? .-
73 .................................................................................................... ~hl.!); -
75 ................................................................................................................. ~ -
85 ................................................................................... ~
86 ................................................................................................................... ~.1
~ ,jo!j, m
-
89 ........................................................................................................ 0/Linear .-
90 .................................................................................................. ......... o/Jf~ -
91 ..................................................................................................... ~) ~ ;1~. -
visit our website: www.pupapersbook.Blogspot.com
111
Upload by: Shahzad khan Bsit past papers and books
9 4 ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo '-.;/~} ~J r}- ....,
98oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooof;.- ....
113 ..............................:................................................................ j~
s
1 1 4 . . ooooooooooooooooooooooooooooooooooooooooooooooooOOOoooooooooooooooooooooooooo.oooooooooooooooooooooooooo.ooo..J.;(.,i ....
ok
1 1 5 . . . . . . . oooooooooooooooooooooooooooooOooooooooooooooOOoOooooooooooooooooooooo.ooooooooooooooooooooooooooooooooo;J).J ....
bo
1 1 8 .......................... o .. ~ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 0000000 00000oOOo :CJI~/ Y'i ....
119 OoOoooooooooooOooooooOOoOooooooooooooooOoOoooOOooOOooooooooooooooooooooooooooooooooooooOOOOooOoooo tf(.;)}:J~ ....
d
Y'to- .... :.(.1
an
121 .................. o ............ o .............................................. o ................ o .......
oO.0}:-{1~
rs
125 ... ....
0oO.}:-{1~;
pe
m
129.o•oooooOOOOOoooooooooOooooooooooooooooooooooooooooooooooooooooooooooooOOoooooooooooooooooooOooooooooooooooooooo , ; : - - ....
st
134 ............................................................................. ~- ~ ~
pa
135.oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo;oooo?oooooo;,;(',;- ....
YltAJ- ....
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
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.! £. fiJL -;f ~Jiwdth, height, depth :Jr·IIJt,JIJL(ivC('/,{J'
- v.r2CJc-~,fl' z:.v-~;rJLi
.Y Y-!6.nr J ecJ}-.~ 2 . 2o /.J ~
//header files
int volume (.);
void values ( int, int);
s
main(
ok
bo
clrscr( ) i
int numberl;
d
int number2;
int answer; an
char ch;
rs
do
pe
answer=volume( ) ;
pa
cin >>ch;
Bs
while(ch=='y': :ch=='y' );
cout <<"End of Program";
getch( ) ;
number1 = r;
number2 h;
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
s
ok
bo
d
an
rs
pe
pa
st
pa
it
Bs
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