0% found this document useful (0 votes)
43 views23 pages

C++ Revisions Tour

detailed notes to revice c++

Uploaded by

Alpha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
43 views23 pages

C++ Revisions Tour

detailed notes to revice c++

Uploaded by

Alpha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 23
GY Rewsiong Tow’, ARR RAR Basivs Ors ghanaches el shelley > A-Z pay 7 2d sg 290-3 + Special symbols > space s—* [PV ODIC= <> SME tee 8 _ (orden) # 2 >= @ * ubike space > Slant space, Hamiaontal tee (>) > Lognidge Awan (et), Meusline , Saag Seed. * Othe Ghagacley > 256 ASG. chanacles: Aekens + “Whe males —_ individual unit in = —pxognam i kngwh aS __Iaken ___Keyuonds Wendi teas jLilesals , Poastoateys and BPe raters —_Keyunnds = _Dnis__avg._tws.ad) _ushiely_canyey au Seca meaning ts —Seequage Compsley . Mois the tame _ _qven by nest —Powsyin 2 nol _conkgin Special Chasracley , rol tlast wilh digd —, 08) & neseaved Kequosd } @ scanned with OKEN Scanner 7 \s- + this jane 1 dala _ihems ‘that Rast charge Mheisy wale dusting 4 Rueg9m aw i talege - cond tan t i) Chasacley - Cons fant AW) Roaking ~ Gonlarit ‘uy Stang - Vera! a lnleges -conslont + This “ane whole Humbeys without any Saaciianal pall s Decimal TG. > AW sequence of dig ~ not 3 Regan with 200s 7 + o = Tb. > A sequence of dg sland wer jess. + Beadecimals 10> A sequence of diqik Preceded by OK 9 TK enclosed _in__Single_aystes as in °2” Nate 1__non = gsaphical eas can be ~Ghanachey - Constant * is a. Single chasactey Wt wie pse seated by _using eScape Sequeng ___ An escape Sequence _sepaies ma Single. oH PPE HC cage Seciiaesereerea tea Loe paesented by 4 backslash (\) followed _by One _ox__ moe Chancho ie | @ scanned with OKEN Scanner = Voating Longlant + This ange nyumben having, Ange Mond paart (also called geal constant_) sutten in tase Foon 2 Bagonent fear + LaacNonal foam = Ssing bilaals + (Mutligle chosecben Consent) St ig 9 Sequence of _chanacley seqgounded by dbuble qyuoles . f 7 ion Nole gach shaing §S _ aolomalically, ~ adaled - cath 0 Yeaminaling channcten “\0? Une fsllowing chanachey Ane i) Purehuatosys + ured 8 Panclvaloas (also LrOty jit se meaning fo Slalements Seganglbes) yur! : ‘They give pases x expression >—O8 pe. Syntax = &) Operates + “Whey singed’ Some 1 Compulalon oxy aclion “when = ‘applied in venpaessions © + 1/6 ggenalon (& ond %) + aaithemeke Corre feted on * + Anonemert/} Decrement (r¥ 9% ~) nelational (== 56,7 , 4257 42) _ logical Speratos (4& NW ,4) _t Condibienal “openaton (Ft) @ scanned with OKEN Scanner Data Handling - su ee Gas Paguide ways and —_facililies do hondle aHexent ype cf data by Paoviding data Wype. + Tale Wye ema ae means bs deny | She Yupe ef dala _ and —_a8saciated “gpeaahion | fay handling 44 They ave ol las yee ; G Jondaental ype GB Vewiveds ype + Axe _ndamental type _£ _ ehast ink, Moot , double and void 7 - Bit Trey Qe rot Composed of any give: date type | Dolo. ype modifiye Feeneeeeted Signed + unsigned slong + shot 7 a {iom fundamental alo see: ‘openalons « ! a These age denived dale Ayre + Sarclion + Roinlea + Wis yefesy to named Vis} of a finke nombesy of siewlos, dala Element. 4 @ scanned with OKEN Scanner eg ae et Pavoqn3™. tent con be ipa ke Furor _alhesy oo Paros Cy . — Yintey + RB - paintey is _q vasiahk oat held s & _memiay _addess + hi adduers is. Usually _lecaion __of _o¥hen _Wonjgble_in _memanry _Synlon p-_basd type “eeens) waniable_ name 5 u su Spe * Pho Note t The base ype _delines the au walue__Yhe__gainley__ can paint to. __Refeaeniwe + A yefesence ig allennative’ Mame fas. an ‘ it i i Fos, ay! Presi _a8__abiject 2 pyovide an alas oy! Po ously ___tebined utile = Synlox + ype hh way = WO4— ame _y iro. nt & Sum = folal ‘Whe “Neguoatd _Gons¥__can be attel fo dyer to wake Shad Object thea Wan | A vacable ; oe Gonsl Aygerane sr ualud Const int sume i25 5 he declana! tension. Y usey defined de S dented Anta Wype Ment Ane defined by ieee t Ghar Shula + Union * Enomenation @ scanned with OKEN Scanner + Gass + M4 sepsesents a Move ef Sin! Mass + MH ge puesert s eject : peut W_ desea all the _ progenies at a, data ype are an__ebyech is eal Gacaled according to frat deseaipiion ; = Shovcloge + “A shnvchaaé ig’ Clleclien of \aaniable Jefesenced under are name Note S-Class and Stauchone age Simla - Seycto they nly dilfer -in ety default r HB ehOvigvoy p - ’ oF a So _stnuchone is dass | declaned sg Ah Mequoad — “Showch = oion + Bg eG alin hak se Sheed “toy | daw" oq mene + A Meseue tt voable Ws Aecleanod, Sy __using Key wond — ae Mavon-, - - Syntax “% ___union a HO" Aaa nam: ebj-nam 5 je wu @ scanned with OKEN Scanner Enumesa ion + An gle. naive (mettad: fday Saming integen Constant pbyosing eywod nym ef enum (START, PROSE , Goo} 5 SA _alue age by default assigned intareasieg fagm GO . : as able (Sym bolic wasiable ) rey nepaesert named“ shusage lrealion “whose wale Con be. manigulaled dusting Fsoqnar EE ayn, a | uo value associated gst a vasiable i)__data valve. Vi) Aeation vale . Monable declanalion * yee name 5 errs gutput : = an a Woo of WO manipulators ae. gelivt) and _selpaecisiont) ft intlode Wente—T a ioimanipeh Sell) man: pslatoay — = Qi sels the: width of eld ersigne’d a __ Bel pul. Coot & Sebtwlg) 6 "R" 3 ayesr'd stick Yea one @ scanned with OKEN Scanner we BW on Sets the sel re, gp digs tebe displayed. —h set ino. \ S ka ; o{__devieval__place Jo “be >] ‘splayed, edd | get ig Slag as. ot. self (ines, fined) SQ: oud. Set F Gosty fixed J Rook LE BehQuecigion 0) Ze (2 SUS 678 | Bolpet SD 125.3456 F Cao soond off ) edendednd | na (gare is shrek ) “cd's je” iesirted ig achaned bw vas & Soxmat Ophon, Mole = Caleclation is dane {som eight te- led and gutpot ig given in. left-ds svght andes. Litit | Ep! + Some _athey —_ @penatons * Compile - Time “openaioy + (Sizeamt) 3445 torting Gargile Mme _ofesaton, _aetan the + length af vaniable LEl | + Vhe Comma Spesraton +0184 is used > to slaing ogee Several - expscsfon ote + — ewalwated Neth - be aight @ scanned with OKEN Scanner seeeetaaiaeteetsetsetzee Secendence, at ‘gy esta 4091 Eee errr ee Wreeeeereeera go> Gos). . So > yet yy, ~ orang mins} y 4 ie eee a [ (aivide) = 4&5 > ype Lomma. spesatos,(s) Enpaession is any valid combinavon st token . s Railtmetig Expres Cre is son nel a seal _anithmeic ogwiatn) 7 Pome ante: “A _OMPACSSion. 7 Foxe Real expoessign: -/ pesgo tt % include. Malhyh \eouse ~_Tatherabic Tonelion + Relational (or logical) expression * Compound _exparession ype of “Conigsion + when Cong!ant gad vaniabhs af diesen} ‘ype Qe mined _in__OH_expuession , they ane _Lonvented tothe same My pe if i]_Anglicit type Gonyension + $4 18 genlgnered by Compile us trout Paeqaateings’ § inles-verkion ¢ @ scanned with OKEN Scanner Fae ~ —edt—toral 1 TT aa ———_& Weg ee spends _uthe sate SPenand sunt | melion 4 stasMalion U1 _Erplic:h Wyoe Coneasion > 9h is eee ‘usens defined © an Aype eRPaess; on fo be of Sessile | ——] Vege _Lasling = Explicrd _convension . ¥ ce i of 4 a0 Qeevand to oO Specific Mpe 4, Called : H isdone by. “ 7 Cyh eo) eapsession 2 fH showlmands +’ BA = Yan Operator expression ne « e br ; ' x ame AS‘ | _wan Spemgtay © expression. ; tow of Gontag! Program _Cantne\ _Slatemen! tcontrel =the ow of Gonsol ef Poogutetn a ___— Statement gue __the__inghayeWan given 42 fe rogues te _gestbenm ony Kind of “acon , Statement Foam the smallest ‘eneculallé within a CM pagsam Jesminated_— a emicclon C3) @ scanned with OKEN Scanner * Selection Statement The slolements had alley the rtamal flows of contaal a : : Gepending: upon a _ condition ig Called Seleclion __ Shatetment Sum yoo __of_Seleclion _/ Sladement =o sit + Suiloh Lae Bee me __einailional _apesaton (2 also used ng ailtenmalive to fy iF slalement TA__Aest a paatigulay Condition if tenditien Ao Anus | enceulion St next Statement is _Aotloused _ _etrenusise the next Stadernentt ie -ignosed «! | Note 1 Blalements in _byatas (Comgound sitement ) ag Aweaded go Single” unit. 7+ eee -u “Synto! ee —— WB Lengoession ) Breer eet - ee siatemend 5 4 ainen foam of ae p_i8_snecute othe statement ane enpaessian — Svaluates Se false! has syria Fd Cexpaession ) Slotementd: else é oe sigemen’ 25 @ scanned with OKEN Scanner — ee + Swileh slate (also called moltiele baanching Seles si] Ms secch asiyely debt the value of an _enpaes sion, Againg} a. sl of indegesy oy Chanac de Conslant Syntax > Suiteh (expression ) Case Contkind 1 2 statement Sequence 15 s bara 5 z fave Conslant a-1% ¢ lalemen! Sequence n-1, break defaults statement — Sequence 15 F Note: hen “no” enalch found default. shalement 8 sneaded ', Whe “stuolon of msi ag baeak in tase Slalemend 38 called: Sq’ then She cantnel Gon Have: sight _on the pent Case statements) ig call { fai thn ah — Ha antion Statements Soles a set QE anstave @ scanned with OKEN Scanner ee ee ee a Synleax = Foy Cinialegation enpuession(S) 5 teat -eapaesion ; update expe] body 9f- Meta 5 all _toep con}not gelemens ane on’ top of lose’ sialement + the While loop Syntax > while Cenpaession) =: J Veog: bedy Son Joa epee Wis a entay - Controlled loop ‘he _lecp _vasiiable slild update” inside the __bedy “he do - while lop Slatement z 3 ; cable C tests gapaession ) - Mis a ent. gorlnctled loop , 194 will -eneoutes | +E Kpsression | at \eas} once even __ when ane _tesd is false ' @ scanned with OKEN Scanner MW Awansfer’ the par gaan _conixe! “second: Fanaly ~ tsithin &@ — GuneWon Mey ane of. fou kind 4 * weloan ¢ gots o break % Conkinue, > thie statement G+ __Anansfex Program Control _angwhere” in v 7 _ Are __paegnam - St Aarget destinalion is manked by abel Mole? label and target most _apgeax in the” Same Fancton Sgnan 5 / Qolo label + label : HT Nobel is any idenhfien, break — Slatement Bt _enable a pragyam Control to skie oven past af the tode , BA lermirales “the smallest“ enclasing + =e 2 ie * | oven 8 paadiof the code 31 also instead of ___fouiging terminalis fee nent —Wexalion gf hoop to @ scanned with OKEN Scanner Console ao ‘Ivactinn “$V pestoam inp: fnom the glandand “_inpul desite. and aotput Txeny FS the glandand | | solgut lenitie of a. system t - NOTE + fl heodes file 8 included ta m, using 9: _‘prepascessan ‘dinéctive 4 imchdes A__ gue proces sey VigecKue ig GQ _indlayclioo Sou the compile, That ib fe be Cased doh ih the Ae PAssessing Silage pace 3 Lag * befox A_pacpaccessing Stor ne Stage the __gclual compilation _of he pasquan Code a Onfogmated _gangole T/9 fonction : r ' gelchan() > _neods chaseclesy _faa0 Keguutad ____ pulchos, Paint Chanactey 4s’ the Scween gels Q + neots a. sising of shanackey _and_-leaminale_ yl exbno chanacler ‘\e : Pols > uaikes 9 Shing on the " Seaeeh_ and _gdvanges the _ Guagoy to newline + a “RL need heateable. Siok J @ scanned with OKEN Scanner ~unfoamatied Shang Ho faneion sd gel Ray nges “membe fo conf input foul and if ig ~ ‘involved goth an - object gins, Wis _an-. opel toneWon + tug tine gel L) v jostneam put. [At id an _avteot funckon . Vets 2 ahs mete — lynction of o Shacam —_cles3"_and | a involved esi an ostream abject __cou4 7 dor. Gout s put) 3 Jos Not’s when 7 ig used the while spaced age ignored twhenes ih js mot 8 cin. geAU) gellineL) * WY handles tine - oariented ingot funchion ad Ving ot 4a __that ends with a ned Une. el ~U « <_twhide spac: ion Cin. _geiline Whe 293) cowie C) +) Wi can -diaglay on! eakime tne. . Aww. fobs waite ine 4 $i3¢ a ushtxe 315.8 ‘wpecity, fhe ne. of chanacky to be displayed « SSS Eee ed — Goud. tote (string . 8ige 1) . waathe (staing? ssige?) W__ gaits Laing t and giving? inthe "game lime ¢ _ U v Li need headen file iostneamh 5 @ scanned with OKEN Scanner 4 ‘be Jenesate Nando a . Num bea mand) 84 paduce standam ong. in” he sarge @ As RAND - MAK (defined: in staib.h) t Ssand() + 9 is used to _genenale different aandem ne, evenslime ‘ : : = = 3__slavts|geds agndom - norrbe generator Iaom point that depends on the Value we pass Qs__anqument Qi Sheol Inooked just iqnee pion to loop and nat evenylime, - Lire genenate . sandom nor inithin a aqme, E (aand OU) FL mi “random (= gear aale nandom ae. within & ANIL __aandom (num) 5 W__genenate mando E+ MANAe = Now-1, Sy aliges | Seeds the wanda n+ __adndom Humbert _ Sai @ scanned with OKEN Scanner aa pee a on SS Same ee hah ane ase glean by 8 common name + é Sy. Sree eee au two Wpes + t) One-dimensional asiiays +t Syntax © . ly pe Arsayname [Size] + Maxi Sixing of Rasy a cw docs net have a Slaing, datatype Q Saing is detingd a a Shanactes axa, 2) Wo - dimensional QXAdYy EE Bn aaa, wm which each ale ‘ Merl ‘ os % : iS fse\t on + ualen it — Whee toring -nome Cro ICestone] : ——Aaaay of sheng Mee gee dimensional i “chanuelea Sije af Kinat index Gow) del carmines \ alsings . @ scanned with OKEN Scanner Asay Initia Viyahon v vw type Auaay name [sige] = (ualoe Ket, Bor _vne - dimenBional QAxdy . Wilue Vet is tomma seperated lish of danay element aloes . Awa dimensional qasay alsg inlialized 7d in Wee Same way as Single~ dimensisn ane y Losized Qaraay, te: Via\i sation Ape asay.nome C Le Coole WsAS 7 Os ype Aavay namel UCSige]> Teale 8d}, Ye sdunnleg’ of this declanalion is thal ou may lang treo a Shorter Whe ine 2 Vist without charging the __Qaxay __Aimensian: Jone Lion go mame ani of o_gaaup ef 0 hag aware slalemenls + ‘Ibis atl can be ‘ovelied Tom ole gists of the _paoqsas os dnd when _siggpined . wae lion delinghon £ Wy pe Soe bgnnnme (Parameter lish body of foclisn 3 hue chon : Prods lupe Agee Sonchan aame (Pararee ten Ut) 5 @ scanned with OKEN Scanner Delautt Aaguments ee - cto: fooclisn pasameleyls) 7 is_useful in 6ase iq _matthing —_asqumert - i300 passed “in _faneion Call slatement 9 fq _Tont inlesesf (Peat _p jink (flac gos) + Neos __aagamvéa!” Q hase a default aaguent alge “O20. 2 : root we ' can” al “give tors fant Gsqumens ——Hby usin Gonst keyed we Call by walve Sn_Mhis _methad the “lve of aclual parameters {8 __Cagied inka the _foamal pasametens + ___fall__by stafesenge “in Place of Passing 0 value eh the Gnchon heing called , a aelexence fo Oniginal voaiable q us f ned, A arelens to the axiginn valves only by differnt anmes 10, nefenences . @ scanned with OKEN Scanner why Cail a func Won goign Qy2Qg nom a gine, to the Bash element in the gaa i ay 1S passed inls the —_lanetion cE S_wsys to declare a Jomal ganamcle 4 Matis te eceive. an Gana painle 4] he weceiving pasameley of she mou _i\selt | w Ww he _declaned aS __aM_Qanay 2) 9\ way declased ag an ynsiged dusty vw 3) Mk can be declaned gs 9 pointes XA foo Non Gatling itself 19 own body isa _wecuasive funchon and» Paopenty 15 called = Reloaning_ Avan 8 waren __ A__yelunn _slalement is _used Ye lenmagte a Aunclion ahethey 9: not Aye los a wlve Wis lype ol que Slolement , it Passes the _Contagl Pack calling “lune kon E @ scanned with OKEN Scanner eee ic ss walue eq» varias le fan be accessed ‘—Aecuon08 ashe ‘loon _kind of Scope + 1_hocal_seape > detlaned in ablack =) _Arngvien scape > declared in ou ck af Te eens estaaed in uleg. mast bloile | 2) ‘le scope + declared oslside all blacks and Yuncley, neon, 1 tle: Sf? name of clas membes . lx Mime inlewal fox which a Pah gular Sable dey dala value gues ia the Memory 12 Called Mile ime, gt the wonable . ‘ + Skauolue s ’ A s\se lay ‘SA Colleclion of wastable s “elenenced wade San name. 7 By default ail member 99% public in —__Shaveloye Shox} year). BFE Sbauclue, bag jth _idendilies —= ths paslicvlay data shaw hog and ils Woe opecilien Now, dale} @ scanned with OKEN Scanner Bate jorning_dole . + VW ptr for4 necessing a Slavelone element 1% st} avelone_ name. element. name Pasay Shasta Canluaed {ag Siac wa wablé L8i ge] Sige Spectty HE no, Of arog element of given St Sab Aafh taro asitin Stade } —A_ ‘slaschae tan teve an _qavay qs __one_af As glement . Passing staueluaes Is Siaclions " Gall by wtlye, ~ Aken tonction ~Gapiss re A. stowolyse ft ee r solfeut yp ey gt Li * Coll by xeferente + ‘the called Junehion declases | a _weference fox the fisied —_Bhuchune | @ scanned with OKEN Scanner

You might also like