Thông tin tài liệu:
lập trình là không giới hạn chỉ in văn bản đơn giản trên màn hình. Để đi xa hơn một chút trênvà để trở thành có thể viết các chương trình thực hiện nhiệm vụ hữu ích thực sự tiết kiệm chúng tôi làm việc chúng ta cần phải giới thiệukhái niệm của biến.Hãy để chúng tôi nghĩ rằng tôi yêu cầu bạn giữ nguyên số 5 trong bộ nhớ tinh thần của bạn, và sau đó tôi yêu cầu bạn ghi nhớ cũngsố 2 cùng một lúc....
Nội dung trích xuất từ tài liệu:
C++LanguageTutorial cplusplus.com C++LanguageTutorial Writtenby:JuanSoulié Lastrevision:June,2007 http://www.cplusplus.com/doc/tutorial/ Availableonlineat: Theonlineversionisconstantlyrevisedandmaycontaincorrectionsandchanges TheC++LanguageTutorial Thisdocumentanditscontentiscopyrightofcplusplus.com©cplusplus.com,2008.Allrightsreserved.Anyredistributionorreproductionofpartorallofthecontentinanyformisprohibitedotherthantoprintapersonalcopyoftheentiredocumentordownloadittoalocalharddisk,withoutmodifyingitscontentinanyway(including,butnotlimitedto,thiscopyrightnotice).Youmaynot,exceptwithexpresswrittenpermissionfromcplusplus.com,distributethecontentofthisdocument.Normayyoutransmititorstoreitinanyotherwebsiteorotherformofelectronicretrievalsystem. 2 © cplusplus.com 2008. All rights reserved TheC++LanguageTutorial TableofcontentsTableofcontents.................................................................................................................................3Introduction ........................................................................................................................................5 . Instructionsforuse...................................................................................................................................5BasicsofC++........................................................................................................................................7 Structureofaprogram............................................................................................................................. 7 Variables.DataTypes.............................................................................................................................. 11 Constants................................................................................................................................................17 Operators................................................................................................................................................21 BasicInput/Output .................................................................................................................................29 .ControlStructures..............................................................................................................................34 ControlStructures...................................................................................................................................34 Functions(I)............................................................................................................................................41 Functions(II)...........................................................................................................................................47Compounddatatypes........................................................................................................................54 Arrays......................................................................................................................................................54 CharacterSequences................................ ...