You are on page 1of 33

4/26/2017 0.

1IntroductiontothesetutorialsLearnC++

0.1Introductiontothesetutorials
BYALEXO NMAY27T H,2007| LAST MO DIF IEDBYALEXO NDECEMBER11T H,2016

Welcome!

WelcometotheLearnC++tutorials!Aboveallelse,thesetutorialsaimtomakelearningC++easy.

Unlikemanyothersitesandbooks,thesetutorialsdontassumeyouhaveanypriorprogrammingexperience.Wellteach
youeverythingyouneedtoknowasyouprogress,withlotsofexamplesalongtheway.

WhetheryoureinterestedinlearningC++asahobby,orlookingtosupplementyourunderstandingofmaterialfroma
collegelevelcourse,youreintherightplace!

Tutorialstructure

ThetutorialsinthisintroductorychapterareaimedatgivingyousomecontextaroundwhatC++is,howitcameabout,how
programswork,andwhatsoftwareyouneedtoinstalltocreateyourownprograms.Youllevenwriteyourownfirstprogram.
FurtherchapterswillexploredifferentpartsoftheC++language.Inthefirstchapter(chapter1),youllgetabroadbut
shallowoverviewofmanyfundamentalC++concepts.Furtherchapterswillexplorethoseconceptsindepth,orintroduce
newconcepts.

Eachchapterhasageneraltheme,withallofthesectionsunderneathitbeingrelatedtothattheme.Thereisnosuggested
amountoftimethatyoushouldspendwitheachlessonorchapterprogressthroughthematerialatapacethatis
comfortableforyou.Sincetheconceptsfromeachsectiontendtobuildonthosefromprevioussections,itisagoodideato
ensureyouroughlyunderstandeachsectionbeforeyoumoveon.

Ifyoudontunderstandsomething,readthroughthecomments.Otherreadersmayhaveencounteredsimilarchallenges.If
yousimplycantfiguresomethingout,moveon,andcomebacktoitlater.Itmaymakemoresenseonceyouhaveseen
moreexamples.

Goals

Beforewegetstarted,letshitonacoupleofimportantgoalsofthesetutorials:

CoverprogrammingtopicsaswellasC++.Traditionaltextbooksdoaprettygoodjobofteachingthebasicsofa
givenprogramminglanguage,buttheyoftendonotcoverrelevantprogrammingtopicsthatareincidentaltothe
language.Forexample,bookswillomitsectionsonprogrammingstyle,commonpitfalls,debugging,good/bad
programmingpractices,andtesting.Consequently,bythetimeyoufinishthebook,youunderstandhowtoprogramin
alanguage,butyouhaveatonofbadhabitsthatwillcomebacktobiteyoulater!Oneofthegoalsofthesetutorials
istomakesurethatalloftheseincidentaltopicsarecoveredalongtheway,inthesectionswhereitnaturallymakes
sensetodiscussthem.Whenyoufinish,youwillnotonlyknowhowtoprograminC++,youwillknowhowNOTto
programinC++,whichisarguablyasimportant.

Providealotofexamples.Mostpeoplelearnasmuchormorefromfollowingtheexamplesastheydofrom
readingthetext.Thistutorialwillendeavortoprovideplentyofclear,conciseexamplestoshowhowtoapplythe
conceptsyouarelearning.Wewillalsoavoid(asmuchaspossible)thetwinevils:themagichandwave(alsoknown
as),whereintheinterestofspacepartofanexampleisomitted,andtheunexplainednewconcept,whereanew
conceptthatisintegraltotheexampleisintroducedwithoutanymentionofwhatitisorhowitworks.Bothofthese
tendtoleadtogettingstuck.

Providepracticeprograms.Theendofmanylessonsandsectionswillcontainsomeexercisesthatyoucan
attempttoansweronyourown,alongwithsolutions.Youcancompareyoursolutionagainstourstoseewhatwedid
differently,or,ifyougetstuck,howwesolvedtheproblem.Thenyoucangobackandrefocusontheareasyouneed
moreworkon.

Mostimportantly:havefun.Programmingcanbealotoffun,andifyourenotgenerallyhavingfun,yourenotin
therightmindsettobeprogramming.Tiredorunhappyprogrammersmakemistakes,anddebuggingcodetendsto
takemuchlongerthanwritingitcorrectlyinthefirstplace!Oftenyoucansaveyourselfsometimebygoingtobed,
gettingagoodnightssleep,andcomingbacktoaprobleminthemorning.

Gettingthemostoutofthesetutorials

http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 1/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++

Asyougothroughthesetutorials,werecommendanumberofpracticestomaximizeyourlearningexperience:

Typeintheexamplesbyhandandcompilethemyourself.Donotcopyandpastethem!Thiswillhelpyoulearn
whereyoucommonlymakeerrors,aswellasbecomingfamiliarwithcompilerwarningsanderrors.Asyoutypeinthe
examples,thinkaboutwhyeachofthethingsyouaretypinginmakesense.

Asyoumakemistakesorfindbugsinyourprogram,fixthem.Trytosolveyourownproblemsbeforeasking
othersforhelp.

Experimentwiththeexamples.Changenumbersandtexttoseewhathappens.Modifytheprogramstodo
additionalthings(e.g.ifaprogramaddstwonumbers,makeitaddthreenumbers).Trytofinddifferentwaystobreak
theprograms(ifaprogramasksforuserinput,tryavarietyofdifferentinputs).Youlllearnasmuchfrommodifying
theexamplesasyouwillbyfollowingthem.

Writeyourownshortprogramsusingtheconceptsyouhavelearned.Nothingisbetterthanpractice.

Learntodebugyourprogramswhentheydontwork.Wellhavemoreinformationonhowtodothisinafuture
lesson.

Note:Themajorityoftheexamplesinthetutorialsarefullprogramsthatyoucancompileandrunyourself.However,
occasionallytheexampleswillbesnippetsofcodethataredesignedtoquicklyillustrateaconcept.Becausethesearent
fullprograms,theywontcompilewithoutsomeadditionalwork.Youcanturntheseintofullprogramsyourself,ifyoudesire.

IsthereaPDFversionofthissite?

Unfortunately,thereisnot.Thesiteisabletostayfreeforeveryonebecausewereadsponsoredthatmodelsimply
doesntworkinPDFformat.YouarewelcometoconvertpagesfromthiswebsiteintoPDFformatforyourownprivateuse
solongasyoudonotdistributethem.

WherecanIgowhenIhavequestions?

Asyouprogressthroughthematerial,youllundoubtedlyhavequestionsorrunintounexpectedproblems.Thebestand
fastestplacetogetanswerstoyourquestionsisonasitedesignedforprogrammingquestionsandanswers,likeStack
Overflow.

Thesetutorialswerewrittenin2007.Aretheystillrelevant?

Yes,absolutely.C++doesntchangeveryoften,andthesetutorialshavebeenlargelykeptuptodate.

WhatshouldIdoifIgetstuck?

First,readthecomments.Second,useGoogletoseeifyourquestionhasbeenansweredelsewhere.Third,askfor
clarificationinthecommentsectionhere.Finally,ifallelsefails,skipthematerialyoudontunderstand,andcomebacktoit
whenneeded.Youmayfindthatsomethingthatwashardtounderstandiseasierwiththeadditionalknowledgeandcontext
providedbyotherarticles.

Alright,letsgetonwithit!

0.2Introductiontoprogramminglanguages

Index

NoPreviousLesson

Sharethis:

http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 2/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++

Facebook Twitter Google Pinterest 1

C ++TU TOR IAL | PR IN TTH ISPOST

249commentsto0.1Introductiontothesetutorials

Automation
March24,2017at3:23amReply

Hi

ThankyouverymuchforCPPlessons,

Ihaveusedyourlessonstodevelopmyarduinoencoderreaderprogrem

Thanks

GeorgesTheodosiou
March13,2017at5:51amReply

Mydearc++Teacher,
PleaseletmeexpressmysuspicionthatGooglereadourmessageshere,sowehavetodowhatshould
do,performingthelawofsilence.
Withregardsandfriendship.

Donjose
March10,2017at11:23pmReply

HiAlex,

Iamtryingtofindlinkedlistchapterinyourtutorials,canyoupleasehelpmetofindthatchapter

Ifnotavailableinyourtutorials,pleasesuggestmesomegoodlinksforunderstandstheconceptindepth

Yourtutorialsareverysimple,effectiveandeasytoremember,thatswhyIalwaystrytofindthingshere

Alex
March11,2017at12:05pmReply

Idonthavealinkedlisttutorialyet.Imhopingtogetaroundtowritingoneinthenextfewmonths,
afterIfinishupthechapteronmovesemantics.Imnotawareofagoodtutorialelsewhere,mainly
becauseIhaventlooked.

Donjose

http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 3/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++

March11,2017at9:08pmReply

ThanksAlexforyourquickreplay,IkeepeyeheretoseeLinkedlisttutorials.Inthemeantime
ItrytounderstandtheconcepthoweverIwanttounderstandfromyourwayofpresentation

Matheus
March7,2017at9:36amReply

Thankyouforthistutorial.BestC++programmingtutorialever.=)

GeorgesTheodosiou
March7,2017at5:41amReply

Mydearc++Teacher,
PleaseletmesaythatinmunicipalLibraryofMauriac(France)whereIspentlast4daysadswherenot
visibleandalsowhenIdidclickon[PostComment]forsendyoumessage,outputwas:
"Forbidden
Youdonothavepermissiontoaccessthisdocument.
WebServeratlearncpp.com"
HereinmunicipalLibraryofNeuvicenCorrze(France)adswerevisibleanddidclickonthemtilldisappeared.Insome
municipalLibrariesIgetsame"Forbidden"message.
Withregardsandfriendship.

GeorgeTheodosiou
March2,2017at6:49amReply

Mydearc++Teacher,
Pleaseletmesay,inmunicipalLibrary(Bibliothquemunicipale)ofRiomesMontagne(France),whereIm
justnow,Ididsome10clicksonaddsofyoursiteandthendisappeared.Ihopethismessagebesentatyouraddress.
Withregardsandfriendship.

GeorgesTheodosiou
March2,2017at5:28amReply

Mydearc++Teacher,
PleaseletmesaythatinmunicipalLibraryofthetownSaintFlour,France,whereIspentlast3days,I
triedsendyoucommentbutafterhaveclicked[PostComment]Iseenonscreen"Forbiddenaccessatcpp.com".Ihave
metsimilarprobleminothertownsmunicipalLibraries.Nowherein"OfficedeTourisme"ofthetownRiomesMontagne,
Ihopethismessagebesentatyouraddress.
Ontheother"hand"atSaintFlourIdidmanyclicksonaddsofyoursiteandneverdisappeared,buthereafterhave
clicked34adds,theydisappearedasistheusualcase.
Withregardsandfriendship.

Abheet
March1,2017at3:58amReply

Disabledaddblock,justtosupportyou!
Thiswebsiteisanexcellentbeginnerspot.

Thanksalotforconstantlyupdatingthiswebsite.
Keepitup

GeorgesTheodosiou
March2,2017at7:49amReply

Mydearc++Teacher,
PleaseletmesayMr.AbheetthatdisabledaddblockdoesnotsupportTeacher.Clicksonadds
support,anditseasy.Normally,after1015clicks,theydisappear.IndeedyoushouldwaittilladsURLbevisible,
thatisdonein12seconds.SoyoushouldonlyspenthalfminuteforsupportTeacher.
Withregardsandfriendship.
http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 4/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++

GeorgesTheodosiou
February18,2017at6:07amReply

Mydearc++Teacher,
PleaseletmesaythatIhaveseenthatmymessagefewminutesagoisacceptedbyyourserver,soI
sendpresentmessageonthatyousay:"Thebestandfastestplacetogetanswerstoyourquestionsisonasite
designedforprogrammingquestionsandanswers,likeStackOverflow.".
IsentthemquestionaboutMrBjarneStroustrupbook"TheC++ProgrammingLanguage"wherehedefinesfunctionsqrt()
althoughitisstandard.Seeat
http://stackoverflow.com/questions/42021508/whydoesstroustrupinthecprogramminglanguage3rdeditiononlinedefin
Administratorsputitonholdandeventuallyclosedit,claimingitis"primarilyopinionbased".Buteveryansweris
primarilyopinionbased.
IndeedtwoGentlemenansweredandtwootherscommentedit.
Then,doyousuggestmecontinueaskthemquestions?
Withregardsandfriendship.

Alex
February19,2017at12:58pmReply

Yes,aslongasthequestionsfollowtheirrulesandguidelines.

Jason
February16,2017at12:55amReply

Ithinkitisrightplacetostartlearningc++againaftermanyyears.Thanks

Stephane
February15,2017at8:14amReply

IamaprogrammerbecauseIsawthiswebsite.

Lalit
February12,2017at9:01amReply

Beautifullyexplainedandwritten.Thebestapproachtolearnc++ihaveseensofar,simpleandpowerful.I
wastryingtoexplainsomeconceptstoalearnerofc++andlandedhere.Iappreciatedthestyleof
explainingandimyselfgothooked.Awesome.

vimanyu
February12,2017at7:38amReply

ExcellentsitethankyousomuchforthisGoingtostarttoday
BTWIdontseeanyadsonthiswebsitebuyitsaysthatitsadsponsered??

Alex
February3,2017at12:23pmReply

Keepreading.FreeC++programsarecoveredlaterinthischapter.

Nicholett
January26,2017at6:42amReply

IloveitsomuchthatIhavetobuyit

mrcdog
January25,2017at4:53pmReply

http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 5/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++

A+jobAlex.BrandnewtoC++.WhenIlearnedPython,IstrictlyusedIDLEformyGUI.Whatdoyou
recommendforC++?

mrcdog
January25,2017at5:29pmReply

Nevermind.Youcoverit.(Ishouldhaveknown!)

Alex
January25,2017at6:13pmReply

IcoverIDEsinafewmorelessons.Keepreading.

keerthanan
January6,2017at4:41amReply

illgivemybest

ironman
January5,2017at12:05amReply

thissiteisthebest

KanishkaWilliamson
January4,2017at8:37pmReply

Iaminterestedincomputerandmyageis13.Ilikethiscourse.Iwillreadreadeachparteveryday.Iwill
helpmetounderstanditeasilyandquickly

Yeyy
December22,2016at12:17amReply

Imgonastartwithoutanypriorknowledgeaboutcodinglanguagehopethishelps

PhilipDempster
December20,2016at1:04amReply

Imustsaythisfirstarticleisveryinspiring!ImtakinganintroductoryprogrammingclassinC++next
semesterandImabitnervous,butIhavefaiththatthesetutorialswillhelppullmethroughThankyou
somuch!

VikasJaat
December17,2016at11:40amReply

Iwanttolearnit.

Wanttoprogramsomesoftwaresformyownwebprojects.

Leander
November27,2016at10:44amReply

Thisseemsalmosttoogoodtobetrue.Itslikeyoureadmymindregardingthefrustrationsofusingregular
tutorialsandguides.Lookingforwardtousingtheseresourcesanddonatingeventually.

Victor

http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 6/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++

November18,2016at11:22amReply

Hmm,itlookslikeIjusthitthemotherlodeofC++tutorials.Yay!

Gorador
November16,2016at5:31pmReply

Imgonnamakeagame

GeorgesTheodosiou
November10,2016at2:16amReply

MydearTeacher,
PleaseletmesayIcantunderstandwhatismovedandwherefrom1.4c,1.4dand1.8a.
Withregardsandfriendship.

Alex
November10,2016at12:41pmReply

Iflippedtheorderof1cand1d.

Imovedthecontentaboutthestdnamespaceoutof1.3ato1.8a.
Imovedthecontentaboutusingstatementsoutof1.3ato4.3c.

Youshouldntneedtogobackandrereadanythingyouvealreadyread.

qalbeAli
November8,2016at7:30amReply

verygoodsiteireallyappreciate,itgiveusopportunitiestobeagoodprogrammer.

Vai
October24,2016at2:27pmReply

LookslikeagoodguideforsomeonewhowantstolearnhowtoprograminC++andlearngoodtechniques
alongtheway.Thanksforthetutorial.Hopetofinishitallin56months!

GeorgesTheodosiou
October12,2016at3:44amReply

MrAlex,
PleaseletmeagainexpressmysinceregratitudeforyourC++tutorial,andmakeacomment.
Inthetopic"Goals">"Mostimportantly",youstate"tobeprogramming".Becauseenglishismysecondlanguage,
andbesideslearningcpp,Iminterestedtoimprovemyenglish,pleasepermitmesaythataccordingtomyenglish,you
shouldwriteeither"tobeprogrammer"or"todoprogramming".
Regards.

LayneHarris
October27,2016at12:19amReply

Firstandforemost,IwanttosaythatIamnotaprofessionallinguistinanyform,soifsomeone
morequalifiedcangiveabetterexplanation,pleasedo.

Thatbeingsaid,OPs(Alex)grammariscorrect.Inthecontextthatitisbeingused("Programmingcanbealotof
fun,andifyourenotgenerallyhavingfun,yourenotintherightmindsettobeprogramming")"programming"isa
verbinthepresenttense.Itissimilartootherpresenttenseverbssuchasto"tobedriving"or"tobe
jumping."Otheracceptablewaystophraseitwouldbe"toprogram,""todrive"or"tojump."Inthosecases,
thewordinquestion(program,drive,jump)isbeingusedasanouninsteadofaverb.

http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 7/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++

LikeIsaid,thisisprobablynotthemostcomprehensiveexplanation,butIjustthoughIshouldtryandhelp.Good
luck

GeorgesTheodosiou
October27,2016at1:29pmReply

MrLayneHarris,
Pleaseacceptmymanythanksforyourepliedmycommentandmanymoreforyourhelpful
linguisticinformation.Itreallyimprovesmyenglish.
Withregardsandfriendship.
P.S.ImGreeklivinginFrance.G.T.

dontletmegetme
October2,2016at1:41amReply

Illseeifitworks,butitlooksverypromising.

Bm
September30,2016at7:43amReply

Greattutorialsbutalittlehardtoread.Iwouldlovetoseeacolourchangeoradarkthemeintroduced.

Vedansh
September30,2016at1:01amReply

SeemsIntresting!Illstartrightaway!

Ashoka
September21,2016at8:41pmReply

ThanksAlexforthiswonderfulsite,NowIamrestartingtoreadandpracticeexercisesindetail

uay
September21,2016at4:54pmReply

thanksforthissite..iwillstart!

UKImperium
September11,2016at3:39amReply

Greatintroduction.Imreallylookingforwardtogettingintocoding.Ihaveabrotherwholearnedhimself
howtocodeC/C++.HesbeendoingitforafewyearsnowsoluckyformeIllhavesomehelp.

Nick
September8,2016at12:10pmReply

Thanxforthistutorial,buticantunderstandwhyyoudontuse"usingnamespacestd"?Itmakesthecode
shorterandincreasethespeedofcoding.Isntit?

Kelly_Lok
August28,2016at9:00amReply

good

Sammi
August27,2016at11:50amReply

http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 8/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++

HeyAlex!

Iveseenalotofpeoplecommentingonhowthisisgreatforbeginners,butwhataboutpeoplewhohave
takenafewc++programmingclassesincollegebutdidntquitelearneverything?

Alex
August29,2016at3:05pmReply

Thetutorialseriesshoulddefinitelybegoodforthosekindsofuserstoo.Iguaranteeyoulllearn
somethingnew.Youcanskimthestuffyoualreadyknowwell,andfocusinonthetopicsyoure
weakeron.

Tsubaki
August15,2016at5:47pmReply

HiAlex,
Isthistutorialuptodate?Imeanasabeginner,canIuseittolearnC++fromscratch,consideringthat
wereinAugust2016?
BecausesomepeopletoldmetobecarefulaboutwhereIstarttolearnC++from,sincealotoftutorialsareobsoleteand
C++ischangingeveryday!

Alex
August17,2016at3:00pmReply

Yes,itslargelyuptodate.ImstillintheprocessofintegratingsomeadditionalC++11/14stuffinto
chapters12andbeyond,butthatshouldntimpedeyourprogressorwasteyourtimeasthestuff
thatsthereisstillrelevant.

MalJones
June28,2016at2:21amReply

HiAlex,

Doyouhaveanyplantoreleasea"paidfor"versionofthetutorialthatcouldbeusedoffline?

Alex
June28,2016at4:32pmReply

Notatthistime.Thecontentofthissitegetsupdatedseveraltimesaweek,soanofflineversion
wouldgostaleprettyquickly.

SAAZ
June21,2016at5:59amReply

hiAlex,afteramthroughwithyourtutorials,howdoiimplementitinwritingwindowsprograms?

Alex
June21,2016at12:46pmReply

Afteryouarethroughwiththesetutorials,inordertocreateWindowsprograms,youllwanttopick
anappropriateGUIframeworkandleveragethat.Theframeworkwillassistwithcreatingwindows
andformelements,andthecodeyoulearnherewillprovidethelogicthatglueseverythingtogether.Which
frameworkyouchooseisentirelyyourchoice.

SAAZ
June9,2016at12:18amReply

http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 9/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++

Hialex,isthereanyneedformetowriteanycertificationexaminationasameanstoshowthatiam
versatileinc++.

Alex
June9,2016at6:29pmReply

Imnotsurewhatyoumean.Canyourestatewhatyoureasking?

Ryan
September4,2016at4:06amReply

HiAlex,Thinkwhathestryingtoaskis,Willheneedtowriteandpassanexamsothathe
canshowhesacertifiedC++programmerlikeJavaandtheSunexam.

Alex
September4,2016at7:11pmReply

Thatdependsonhisemployersrequirements.Someemployersliketoseethatkindof
thing,especiallyifyouhavenoworkhistoryorcollegedegree.Otherwise,howdothey
knowhowwellyouunderstandthisstuff?

easybtc
June8,2016at8:05amReply

Excellent..iwasjustthinkinginthemorningtolearnthisprogrametocodesomecoinrelatedgamesandif
possibletodevelopacoins..excellent..nowigotagoodbeginning

NikoGill
June1,2016at3:29pmReply

Thiswebsiteisgreat!Ilovehowmuchdetailwasputintoitandthatitdoesnotrequirebackground
knowledgeofotherprogramminglanguagestounderstand.Thankyou!

Alex
June1,2016at9:53pmReply

Thatsthepointofthesite!ToexplainC++inawaythatdoesntrequirepriorknowledgeofanything
excepttheEnglishlanguageandbasiclogic.

tzkang
September26,2016at2:52amReply

Haha,"Eecepttheenglishlanguage",Iagreewithit,becauseiamaChinese,myenglishis
poor.ButIthinkthiswebsiteisgreat.
IhavelearnedsomethingaboutC++from"C++Primer(5thEdition)"butInotgoodatC++yet.
IhopethiswebsitecanhelpmetoimporvemyC++skilaswellasmyenglishskill.

Sarah
May24,2016at11:21amReply

HeyAlex
IstartedC++courseamonthagoandIvebeenattendingtheseclasses,theteacherjustlectureusabout
differentstuffandprogramsandbarelyaskustowritethingsandthengivesussomehomework.

http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 10/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++

IcantdothosehomeworksatallbecauseIveneverdoneprogramming,andIhavenoideawhatsgoingon.Your
tutorialisamazingbutitcanthelpmesinceIcantspendmuchtimeonit.

Whatdoyousuggest?HowcanIlearnthis?

P.S:I"mveryfrustratedatthemoment

Alex
May24,2016at12:19pmReply

Givenyourtimeconstraint,Isuggestyoureadthelessonsrelatedtothetopicsyourprofessoris
coveringtoreinforceyourknowledge.

Outsideofthat,maybegetatutorwhocanworkwithyou1:1tomaximizeyourtimeinvestmenttooutputratio.

EarnestAchayo
May23,2016at10:32amReply

Helloeveryone,amafreshbeginnerinlearningprogrammingandamlookingforaprogrammingfriendwhoi
canalwaysasksomeprogrammingissueswhenigetstucksomewhereinbetweenthecodinglinesplease
dropmeamail@earnytech@live.comifyouareoneplease.Iwillhighlyappreciate.
thanks

Fruqo
May18,2016at12:47pmReply

HeyAlex!YoureAwesome!Imverygladtofinishthistutorialandveryhelpfullthankyouforalot!! i
haveaquestion,Canitranslatethistutorialtomynativelanguage,withyourpermission? Thankyou
somuchagain.

Brandon
April27,2016at1:32pmReply

Alex,
Youareascholarandagent.WhatissadisIhavegonetocollege(abadone,butacollege),purchase
Udemyclasses,paidtutors,andnothinghasbeenashelpfulasyoursitefortheonefactor,youbreakitdownasthough
achildwaslearningthis,providetangibleandpracticalexamples.Yousir,arealightinourdarktimesofoverpriced
education.Thankyouforyourgenerosityandforgivingbacktothecommunity.

Irshan
March28,2016at5:05amReply

Thankyoududeforthisgreatsite..ItishelpingmealotIsthereanyoptiontomakeadonation?

Alex
March28,2016at9:16amReply

Ifyoudliketohelpsupportthesite,therearedonationlinksintheabout/contactsection.Thanksfor
visiting!

Michael
March18,2016at2:38pmReply

Thankyouforthissite.Ihavebeenworkingthroughthelessonsanditishelpingmealot.

igor
March14,2016at6:53pmReply

Veryclearandunderstandablecontent.Thankyouforagreatjob!

http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 11/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++

jeff
March8,2016at3:09amReply

yousiteisveryusefulThankstotheteamwhobroughtupthewholeidea

Trebor
March8,2016at2:40amReply

Thankyouforthisawesometutorial.WiththehelpofthistutorialIllbeabletodomyfirstprogram.Itwill
beabletounderstandhumanlanguage,program,andultimatelygetovertheworld.

DrYitMat
March1,2016at3:52pmReply

Thankyouforcreatingthissiteandthesewonderfultutorials!

LebiTheCoder
February26,2016at9:03amReply

Tomyfellowreaders/studentsonthiswonderfultutorial:Canwehaveatleastdedicatehalfanhour(if
possible,morethanhalfanhour)tojustclickthoseADSrepeatedly?Justyouknow,closethewindows
thatpopupafterwards.Inthislittleway(educatemeifthisiswrong)wecanhelpAlexinmaintainingthisawesomesite.
IbelieveeveryclickonthoseADSgeneratesomerevenue.Thankyoufolks!(Justdeletethiscommentifthisisnota
goodidea)PS:IdontknowifbyclickingthoseADS,youencountermalwareordangerouswhatsoever.

Alex
February28,2016at2:38pmReply

Pleasedontspamclicktheads. However,ifyouseeanadthatlooksinteresting,byallmeans,
goexplore.

GeorgesTheodosiou
March9,2017at6:26amReply

Mydearc++Teacher,
PleaseforgivemeforIdidclickadsrepeatedly.Iwasnotawareofyoursuggestion.Irespectit
andstopclickonads,for,tosaytrue,Idonotseeanyonethatlooksinterestingbyanymeans.
Withregardsandfriendship.

selty
February12,2016at2:16amReply

itshelpsmealot

IshtmeetSingh
January27,2016at8:23amReply

HelloSirAlex,
IvebeenbrowsingontoyourtutorialsforfewhoursandIamgladthatIfoundyourwebsite,andreading
theseappreciationcommentsmademeuseONLYyourtutorialstostudyC++,andIvestoppedusingAdBlocksforabit
now,asIwillonlybebrowsinginternettoreadyourtutorials,thatmighthelpmepayforyoureffort,abit.But,Ihavefew
questionsinmymind,Ihopeyouwouldanswermewheneveryouhavethetimetodoso:
1.IamsemibeginnerinC++,meansIhavebasicunderstandingofthislanguage.Iwanttoknow,ifIstartreadingthese

http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 12/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++

tutorialsindetail,willIhaveanyproblemsunderstandingthecodesinthelatersections?
2.Attheendofthesetutorials,willIbeabletowritealmostanyprograminC++?
3.Arethesetutorialsmeantforbeginners(Peoplehavingnoknowledgeaboutthislanguage),ortheoneswhohaveabit
understandingaboutanyotherprogramminglanguagelikeC?
4.IsC++linkedwithC?Means,doIhavetolearnsimpleClanguagebeforestartingC++?
Thatsitsir.Iknowthesequestionsmaybesilly,butIwouldcallthem"DOUBTS".
Thanksinadvance,andonceagainAMAZINGwork,Alex!

Alex
January27,2016at3:19pmReply

1)Thetutorialsaresetupsoyoulearneverythingyouneedtoknowinorder.Ifyouskipsections,
youmayrunacrossconceptsthatyouskipped.Ifyoureadtheminorder,youshouldhaveno
problems(assumingyouunderstandthematerial)
2)No,notanyprogram.ThistutorialteachestheC++corelanguagefunctionality.Theresstillotherthingsyoull
probablywanttoknowabout:theclassesinthestandardlibrary,datastructuresandalgorithms,userinterfaces,
etc
3)Thesetutorialsaremeantforboth.Thetutorialsarewrittenassumingyouhavenobackgroundinprogramming
however,ifyoudo,youllfindthematerialeasier.AndIalmostguaranteeyoulllearnsomethingsyoudidnt
know.
4)C++islinkedtoC,inthatC++branchedfromCatsomepointinthepast.YoudonotneedtolearnCbefore
C++,andIwouldnotrecommenddoingso.

JatinSharma
February7,2016at2:46amReply

HeyAlexmynameisJatinSharma.IwanttoknowhowwouldC++helpmeandwhatkinda
applicationsarethere?

Alex
February8,2016at6:14pmReply

C++wouldhelpyouifyouwanttolearntowritehighperformance,memoryintensive,
and/orrealtimeapplications.C++isgreatforvideogamesandsimulations,andisused
infinance,engineering,transportation,physics,andmanyotherindustries.

IfyourenotsurewhetherC++isrightforyou,thatsokay.IsuggestGoogling,WhatisC++goodat?
andreadingsomemoreaboutwhatitcando.

PradeepPanchariya
January19,2016at11:00amReply

thanxAlex,thisisagreatsite.

//keepcoding
#include<iostream>
usingnamespacestd
intmain()
{
if(cout<<"helloworldtobyebyeworld(begineertoexpert:)")
return0
}

Sharaf
January18,2016at10:41amReply

firstofallithankalexforhiswonderfulworkevenihavenotcompletedthetutorialsbuttheyarereally
wonderful!!!iamaschoolguywhogotlessscoreincomputersciencelasttimebutihopethatmyscore
willincreasebecausenowistartedunderstandingwhatthingsare!

http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 13/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++
1 #include<iostream>
2 int main()
3 {
4 std::cout<<"THANK YOU";
5 return 0;
6 }

ThePlumBOB179
January8,2016at6:43amReply

Hello!ImSOexcitedtostartprograming.IveturnedoffmyAdBlockerforthiswebsite,asIhavenodoubt
youguyshavedoneanawesomejob!SEEYOUONTHEOTHERSIDE

Goatflakes
January7,2016at7:07pmReply

Thanks!Youshouldtryandgetthispublishedasapaperandebookthroughapublisher!

Onesmallbonetopickthough.Ihavebeenprogrammingfordecades,soImoverthe"wedontassumeyouhaveany
previousprogrammingknowledge"approach.Itmakesittedioustoquicklygetuptospeedwithanewlanguageor
framework.

IpersonallywaslookingforawayofgettingfromtheoldstyleC++withtemplatestothenewerC++01/07/11/14wayof
doingthings.SoImkindofsickofseeinghowtodoifstatementsButnotyourfault,youhaveyourtargetaudience,
andImnotreallyinit.

Maybesomethinglike"Ifyouhavehadpreviousprogrammingexperience,clickhere.Ifyouhavesomeexperiencewith
C++clickhere.IfyouhavepreviousexperiencewithC++andunderstandtheSTL,clickhere.Ifyouwanttounderstand
thedifferencebetweenC++01andC++07clickhere"wouldhelp?

Alex
January9,2016at2:57pmReply

Yep,yourejustnotthetargetaudienceforthistutorial.Isupposeitmightmakesensetohavean
indexlinkingtopageswherethingshavechangedinC++11/14.Illaddittomytodotoinvestigate.

Raman
January7,2016at5:45amReply

Pleasewritesometutorialsonhowtocreateguiapplicationinc++

Alex
January7,2016at1:13pmReply

Imightinthefuture,butitsworthnotingthatC++doesntincludeanyGUIfunctionalityaspartof
thecoreC++language.Thatmeanswehavetoturnto3rdpartylibrariesforthisfunctionalityand
therearemanyofthose,eachwiththeirownstrengthsandweaknesses.

Goatflakes
January7,2016at7:16pmReply

Yeah,IkindofwishthatBjarneStroustrupwouldputadecentframeworkintotheC++
standard,butIreallydounderstandwhyhedoesnt.GUIsare_still_rapidlydiverging,c.30
yearsafterwhatseemedatthetimetobethecanonicalapproach(WIMP)waswellunderstood.Also,itsa
verypoliticalthingtodo.

PS:AlsoWTFBjarneStroustrupsdayjobisamanagingdirectoratMorganStanley.IfoundthiswhenI
searchedhisnametomakesureIhadspeltitcorrectly.

http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 14/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++

batman_ironman
January6,2016at8:00pmReply

Esteexactsiteulpecarelcutam!Deocamdattiusprogrameznc#pentrujocuriinprogramulUnity
3D,darcredcdacostiusprogrameznc++osmajutefoartemultnc#.Oricumestefoartebun
siteulcasnveic++.<<endl
Thanksabunchforthisfreewebsite!Ivebeentryingtogothroughawholebunchofsites,apps,andbookstolearnthis
stuff,butthisoneseemspromising.Butthethingis,Imnot100%sureifthisiswhatIneedfortheprogramIplanto
make.IknowC++isverypowerfulbutIstillneverknow.(Imaround90%surebytheway).
Somyquestionis,"Canyoumakea"game"similartoNestedbyOrteilwithC++?"Withthenewuniverseeachtime
thingandtheresaninfiniteamountofthingsinit?
Also,beingabeginner,ImhavingtroubleimagininghowsomethinglikeNestedcanbeprogrammedandIhopethissite
givesmethetoolstobeabletomakeexactlywhatIwant.\
Idisabledmyaddblockertosupportthesite.AlsoImworkingassoftwareengineerbutIneverhadenoughconsistency
tothoroughlyworktroughsimilarguides.IvealwayslearntasIgo.SinceImcurrentlyworkingonaservicethatis
developedinC++/QtIfeltthatIdliketohavebettergripsandunderstandingwhyandhowarethingsworkinginthat
worldastheyare.AlsoIllpromisetodonateifIllbeabletoworkthatguidetrough.

Cheers!

Alex
January7,2016at1:12pmReply

YoucoulddefinitelywritesomethingsimilartoNested,thoughwithC++youdbebetteroffdoingso
asanapplicationinsteadofawebpagesinceC++isntawebtechnology.

JorgeCalderon
January1,2016at6:45pmReply

Thankyou.Ireallyappreciateyourefforts.ThisisexactlywhatIneededanditsfree.

Luke
December22,2015at2:03pmReply

Lookspromising.Imgoingin!

dan
December14,2015at3:32amReply

thistutorialisawesome!!

DincAlin
November4,2015at10:20amReply

Esteexactsiteulpecarelcutam!Deocamdattiusprogrameznc#pentrujocuriinprogramulUnity
3D,darcredcdacostiusprogrameznc++osmajutefoartemultnc#.Oricumestefoartebun
siteulcasnveic++.

abcd
November4,2015at8:59amReply

great

Lite3000
October8,2015at12:49pmReply

Thanksabunchforthisfreewebsite!Ivebeentryingtogothroughawholebunchofsites,apps,and
bookstolearnthisstuff,butthisoneseemspromising.Butthethingis,Imnot100%sureifthisiswhatI
needfortheprogramIplantomake.IknowC++isverypowerfulbutIstillneverknow.(Imaround90%surebythe
http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 15/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++

way).
Somyquestionis,"Canyoumakea"game"similartoNestedbyOrteilwithC++?"Withthenewuniverseeachtime
thingandtheresaninfiniteamountofthingsinit?
Also,beingabeginner,ImhavingtroubleimagininghowsomethinglikeNestedcanbeprogrammedandIhopethissite
givesmethetoolstobeabletomakeexactlywhatIwant.
Cheers!

Alex
October8,2015at3:34pmReply

ItlookslikeNestedwaswritteninJavascript.See:http://orteil.dashnet.org//nestedscript.js

YoucouldcertainlycreateaclientversionofthisinC++,butifyouwantedittobewebaccessibleyoudprobably
bebetteroffusinganotherlanguage.

Dastan
October6,2015at2:26amReply

illtry

Wira267
October5,2015at9:20amReply

Thismightseemlikeaverydumbthingtoask,butIwantedtoaskhowlongitwouldtakemetoget
throughallofthistutorialifIspend15hoursperweekonit?Please,reply.

Alex
October5,2015at1:19pmReply

Thatverymuchdependsonhowquicklyyoureadandabsorbtheinformation.Myadvicewouldbe
toworkthroughchapter1,andtrackhowlongittakesyoutogetthrougheachlesson.Ifyou
calculateanaveragetimeperlesson,youcouldprojecthowlongitwouldtakeyoutodoallofthelessons.

Mahmud
September29,2015at12:15amReply

Salman
September23,2015at6:47amReply

IambeginnerpleasehelpmeoutasiaminterestedinLearningthislanguage

Speedy1101
September18,2015at7:36amReply

IknowsomebatchsoIllthinkIllenjoyit.

Patrick
September18,2015at5:21amReply

Great!ThisisexactlywhatIamlookingfor!

KanishkaWilliamson
January4,2017at8:38pmReply

Formetoo

http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 16/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++

CarlSun
September7,2015at7:15pmReply

ImgoingtolearnC++bythisgreatwebsite,andIthinkBROKENWINDOWsadviceisveryuseful,its
betterthatpeoplescommentsnotbeinendofpages

Francis
September7,2015at7:11amReply

HelloAlex,

ThanksforsharingyouknowledgeofC++.Thiswebsitehasbeenreallyhelpful!

BROKENWINDOW
August30,2015at7:59amReply

Hello
Ihaveasuggestforthisgreatsite.
Ithinkitsbetterthatpeoplescommentsnottobeintheendofpages.
theycanopeninnewtaboranewwindow.itstoobetteranditcanprovespeedofloadingpages.
Imeanitsbettertoseparatetutorialsfromcomments.

Alex
August31,2015at4:40pmReply

Goodidea.Illlookintoit.

shani
August23,2015at8:18amReply

PleaseaddGoogletranslatortoyourwebsitesoallusercangetbenefitfromyourwebsite,
Atlastthisisgood/educationalwebsite

Alex
August24,2015at12:08pmReply

Imlookingintoit.Inthemeantime,ifyouuseGoogleChrome,youcanrightclickandtranslatea
page.

Cristianokabin
August19,2015at5:47amReply

ThisisaawesomesitecanIdownloadthisalex

Jaques
August14,2015at12:56pmReply

itisexactlythatIneed,grateful!


August12,2015at9:09pmReply

1 #include <iostream>
2
3 using namespace std;
4
http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 17/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++
5 int main(){
6 cout<<"Hello World!"<<endl;
7 return 0;
8 }

Syed
August12,2015at12:25amReply

Thanksfortheupdate!

Bimalthakurathi
August8,2015at9:03pmReply

Thankyouforthegreatfreesite..

Surelywilltellmyfriends

smailmessaoudi
August3,2015at1:34pmReply

Thissitefullofinformation
ThankyouverymuchAlex

David
August1,2015at11:47pmReply

Thissitelooksreallygreatsofar!
Goodforbeginners,likemyself!

Hey,Alex,doyoueverthinkyoullcreatemorewebsitesfordifferentlanguages?(i.e.www.learnhtml.com,
www.learnlua.com,www.learncss.com,www.learnjava.com,andsoon)

Haveagreatday,andasalways,thanksforthewonderfultutorials!

Alex
August2,2015at7:43amReply

Nope.Idontknowanyofthoseotherlanguageswellenoughtoteachthem.Idliketoeventuallydo
programmingagnostictopics,suchasalgorithmsanddatastructures.

Mikel
July25,2015at3:37amReply

Thankyouverymuchforthetutorials!

ZakirNaik
July24,2015at9:53amReply

Ilovecoding.TnxFor
sharingit.IamanewLearner.FromnowIstartlearningc++.HopeIwilllearneasilyfromthissite.

ZakirNaik
July24,2015at9:47amReply

TnxForthis.IamanewLearner.FromnowIstartlearningc++.HopeIwilllearneasilyfromthissite

Charlesukadike
July18,2015at4:06amReply

http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 18/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++

ExactlywhatIvebeenlookingfor,Ivebeeninto3Dgraphicsforsometimenow.Withtheprogramming
knowledgeIllgetfromthissiteandmy3Dexperience,Icantwaittoproducemyfirst3Dgame

DonRico
July14,2015at11:05pmReply

Idisabledmyaddblockertosupportthesite.AlsoImworkingassoftwareengineerbutIneverhadenough
consistencytothoroughlyworktroughsimilarguides.IvealwayslearntasIgo.SinceImcurrentlyworking
onaservicethatisdevelopedinC++/QtIfeltthatIdliketohavebettergripsandunderstandingwhyandhowarethings
workinginthatworldastheyare.AlsoIllpromisetodonateifIllbeabletoworkthatguidetrough.

yas
July4,2015at9:51amReply

Justwantedtosaythankyouverymuchforcreatingthiswebsite.

Mahesh
June25,2015at12:29pmReply

Thissiteisreallygoodforbeginner.Providedmoredepthexplanationofeachandeveryconcepts.

TimotheusK
June24,2015at8:08amReply

Thiswebsitelooksnice,thanks!

W.N.Tun
June23,2015at1:50amReply

ThisisexactlywhatImlookingfor!!!!
Thankyouall!!

Nicolas
June19,2015at4:10amReply

Thissoundsliketheperfectresourceforabeginnerlikeme.Ivealwaysbeenfascinatedbyprogrammers,
andwhattheycandowithwords.Iplanonmakingfulluseofthissite,sothankssomuchinadvance!

Aleyab
June18,2015at1:05amReply

isthereanywaytodownloadallofthesetutorialssametimeasa.pdffilemaybecuzprintingthemwilltake
alongtimeithink

SM.link99
June12,2015at6:56pmReply

HiAlex,

JustwantedtosayIfeeltheclarityofthewordsandthewebsitecontributetremendouslytothelearningexperience,and
Iamgratefulthatthesiteisfree.Thanksaton.

Thorax
June10,2015at6:50amReply

HiAlex.Thismayseemlikeasillyrequest.Butisthereanychanceyoucouldhavetheadontheright
handsidemovedtosaythetop,orthelefthandside?

http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 19/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++

ItendtotilemybrowserandIDEvertically,butduetotheaddontherightitmakesitprettyawkwardasitcompresses
therestofthepage.

Notamajorissue Butitwouldbenice.Eitherway,reallyenjoyingthetutorialssofarandIreallyappreciatethework
youveputintothis.Cantthankyouenough!

jakobd
June4,2015at1:53pmReply

heregoesnothing!!

BernardCollins
June3,2015at6:50pmReply

IhavemadeseveralattemptstolearnC++.ButIdontgiveupeasily.Heregoesanothertry.

epicme301
May26,2015at10:39amReply

EPICJUSTEPIC.

MackyG
May16,2015at9:14amReply

Imahugegamerandsoaremyfriends.weregerks(geeksakagamers,andnerdsakaknowitalls)butim
theonlygerklearningcodeforforagameideasothankyouforthissite

ansy
May11,2015at10:43amReply

ohhopeithelpsmegetmyexams,nicework

YatharthPandey
May7,2015at7:39amReply

Yiuregonnasaveme!!!

Sravanthi
May7,2015at7:29amReply

ThankyousomuchAlex,reallythisisthebestsitewhichihavecomeacrosssofar.Keepupgoodwork!!

Nayana
May5,2015at6:45amReply

Awesomesite!!IamgladIfoundthis ThankssomuchAlex!!Keepupyourgoodwork

BobbyWassaby
April28,2015at5:04amReply

Hardyharhar

Mawuerdit
April27,2015at12:58amReply

Wow!ImustadmitthatthisisafantasticsiteforthebeginnerstolearnC++.Thoughimnotabeginner.i
recommendotherstothisawesomesitetoquenchtheirthirstforthisparticularlanguage.
Thankyousomuch,Alexforyourtremendouseffortinsimplifyingthisworkforthebeginners.Iwishidfoundthisuseful

http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 20/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++

linkearliertosimplifiedmyworkwhichtookmeacoupleoftimetolearnitsincemy"Structured&ObjectOriented
Programminglecturer"wasntalwaysreadytogiveustheadequateinformationbutonlyreferredustobooksforfurther
information.
Henceappreciatingyouforyourwork.

Thanksinadvance.

ASouthSudaneseexpatriatesscholartoKenya.

PhillWilbor
April19,2015at2:52amReply

verygoodwebsiteanditsfree..ijustwanttosaythankyouforthisawesomesite!

LongNgo
April13,2015at11:18pmReply

IreallydonotunderstandwhymycurrentC++ProgrammingProfessorcannotexplainthingsthissimplein
his"textbook",whichismadeupof4differentC++textbookswrittenbydifferentpeopleinwhichheputted
together.Amazingsite,keepupthegoodwork.Youguysgetstraighttothepointinsteadofgoinginanendlessloopof
fillersandcomplexwordsandanalogies.

Fahad
April13,2015at11:05pmReply

I`lltryInshaAllah!

ivan
December12,2016at10:07amReply

Tnx
Thisisverygoodtutorialforbeginnerslikemeiwantlearnmoreaboutc++.

Batuhan
April1,2015at6:57pmReply

greatsitethankyouforyoureffortstomakethesetutorials

Neeraj
March27,2015at10:28pmReply

Thanks,
IcameheretorefreshmyC++knowledge.

UttamPrakashManher
March20,2015at11:26pmReply

fantastic,Ilikethiswebsite.ThisisthebestwebsitetolearnC++butthereanyversionofthiswebpagefor
320240screenresolutionwithnojavescript(forMicromaxX351mobile)?

Bob
March18,2015at6:00pmReply

HasC++11bestpracticesbeenupdatedthroughoutorjustaddedattheend?Whatdoesupdatedmeanon
themainpage?.1saysupdated,butthedateinsidesays2007.

Thanks!

http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 21/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++

Alex
March19,2015at11:38amReply

Updatedmeansthearticlehasbeenrecentlyupdated.ImintheprocessofintegratingC++11
relatedtopicsintotheindividuallessons.

Bob
March19,2015at12:00pmReply

Awesome!Lookingforwardtogoingthroughitall!Thanks!

lolster123
January19,2017at12:19pmReply

lolloveyouyuuuuuuuuudarrrrrrrrrusokawiiiiiiiiisemmmmmmmmmmmmpiiiiiiiiii

Ravikiran
March8,2015at5:18amReply

itsprettygud4bigginerslikeme

CLITONROCKY
February19,2015at2:27pmReply

thisiswhatIhavebeenwholeheartedlylookingforthankverymuchformakingthiswebsitefreely
accessible.

Franz
January30,2015at8:50amReply

CanyoupleasestructureyourHTMLsuchthatwecanviewthetextinawiderformatwhenzoomingin.
Andpleaseincreasethespacing.

Thiswouldhelpussightimpaired.

Majabin
January29,2015at12:51amReply

ItsreallygreatsitetolearningC++,Manythanksforyourefforts.

AbdulJalilSoomro
January19,2015at2:50amReply

Ilovethissite.Iappreciatethosewhomadeitafreeresourceforpoorpeoplelikeme.Thanksalot.ButI
haveonequestion.Istheallc++languagetutorials?ImeanIwillbeabletolearnallc++fromthis?

iftekhar
May17,2013at10:19pmReply

IamtakingC++forFall2013semester.Definitelygonnabehelpful.Thanks.

SivaSankar
January25,2013at7:24amReply

Excellenttutorials
THANKSTOLEARNCPP

http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 22/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++

theintunoo
May18,2012at7:12pmReply

IwanttoshareinFacebooktomyfriends.CanIdoLikethis?

Alex
December30,2014at5:44pmReply

Youcannow. Iaddedsharinglinkstothemajorsocialnetworksinthelatestsiteupdate.

XamaX
March31,2012at1:27pmReply

Alex,

YouprobablywontreadthisbutIjustwantyoutoknowthatyoushouldnotlookatanyhatersthatcommenthere,
theyreprobablynotinterestedinprogrammingenoughtotakesomeeffortandgothoughthematerial.Imsurethatthere
aremanymorepeoplethatreadallthisandlearnedalotbutdidntcomment.Thankyouverymuchfortheeffortyouput
inthissite!

tsdrifter
February24,2012at8:51pmReply

HeyIjustfiguredIshouldshowmyappreciationreallyquickthisisanincrediblyhelpfultutorial.Icame
fromalimitedbackground(Iknewwhatifthen,loop,andvariableswere,butnottoomuchmore)and
learningC++withthistutorialiseasyandeffective.BesttutorialoutthereforC++(possiblyforanylanguage ).
Thanks!!!

nimadv
January14,2012at3:28amReply

ThankyousomuchAlexforallthetutorialshere,veryveryhelpfulandconstructive.

Butjustonething
youhavebeenusedHungarianNotationalmosteverywhereandthatsquitepainfulfornewbieslikemetoreadyour
code,C++isveryhardtoreadandlearnbyitself,HNjustmakeitmoreworstandIpreferredtoignoreitatallcost.
ComingfromPythonbackgroundandIlearntocodeinahumanreadableway,AlsoC++11isallaboutmakingC++fun
again,easiertolearn,useandteach.IbelieveHungarianNotationisexactoppositetothisultimategoalandImnotthe
onlyoneagainstthisobsoletestyleofcoding.

Thisisonlymypersonalopinion,thankyouagainandpleasekeepitupAlex!
Regards
ND

haziq
December17,2011at9:50amReply

Verynicetutorials.IamwritingablogonC/C++tutorials.Hopethatpeoplewillalsolikeit.

Rahul
May25,2011at4:52amReply

Awesome

shivam923
March30,2011at12:09pmReply

[code]
#include

http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 23/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++

#include
voidmain()
{
cout<<"Thnxforthesetutorials"
getch()
}

Bekim
September30,2010at5:24amReply

Ok,IjuststartedtolearnC++,andifoundfewwebsitesthatprovideswithlessons,butineachonethey
startgoodandafterwardstheyjumpsomanythings,anddon'tgivecompleteexamples,whicharevery
importantforabeginner(andtherearenoexercises).IreadyourintroductionanditsoundspromisingANDitwasvery
welldone,sohopefullytherestofthelessonsareaspromisedintheintroduction.iwillgiveitashot,andafterawhilei
willrewriteanothercomment.
Goodintroduction,ilikeditgoodjob

Mikey47
August25,2010at11:16pmReply

ThissurelyisthebestsiteforanOLDcodgerlikemyself.Usedtocodeinassemblymany(feelslike)
lifetimesagosoamhopingtorelearnfromthestartoncemore!:})

zeynep
August18,2010at3:34amReply

Thanks.Ihavebeguntolearncppseveraltimes.ButIdidntgetenoughfreetimes.Iwishtofinishmy
beginningstepwiththissite.Thanks.

MrAlshahawy
August13,2010at4:44amReply

HiAlex,

ItsreallygreatsitetolearningC++,Manythanksforyourefforts.

KeepUp.

Leone
August6,2010at11:52amReply

IamhopingthatthistutorialwillhelpmetolearnC++,Im15soihopethisworks

jesse_skill
August2,2010at1:54amReply

abouttimeagoodwebsitethanku

Marco
July26,2010at2:51pmReply

ThanksAlex,

IamruningintosomemajorproblemsbuildingmyC++programs.IamanewbieatC++andIamhopingthatIcanlearn
asmuchaspossible.

MM.

Ashokk
July14,2010at5:20amReply

http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 24/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++

Hi,

ThisC++guidewasveryhelpfulinlearningfornewcomerslikeme.
Itwouldbehelpfulifyoucouldsendmethetotalcontentfromthistutorialasafilesothaticanreadthis
offline.

Thanks&Regards
Ashok

Keenan
July13,2010at11:11amReply

ImcodingaprogramusingOpenCV,howdoIimportOpenCVsinformationintomyobjectfolders?

SaiGollapudi
July5,2010at7:24amReply

Cool!Iamlookingforwardtothisexperience.

Sai

Croast59
June26,2010at3:39amReply

Sweet!Ivebeeninterestedincomputerprogrammingforquitesometime!Thislookslikeagreatplacefor
n00bslikemyself^_^

*Bookmarks*

DarkOwner94
June22,2010at3:09pmReply

HeyHiThisIsaGoodIntroduction^.^

slier
June17,2010at5:19pmReply

1 #include <iostream>
2 using std::cout;
3
4 int main()
5 {
6 cout << "THANKS FOR THE GREAT TUTORIAL";
7 return 0;
8 }

nimcaan
May28,2010at9:43amReply

1 oh I didnt know that I can design games using c++ what have a fun

ENDLESSRAIN
May19,2010at11:29pmReply

1 wow nice im 15 and im beginning to learn c++

http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 25/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++

micky
May13,2010at6:05amReply

manilovethissite.ireallywasdesperatetolearnthingsnhereimatthecoolestsitefr
beginners.thnksfrthis..:)

michael
April20,2010at3:59amReply

Dontknowanythingaboutprogrammingwhatsoever.Maybethismightchangethat.

Anonymous
March15,2010at7:02pmReply

Ihavereadthisentiretutorial,andIwouldsayyoudontneedanypriorknowledgeaboutanyprogramming
language.

ilhan
February20,2010at1:00pmReply

superwebsite.thanks!bookmarked.

Noreaga
February16,2010at6:05amReply

letsdothis

Andrej
December24,2009at2:12pmReply

thanksforthispage!

Sean
December10,2009at10:01pmReply

Nicesite,Ilookforwardtolearningwithyoupeople

ganesh
December7,2009at12:47amReply

greatwork.

Lil
November15,2009at6:08amReply

Ineedananswertoabasicquestion.Eachtimewegetexamplecodetotestandlearndoweopenanew
projectorfile(usingcode::blocks)?IftheHelloWorldisopenandIaddanewfilethenitonlycompilesthe
HelloWorldDidImisssomething?

jhmex
November10,2009at7:18pmReply

thiswebsiteisgoodforme,Ihavealitleexperienceinc++butmidleoneinVB,Ineedmorebasic
languageprogramingknowledge,soIthinkthereisarightplacethatIlookfor

http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 26/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++

mp777
November5,2009at10:25amReply

Thissiteisgreat!Thanksforalltheworkyouputintoit.
DoyouknowofanyresourceswhereIcouldfindthesourcecodeforacompleteprogram?

MattSturgeon
December8,2010at2:12pmReply

JustlookupOpenSourceandFreeSoftware(Freeasinfreedom/libre)(makesuretoreadthe
licenses.)Trygnu.org.

csvan
October21,2009at5:20amReply

Alex,

Iapologizeifthisismorefitfortheforum,butIjustwantedtoask:

Iguessyouintendedthistutorialtobedonefrombeginningtoend,togetherwithworkingoffthepracticequestionsatthe
endofeachchapter,butisitequallyoktogothroughthematerialhoweveronewantsto?IamaskingbecauseIwould
liketogodirectlytomoreadvancedsectionsofthetutorial,andnotalwayshavetodoallthepracticequestionswithout
movingon.Atthesametime,Idontwanttodisrespectyoubyusingthematerialinawayyoudidnotintend,soitwould
bekindifyoucouldclearthisup.Thanks

WellingtonOronsaye
October3,2009at8:53amReply

IamjustbeginningtolearnC++language.Ihavevisitedotherwebsiteswiththeaimofgettingthe
necessarytoolsthatwillhelpmetobecomeagoodprogramerinC++language.Goingthroughyourtutorial,
Iimmediatelynoticedawellpreparedtutorial,easytofollow.Iamusingthismediumtoexpressmygratitudeforteaching
peoplehowtoprograminC++.Iamanengineerspecializedinthefieldofmechanicsoptionconceptionanddesign,I
haveagreatflairforthecomputerandeveryotherthingrevolvingaroundit.Thanksonceagainandkeepthegoodwork
going.

rose
September24,2009at9:08amReply

1 very useful site...this is what i have been looking for..thanks a looot alex..

Azar
July29,2009at10:59pmReply

Ahh.programinginCpp,THEmostblissful,ecstaticexperienceinlife.

ninjabob
July8,2009at5:00amReply

ExcellentTutorial/GuideimjuststartingoutinC++andfounditveryhelpfull.

isitavailableasaPDFbyanychance?Nointernetaccessonmylaptopandwouldliketokeepreadingasitravel

Me
June27,2015at11:59amReply

No,thereisnoPDF.lol

http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 27/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++

Ravit
July5,2009at1:18amReply

Thisisawonderfultutorialbutonething,Iwishyoucouldaddsomemoreextensiveexercisestopractice
everythingthatislearnedinthistutorial.

Dicennian
July1,2009at2:04pmReply

Im17yearsoldinaweek.Ivealwaysthoughtitstoolatetolearnstufflikethis.Iknow,itsoundsstupid.
ButonesforallIwanttogiveitatrysoIonedaymayfulfillmydreamofcreatingaclassic2DRPGfrom
scratch.

J.R.
May22,2009at8:32pmReply

IlearnedBasicwaybackinthemid1960s.FortyplusyearslaterIlearnedenoughHTMLtobecomea
danger.ProgrammingwillneverbemycallingallIeverreallywantedwastobeabletolookatsomelines
ofcodeandhaveafundamentalunderstandingofwhatwasgoingon.

IspentgoodmoneytotakebeginningC++classesattwoareaCommunityCollegesandastateuniversitywhatawaste
oftimeandmoney.SincediscoveringyourtutorialsiteIhavedonenothingmorethanspendaboutanhoureachevening
readingthesections,onesubtopicatatime.ThewayconceptsandideasarepresentedIcanevenunderstandandlearn!
AllIcansayis,Thankyousomuch.

YouhaveinspiredmesooomuchthatIwillbedownloadinganIDE/compilerandattempttowritesomemeaningfulC++
code.

SudhanshuRijal
May15,2009at8:28amReply

Iamabegineerandiguessithelpsmewell.

Noha
May13,2009at9:16amReply

Isitsurethattheskillofridingbicycledoesntfadebythetime?Ialwaysaskedmyselfthisquestionsince
mybicycleisbrokenanddonthavemoneytorepairit.

Beginner
April28,2009at3:29pmReply

IamabeginnerwhojustfinishedatutorialinpythonandthisisexactlywhatIwaslookingfortotrynext.

csvan
April16,2009at1:16amReply

Mycommendationstoyou,Alex,forthissite,itistrulyagreatwork.Irecommendedittomyformer
college,anditisnowpostedasaninternetresourceforacourseinC++StructuredProgrammingthere

Thanksyousomuchforyourrichcontributiontodevelopers.

Alex
May1,2009at9:24pmReply

Thissitegetslinkedtoalotasareferenceforprogrammingclasses.Toallfuturedevelopers,enjoy,
andhopefullyatsomepointinyourdevelopmentcareersyouwillbeabletomakeyourown
contributionstothecommunityatlarge.

http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 28/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++

devin
April12,2009at12:17amReply

doesallthiscomeinbookform

Alex
May1,2009at9:21pmReply

Nope,nobookformyet.Youllhavetocomevisitthewebsitefornow.

winson
April5,2009at7:24amReply

1 Exellent place, hope to learn C++ programming quick from here.

bmxer4130
March30,2009at1:25pmReply

1 w00t! This looks like a grrreat site!

Imran
March11,2009at1:39pmReply

ilikethissiteandiloveit.andihopeiwillgetmuchknowledgefromthiswebsite.

richardjohnson
February26,2009at8:43amReply

1 this is a great website Alex,the tutorials are awesome and easy to read and learn from!!!

Pieter
February5,2009at2:35amReply

Ihopethisworksout,sofarsogood.

Futuregamedesignerinthemaking!

mHiRa
January29,2009at3:51amReply

1 will try.. Hope to learn from here!...thanks! =)

san
January23,2009at6:37pmReply

ThisisbyfarthebesttutorialseriesonC++Ihaveencountered.Iusedtohavedifficultyunderstanding
C/C++.Butthissiteisthebest.Thematerialisorganizedverysystematically.Ienjoyreadingyour
material.Andya,Iunderstandpointersnow.Thanksabunch.

Mezo
January12,2009at1:35amReply

http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 29/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++

KEEPITUPVERYGOODSITE

allen
November26,2008at1:30amReply

Verygoodwebsite

BryanPakingan
October21,2008at9:15pmReply

WhatsupAlex!ItsBryan!ImtryingtobrushuponC++soIcanlearnhowtodosomeworkwithgaming
devtools.Actuallymakestheheadachegoawayafterallthetestingfromwork.Seeyouatworktomorrow!
UnlessyoureWFH.WFWFTMFW!

Alex
October25,2008at9:54amReply

HeyBryan!

Jamie
September30,2008at10:24pmReply

ILOVEyoursite!
ThisisexactlywhatIneed!

NischalNeupane
September28,2008at11:49pmReply

[code]GoodStuff!

Bryan
August12,2008at11:27pmReply

thankyousomuchineedawaytolearn

Namias
July18,2008at12:53amReply

Pagemakesanexcellentreference,topnotch.However,Idofinditalittleboringasalearningmethod.P
Imuptochapter8andIusuallyhavetoreadeverythingatleasttwiceforittosinkin(Iveheardthat
studiesshowthatonly10%ofknowledgeisretainedbyreading)ontopofthatIfindItendtogetalittleboredandstart
skimmingonlytorealizeIvemissedsomethingimportant.DontgetmewrongitsagreatguideIjustwishtheexamples
werealittlemorehandsonandfun!

Joyel
June24,2008at8:47pmReply

Thisisagreattutorial..Ihaveabout7yearstotalexperienceinmyfield(s)andhavebeenlookingfora
chancetohone/refinemyC++abilities.Ithinkthistutorialisgoingtodojustthat.Iamplanningonslowly
readingthroughtheentirething.

albes
June14,2008at10:26amReply

http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 30/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++

YesitsNiceiwilltrytoUPKEEPthoswhatyousuggesttonotwritewhenimtired
andlearntomaximumC++

steve
March31,2008at12:46amReply

1 hello, good site :)

Dangerdude
March2,2008at6:26pmReply

ThanksthisisagreatwebsiteIreallywantedtolearnaprograminglanguagefreebuteverythingyouhad
payforbutnotthis

wootington!
January27,2008at10:18amReply

yayIwannapogram:)

fame
December28,2007at6:56pmReply

wow,sinpalabras,porahora

Timon
December22,2007at1:41amReply

Thissiteisamazing.Imabeginner.

Foursmileyfacesinarowsurelymeanssomethingdontit?

Gditz
December15,2007at2:12pmReply

Sweet,IvebeendoingabitofprogramminginJavabutfromwhatIvebeentoldC++isthewaytogoif
youwanttocreategames.

Bill
February17,2016at1:48pmReply

Yeah,probably.

Cam
December1,2016at9:41amReply

Youreabitlate

Shaz
December11,2016at5:15amReply

Goodtoseethatpeoplestillvisitthisevergoldtutorial.

Dennis
December4,2007at11:56amReply

http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 31/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++

Nice!Thissiteiswhativebeenlookingfor,foralooooooooongtime

George
November30,2007at12:13pmReply

Niceeeforbeginerslikeme

Steve
November26,2007at6:01pmReply

BestsiteIvefoundforbeginners

Brandon
November24,2007at6:39pmReply

ThisSiteisgreat,ThisisexactlywhatIamlookingfor

Fox
November14,2007at12:47amReply

Woot!

sirius
August12,2007at4:56amReply

thatsexactlywhatimlookingfor.
imabeginner.

AlexDirix
June11,2007at10:38pmReply

Illtry.

postalhakx@Youtube
February18,2009at10:22amReply

Thisisawesomeiknowifmysoncanunderstandthisthanitsgood,sometimesilookoversome
ofthisstuff,awesomewebsiteandgreatTutorials!

Thanksxoxo

ronyags
March18,2016at9:55amReply

SolongtimetofindgoodresourcesPrayandIwilltrytolearntonight

AJHunter
January20,2017at12:51pmReply

didyoulearnanything?

http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 32/33
4/26/2017 0.1IntroductiontothesetutorialsLearnC++

http://www.learncpp.com/cpptutorial/01introductiontothesetutorials/ 33/33

You might also like