资源描述:
《c语言与c 的区别(the difference between c language and c )》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、c语言与c++的区别(ThedifferencebetweenClanguageandc++)"C/C++"means"C"or"C++",whichreferstoaseriesoflanguagesTherelationshipbetweenCandC++:Assaidupstairs,itistherelationshipbetweenWin98andwinXP.C++addednewtheoriesandplayednewtricksonthebasisofC.Soit'scalledCgaga.ThedifferencebetweenCandC++:Cisastruct
2、uredlanguagethatfocusesonAlgorithmsanddatastructures.ThedesignofaCprogramisprimarilyconcernedwithhowtoprocess(orcontrol)theprocessofinput(orenvironment)throughaprocess.C++,theprimaryconsiderationishowtoconstructanobjectmodel,sothismodelcanfitwiththecorrespondingproblemdomain,sowecangettheobje
3、ctstateinformationoutputorprocess(transaction)control.SothebiggestdifferencebetweenCandC++isthattheirideasforsolvingproblemsaredifferent.ThereasonwhyC++ismoreadvancedthanCisthattheconceptofdesignhasbeenintegratedintoC++".Somemorequotes:What'sthedifferencebetweenC++andC?Let'sanalyzeitstepbyste
4、pClass,class,forbeginners,itisadrag.Classencapsulationmakesbeginnerstiredofprograms,uncomfortableandtroublesome.Two,reference,thereferenceisC++thebestasfaraspossiblenottouseit,unlesscannotbut.Referencesaremoreconfusingforbeginners,anddonotknowwhichreferenceisandwhichisthevariable.Three,functi
5、onoverloading,functionoverloadingbeginnerslearnwhatdidnotseembad,butthiswillenablebeginnerstosubconsciouslytotheimportanceoftheClanguagevariabletypesofdesalination,rememberthatCisthelanguageofthemostsensitivevariabletype,thetypeofthevariableimportanceinClanguageisself-evident.Four,theflowoper
6、ator,thesameasabove,makestheimportanceofvariabletypesfadeandsometimesleadstopuzzlingresultsforbeginners.Five,operatoroverloading,typicaladvancedapplications,beginnersmaynotneedit,thisstuffwillmakethemthinkC++isdifficult,highthreshold,cannotread.Six,inheritance,aswellasvirtualfunctions,seemabs
7、truse,practical,verylowvalue.Ihaven'tcommentedonanythingelse,suchasnew,deleteoperators,etc.Seven,misunderstanding:inquestionandanswerform:Q:C++isobject-oriented,andCisproceduraloriented?Answer:secondpairs,thefirstquestionanderror,C++isnotcomp