资源描述:
《程序设计基础c-第02讲-基本语法-复制》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、Inthispaper,by472831156PDFdocumentsmayhaveapoorbrowsingexperienceattheWAPend.ItisrecommendedthatyouchooseTXT,ordownloadthesourcefiletothenativeview.Programdesignbasicc++ThesecondspeakThebasicsyntaxofc++2008-3-1caojh@neusoft・edu.cnOne,two,three,four,five,six,seven.Thecharactersetofc++Ianguag
2、eandthetypeofworddataandthetypeofthestoredclassvariablequantityareconvertedThisisthemainstorySimpledatatypeconstantsandvariablesinthec++languagebasicsymbolc++languageThebasicsyntaxofc++Important:thischaptermainlyintroducesthebasicsymbolofc++c++languagebasicdatatypesIndetailavarietyofdatatyp
3、esofconstantsandvariablesissimpleintroducedthec++datatypeconversion.Keycontent:differenttypesofdatainc++andhowtousethemProgramminglanguageThetexthasashortvocabularyofshortwordsProgramclass,packagefunction,expressionconstant,variableretentionword,operator,andsoonThebasicarchitectureofthelang
4、uageThebasicarchitectureofcomputerlanguageBasicsymbolsofthec++languageAc++languagecharactersetbasicsymbolclassification,mainlyincludesthefollowingcharacters:(1)caselettersAtoZ,AtoZ(2)digitalcharacters0to9(3)specialcharacters='〃+_*/、[]{}()!#%&',."<>
5、_Spaces(95basicsymbolsformabasicsetofsymbo
6、ls)BasicsymbolofASCIIcomputeritselfcannotdirectlytodistinguishthedifferentletters,Numbers,andspecialsymbols,itistherootAccordingtothecorrespondingcodingeachsymboltoidentifythebasicsymbo1.ASCIIistheAmericanStandardCodeforInformationInterchange,whichrepresentsthe95basicsymbolsand33controlchar
7、actersin128digitaldatafrom0000000to1111111.Wordsinthec++languageIdentifier:acollectionofletters,Numbers,andunderscores.Thevariablename,arrayname,andfunctionnameintheprogramarecollectivelycalledidentifiers・Keywords(reservedwords):therearespecificmeaningsinc++;Predefinedidentifiers(predefined
8、identifiers):pre-definedcommandsfordefiningpredefinedcommands,libraryfunctions,suchasinclude,printf,etc・Allowprogrammerstoredefinesystempredefinedidentifiers:Customidentifier:thenameoperatorthattheprogrammerchoosesaccordingtotheneedoftheprogram;C++langua