c++

Embed Size (px)

DESCRIPTION

THIS MAY HELPP U DUDE

Citation preview

  • 1. ######=Eu#######Ou#Eu##############$###########Du######N###iK# #3############## @new c++08.doc#c#s.doc#g#Visual.Basic.2010.Mar.2010.pdf#d Database ApplicationsComprehensive.pdf#s_files#d from over 100 stock photo companies_files#|###|#####R|

2. ################$###T| 3. ################### ###Wh##W|@############ ###NEWC__~1.DOC##%###U_|j!|#_|##%#########h## #########U|##|###############################################,###|##|######## ###@####`|]|@##############################################################################H####################[8######X|####t##t##t############|####[8#########[|####%#=|j|`|#%#####@##################@################################# 4. ###R|4################L###T|4#####P########|E###x#########(##h##l###|##|##|{#|#|#### ##x##j!|#_|/%########### #########U|##|####D###########################################,#####|######## ###h#####`|]|@###########################################################################A~#####A~##############[8######X|##########|##|##$#####g|### ##|######`###|@#|#|)@|#@|#### ##x##0######w###################0#2#######d########0###E######0###########$######################## 5. ####|##|[8####x## 6. ###| ## ########|E###x####### ##x##B|###|##|##|{#|#|#################q[8####q0#######x#q#?|0#2################.##P#I#P#E##D#A#V# #R#P#C##S#E#R#V#I#C#E####################################################################################################################R|###################T|##|#|#################(######################hC|###########|#######@#|#|)@|#@|#############4## #########B#################################E###################P## 7. ###H##D###### 8. ######N####|########|####x###################|##|##|{#|#|=##=#############$###########@|###############P######T########|###########=##,## ###p###|##|##|{#|#| |#######################################################################################################################################################################################################################################################################################|=#############################################################|E###x####### ############|#########|E###x####### #####|4###|D########|E###x####### #####X##`###|##|##|{#|#|##########8##########`##|###|## 9. #|=########|=## |####5|###$######H|###########@############## ###### ##########`########################|#|###############@##(# #############|#|###############l##(# ###########|Ou###@###@###@#`########e#|##@#############|Ou###|####|#########|##|##|^|#|x|############jH#Pu####2|##########2|####z2|########Ou#########|########Ou#############|##########B| ####@#|#|B|B|>###(################## 10. #2########@|####### ####j|L|x|##################Eu##########$||?############################@n=w##"#H#=w##p#"###P###########D###A#p#p#a#t#i#o#n#l#e###M#F#p#p#l#i#c########?#######?########;#################=##|#$|#######Pu#####F##########@##"#n=w####H#=w#######p#"###P#######################D###A#p#p#######a#t#i#o#n#######l#e###M#F#######p#p#l#i#c##############?#############?##########,###C########,###C##########4####{pw#######p#"###################H8w####8##BwD###H8wD###d#########d#####Bwd##########p#"#############o|##L##,######x>#####C#:##D#o#c#u#m#e#n#t#s##a#n#d##S#e#t#t#i#n#g#s##A#d#m#i#n#i#s#t#r#a#t#o#r##>,######Cw################|Cw|########Ou#Ou#####Ou##Eu###########=###|U|#######Du#P##############=##P####C++D##Du#P####### ###L#iK############## @C++ Hazrat Ali NasarNots#hm#eference.May.2008.pdf## ###`###W|##########0## #######%##%#t##U_|########|E###x####### ##########|##|##|{#|#|####R|D###################T|D################### ###Wh##W|x######C__HAZ~1#TXT#####%#T#%#,##U_|j!|#_|##%########## ###########U|##|####T## ############################ languagecalled C with Classes. Rick Mascitti suggested the name C++.Event YearDescriptionC with Classes 1979-1983 Adding classes with a preprocessorEvolutionof C++ 1882-1985 First Commercial releaseRelease 2.0 1985-1988 Early CommercialuseGrowth in Use 1987 Large Scale UseStandardization 1988Basic Feature of C++1.It is the super set/extension of C language, it supports almost every feature ofC language, additionally it has itsown distinguish features.2. C++ is a general-purpose object oriented programming language.3. C++ is case sensitive language.4. C++ is a language of few words.5. Almost every statement is terminated withsemicolon.6. C++ is statement-oriented language.7. Every C++ language programhas a extension .cpp or .cxx or .C8. Require explicit inclusion of relatedheader file.Advance Features of C++1. Classes and Objects.2. Derived Classes.3.Private/public access control.4. Constructors and Destructors.5. Friend classes.6. Inline function.7. Default argument.8. Overloading of operators..2Major StepsIn C++ Program DevelopmentC++ programs typically go through several phases to beexecuted. Editing. The first phase consists of editing a file. This isaccomplished with an editor program. The programmertypes a C++ program with theeditor and makes the correction if necessary. The program is then often storedonsecondary storage device such as a disk. Compile. In this phase theprogrammer gives the command to compile the program. The compiler translates theC++ program, into object code. In C++ system, a Preprocessor program executesautomatically before thecompilers translation phase begins. The C++preprocessor obeys special commands called preprocessordirectives whichindicates that certain manipulation usually are to be performed on the programbefore thecompilation.Linking. The file generated by the compiler is not a pureexecutable file so it cannot be executed by the computedirectly. Rather specialprogram called the Linker is required that link the intermediate file withlibrary routinesstored in a files with the .lib extension. After linking theintermediate file the linker generate the executable file(.exe) that can beexecute by computer. Executing After the successful compilation and linking ofprogram we receive the executable file that can beexecuted by the user.Thelayout/Structure of C++ ProgramsThe general form of a C++ program is as followspreprocessor directivesglobal declarationsclass definitionmain() {localvariables to function main ;statements associated with function main ;}f1(){local variables to function1 ;Statements associated with function1;}f2(){localvariables to function f2 ;statements associated with function 2 ;}BASICCOMPONENTS OF C++ PROGAMVARIABLE Variable may be the most fundamental aspect ofany computer language. A variable is a space in thecomputers memory set asidefor a certain kind of data and given a name for easy reference. Variables areused so thatthe same space in memory can hold different values at differenttimes. Before using the variable it is necessary tocreate it with the propercommand.There are several issues associated with the variable:1. Name/Length ofvariable (Naming rules).2. Type of variables.3. How to create.4. How to take 11. input and output in the variable.Name/Length of variable (Naming rules) Firstcharacter of the variable must be alphabet (a to z| A to Z) or underscore, whilethe remaining may bedigits, alphabet or underscore. No blank is allowed withina variable name. In some compiler the length of the variable is 8 characters,some compilers allow variable names whoselength could be up to 40 or 256character, but the latest compiler impose no restriction on the length ofthevariable name.Example of Valid Variable Name:Age fname _abc _123 age123Exampleof Invalid Variable Name:9num age$.3Type of variables While declaring thevariable it is necessary to specify its type.DATA TYPE DESCRIPTION SIZE RANGEsigned int Store integer values with nofractional part2 bytes -32768 to32768unsigned int Store integer values with nofractional part2 bytes 0 to 65535singedlong Store large integer values with nofractional part4 bytes -2147483848to2147483647unsigned longlongStore large integer values with nofractional part4bytes 0 to4294967295float Store float value 4 bytes -3.4e38 to3.4e387 mantissadouble Store large float value 8bytes-1.7e308 to1.7e30815 mantissalong doubleStore very large float value 10bytes-3.4e4932 to+1.1e493219 mantissachar Storesingle quote enclosed withinthe quotes1 byte----Creating Variable int age; intage = 5; float profit = 78.56; char grade = A; int a,b,c; int a = 5, b =7, c = 9;Displaying the content of VariableThe identifier cout is used fordisplaying the value of variable and other messages. cout is actually an object.It ispredefined in C++ to correspond to the standard output stream. A stream isa system that refers to a flow of data. Thestandard output stream normally flowsto the screen display. With cout and operator B " b);cout U##IU##fU##uU##U##U##U##U##U###V##,V##@V##fV##kV##V##V##V##V###W##5W##WW##`W##hW##pW##W##0X##X##X########################################################################################################################################################################################################################################################################################################################################################gdvm###7$#8$#H$#gd#####V##V##V##V##pW##tW##0X##3X##X##X##zY##}Y##Y##Y##Y##Y##Y##[##[##[##[##1##@##N##h###########]###]##K]##T]##]##]##^###^##D^##I^##q^##t^##^##^##^###`###`##[`##g`##i`##q`##`##`##`##`##`##`##a###a##8a##Aa##ua##a##a##a##a##a##&b##Nb##Ub##bb##b##b#######h 96. ?##h###CJ##OJ##QJ##^J###h 97. ?##h###5#CJ##OJ##QJ###^J##aJ### #h 98. ?##h###CJ##OJ##QJ##^J##aJ#####h 99. ?##h###6#OJ##QJ##]#^J### 100. #h 101. ?##h###GX##XY##iY##}Y##Y##Y##Y##Y##Y##Y##Y##Y###Z###Z##@Z##KZ##pZ##Z##Z##Z##Z##Z##[##8[##^[##[##[##[##[############################################################################################################################################################################################################################################################################################################################################################## ##7$#8$#H$#gd#####[##[##[##[##[##########1##@##N##h###########]###]##@]##I]##K]##]##]##]##]##]##]##]##]################################################################################################################################################################################################################################################################################################################################################################7$#8$#H$#gd#####]##^###^##D^##I^##f^##t^##^###_###_##_##_##_###`###`##!`##*`##4`##O`##[`##g`##i`##q`##`##`##`##`##`##`############################################################################################################################################################################################################################################################################################################################################################## ##7$#8$#H$#gd#####`##`##`##`##a###a##1a##8a##Aa##ha##ja##sa##ua##a###b###b##&b##Nb##b##b###c###c##0c##@c##Bc##Yc##cc##c##c########################################################################################################################################################################################################################################################################################################################################################gdvm###7$#8$#H$#gd#####b##b##b##b##0c##@c##Bc##Yc##c##c##d##d###d##qd##d##d##d###e##$e##%e##&e##g##g##g##g##g##g##-g##g##Fh##wh##dk##mk##k##k##l##l##l##m##m##m##n##n##-n##n###o###o##Ao##Do##Oo##Xo##o##o###p###p##&p#####h 102. ?##h###OJ##QJ##^J### #h 103. ?##h###CJ##OJ##QJ##^J##aJ#####hvm## 104. #h 105. ?##h######h 106. ?##h###CJ##OJ##QJ##^J###,#h 107. ?##h###5#6#CJ##OJ##QJ###]#^J##aJ###h 108. ?##h###5#CJ##OJ##QJ###^J##aJ### #h 109. ?##h###CJ##OJ##QJ##^J##aJ##7c##c##c##c##c###d##d##Fd##]d##qd##d##d##d##d##d##d##d###e###e###e##&e##e###f##f##f##3g##g##g##g########################################################################################################################################################################################################################################################################################################################################################gdvm###7$#8$#H$#gd#####g##g##-g###h##Fh##lh##wh##h##Ai##i##i###j##j##j###k##dk##k##k##k##k##k##k##k###l###l##l##;l##Ll##l################################################################################################################################################################################################################################################################################################################################################################7$#8$#H$#gd#####l##l##l##l##l##l###m###m###m##7m##Cm##Lm##`m##bm##tm##m##m##m##m##m##m##m##m##m##nn##n##Oo##o##o########################################################################################################################################################################################################################################################################################################################################################gdvm###7$#8$#H$#gd#####o##o##o##o##o##o##o##o##o###p###p###p##&p##p###q##sq##q##q##q##q##q##q###r###r###r##)r##3r##>r##@r########################################################################################################################################################################################################################################################################################################################################################gdvm###7$#8$#H$#gd#####&p##p##p##eq##hq##sq##|q##q##q##Br##Er##Tr##Ur##Vr##_r##cr##us##s##s###t##&t##Qt##at##t##t##t##t##u##u##u##u##u##u##w##w##w##y##y##y##y##z##z##z##z##z###{##_{##h{##{##{##T|######hvm## 110. #h 111. ?##h#### 112. #h 113. ?##hvm##h 114. ?##h###6#CJ##OJ##QJ##]#^J##aJ###,#h 115. ?##h###5#6#CJ##OJ##QJ###]#^J##aJ####hvm#0J#####hvm##h###0J#####h 116. ?##h###CJ##OJ##QJ##^J###h 117. ?##h###5#CJ##OJ##QJ###^J##aJ### #h 118. ?##h###CJ##OJ##QJ##^J##aJ##2@r##Er##Ur##r##r##r###s###s##(s##4s##Ks##_s##us##s##s##s##s##s##s##s##s##s##s##s##s##&t##=t##Qt##at################################################################################################################################################################################################################################################################################################################################################################7$#8$#H$#gd#####at##ct##mt##wt##t##t##t##t##t##t##t##t##Hu##u##u##u##/v##fv##v###w##%w##w##w###x##}##R}##f}##z}##}## }##}##}##}################################################################################################################################################################################################################################################################################################################################################################7$#8$#H$#gd#####T|##]|##~|##|##|##|##|##|##|##|##i##l##u##v################## ######## ##r##t#######################################k####z############0##7##y#################h 119. ?##h###6#CJ##OJ##QJ##]#^J##aJ### #h 120. ?##h###CJ#OJ#QJ#^J#aJ#####hvm## 121. #h 122. ?##h######h 123. ?##h###CJ##OJ##QJ##^J### #h 124. ?##h###CJ##OJ##QJ##^J##aJ###h 125. ?##h###5#CJ##OJ##QJ###^J##aJ##=}###~##)~##[~##}~##~##~##~##~##~##~##)##3##C##l##############7##T##r########## ##################################################################################################################################################################################################################################################################################################################################################################7$#8$#H$#gd############# 126. #####!##E##^##g##l##v####R########r############# ########L###Z###e##################################################################################################################################################################################################################################################################################################################################################################################### ##7$#8$#H$#gd 216. ?# ##7$#8$#H$#gd#####6#&P##1h#:pfq`##/ =!h#"####$#%###### 217. #########################################################################################################################################################################################################################################################################################################################################################################################################################################################################^######################################################6###6###6###6###6###6###6###6###6###v###v###v###v###v###v###v###v###v###6###6###6###6###6###6###>###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6######6###6#######6###6###6###6###6###6###6###6######6###6###6###6###6###6###6###6###6###6###6###6###h###H###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6###6######6###2##############################0###@###P###`###p#############################2###(############0###@###P###`###p################################0###@###P###`###p################################0###@###P###`###p################################0###@###P###`###p################################0###@###P###`###p################################0###@###P###`###p#########8###X##############V###~#######_H##mH #nH#sH#tH #####@##`##@# 218. ###########N#o#r#m#a#l#########CJ##_H##aJ##mH #sH #tH #^##@####^# 219. ###Nk## #H#e#a#d#i#n#g# #1########$####@####Z# 227. ###Nk# ###T#i#t#l#e########$######>#t=.T####S; Z~#!#P9giC!####B ,;X=,I#2#U#WV#9$lk=#Aj#;#{AP79|s*Y#;# [MC#h#f]o{oY#=1k#yV#V5E8Vk+80X4D)!!#?*|fvu"xA@T_###q64)kuV7#t#%;i9s9x,-45xd8?#d/Y|t### 240. &LI#LJ`# -Gt/#####PK##########!###########theme/theme/_rels/themeManager.xml.relsM0#w#oo#8?$Q,#.ai#c21h##:qm@R#N;d`o7#gK(M&$R(.1r#JT8V"AHu} #|$b#{##P8#g/##]QAs#(#L#[#####PK##-#########!###########################[Content_Types].xmlPK##-#########!####6#################0###_rels/.relsPK##-#########!#ky#########################theme/theme/themeManager.xmlPK##-#########!#0C)#######################theme/theme/theme1.xmlPK##-#########!#######################theme/theme/_rels/themeManager.xml.relsPK##########]###########e### 241. ################ ## #.##=##F##V##b##&p##T|####X########t#######o###e###################################################################b###N###r###d###!##d%##a##,##/##C4###7##m9##;##>##3B##AE##G##tI##M##O##R###U##X##[##]##`##c##g##l##o##@r##at##x##:|##}########|##########t############h######h######W#######y##########*################]##+######%##B############D#####>############)######(########S"##e############################## ##############################################################################################################################################################################################################################################################8##################################@########################################0######(##### #####################################B#################S####################### ###?######################+R###########,R###########-R###########.R###########/R###########0R###########1R###########2R###########3R###########4R###########5R###########6R###########7R###########8R###########9R###########:R###########;R###########R###########?R###########@R###########AR#####################"######################K##K##^##3_########a##a##o#### 242. ## 243. ##g######################################################### ################ 244. ####################################################################!###(###(########################K##K##^##7_########k##z##z##########g####################################### ########## 245. ##############################################9#######*urn:schemas-microsoft-com:office:smarttags#State#9#######*urn:schemas-microsoft-com:office:smarttags#place#=#######*urn:schemas-microsoft-com:office:smarttagsPlaceName#=#######*urn:schemas-microsoft-com:office:smarttagsPlaceType#8### 246. ###*urn:schemas-microsoft-com:office:smarttags#City# 247. ###8x####################################################################### 248. ################################################################################################d###$######M###R###T###W###########a###d#################################.###2###t###x###O###S#################X###b###v###y#############################################################a###e###{###~###############: ##G ##u ##y ## ## ## ####"##"##"##"########G%##Q%##^%##e%##y%##|%##}%##%##%##%##%##%##%##%##%##%##%##%##%##%##%##%##%##%######I#L#N#S#####-####################M##AM##IM##MM##fM##hM##kM##qM##uM##yM##}M##M##M##M##M##M##M##M##M##M##M##M###N##N##5N##7N##@N##DN##kN##oN##N##N##Q##Q##Q##Q##Q##Q##Q##Q##Q##Q##Q##Q###R###R###R###R##@R##CR##KR##OR##pR##rR##uR##{R##R##R##R##R##R##R##R## R##R##R##R##R##R##R###S###S## S##"S##-S##/S##8S####B##D################)##/##3##7##X####o##z#######################################################################!##"##%##(##,##2##:##P##S##T##]##^##a##s##v################## 253. ##############)##-##1##Y####_##c##i##k######## ######8##?##L##V##d##g##j##m############ ###########################################################################################+##5##>##A##G##J##v##y##z########################q##x########################*##.##2##6##K##O##i##k##o##r##v##z##~################################################u#####################################:##D##X##[##_##c##F##I##############0##6######################(##,##0##4##h##k##u##y##}########################!##,##/-##D##J##x##}################################### ##5##;##j##o##~#####################4##;##V##Y##Z##]##_##b#####################################################################1##4##=##A##U##X##x##|##############S##X#################################8##;####A##b##f##j##n##|######################################!##,##X##`##a##j##{##~######@##C############)##0##D##G##Q##T##U##X##Z##`##d##h#############################8##;##H##L##q##t########-##############>##A##D##G##M##Q##r##u##w##|####################################)##,##;##>##V##Y##f##i##l##o##u##y##########################)##1##7##?##B##T##X##}############8##B##O##V##j##m##x##{##############################"##K##O###################*##.##0##5########################d##g######### 255. #####"##2##5##F##I##_##b##f##l######################################6##:##P##T##X####i##m###################################+##/##P##S#######6##:##@##E##c##h###############"####*##=##@##E##H##_##b################################-##0##:##=##F##L##T##W##j##n#########################+##.##D##G##K##Q##j##n######################################5##9##=##A##N##R##j##n##r##w################J##N##c##f##p##t##x##|######k##r#####################################A##H##################### #######$##+##6###########b###n###>###D### ## ##########J 259. ##L 260. ##Z 261. ## 262. ##)##.######/###M###### ##########f###q###u###}############b#########j###r######################################>###H###k###o###r###w#####################################################################0###:###X###`##############################################?## ?##?##?##?##?##?##?##?##?## 266. @###@###@###@###@###@##8@##;@##D@##F@##V@##X@##h@##l@##@##@###A###A##1A##5A##:A##AA##DA##HA##fA##hA##tA##vA##A##A##A##A##A##A###B###B##:B##BB##|B##B##B##B## 267. C###C##SC##[C##C##C##"D##*D##mD##qD##D##D##D##D##D##D##D##D##D##D##D##D##D##D##E##E##E##E##E##E##E##E##E##E##E##E##E##E##E###F###F##F##F###F##F##F##F##F###G###G###G###G##0G##3G##;G##BG##EG##IG##G##_G##iG##mG##G##G##G##G##G##G##G##G##G##G##G##G##G##G###H###H###H###H##H##H##H###I##rI##zI##I##I##I##I##I##I###J## J## 268. J###J###J###J##J##J##J##J##J##J##J##J##J##J###K###K###K##!K##1K##5K##FK##JK##K##`K##rK##vK##K##K##K##K##-K##K##K##K##K##K##K##K##VL##]L##L##L##L##L##L##L##L##L##L##L###M###M###M##!M##>M##AM##IM##MM##fM##hM##uM##yM##M##M##M##M##M##M##M##M##M##M###N##N##,N##0N##@N##DN##fN##jN##kN##oN##N##N###O###O##jO##oO##tO##vO##O##O##P##P##Q##Q##Q##Q##Q##Q##Q##Q##Q##Q###R###R###R###R##@R##CR##KR##OR##pR##rR##R##R##R##R##R## R##R##R##R##R##S###S##8S##g##Cg##g##g##g##g##g##g##g##g##g##g##g##g###h###h##h##h##h##h###i###i##bi##gi##i##i##i##i##i##i###j###j###j###j##)j##1j##3j##7j##[j##bj##uk##yk##k##k##k##k##k##k##k##k##k##k##k##k##k##k##Ql##Ul##cl##fl##ml##tl##wl##{l##l##l##l##l##l##l##l##l##l##l##Hm##Jm##/n##6n###o###o##o##-o###p###p##p##p##p##p##p##p##p##p##p##p##p##p##p##p###q###q##%q##,q##8q##:q##|q##q##q##q##q##q##q##q##q##q##q##q##cr##mr##r##r##Is##Ms##:t##x##Tx##[x##rx##yx##x##x##x##x##x##x## x##x##x##x##x##x##x##x###y###y##!y##"y##^y##dy##y##y##Rz##Xz##z##z##r{##w{###|##|##|##|##|##|###}###}##~###~##.~##6~##~##~########~########;##=##k##o######r##y##z####### #######0##5##y##~#######-########$##(##4####################)##0##3##7##J##O##X####}###############################K##U############################(##,##P##S##s##v##}############ ############L##U######2##:############## 270. ########*##-##1##R##Y##_##c##########2##;######(##0#### ########X####q##u############################## 271. ##$########6################################################# 272. ############*##.##8##