C++.Primer第六版完全清晰版

所需积分/C币:49 2014-03-31 21:33:16 7.7MB PDF
收藏 收藏 2
举报

c++ primer 第六版,非常清晰完全版本。英文
Developer's Library ESSENTIAL REFERENCES FOR PROGRAMMING PROFESSIONALS Developer's Library books are designed to provide practicing programmers with unique, high-quality references and tutorials on the programming languages and technologies they use in their daily work All books in the Developer's Library are written by expert technology practitioners who are especially skilled at organizing and presenting information in a way that's useful for other programmers Key titles include some of the best, most widely acclaimed books within their topic areas: PHP G MySQL Web Development Python essential reference Luke Welling Laura Thomson David beazle ISBN-13:978-0-672-32916-6 ISBN-13:978-0-672-32862 MySQL PostgresQL Paul dubois Korry douglas ISBN-13:978-0-672-32938-8 ISBN-13:978-0-672-32756-8 Linux Kernel development C++ Primer plus Robert love Stephen prata ISBN-13:978-0-672-32946-3 ISBN-13:978-0-321-77640-2 Developer,'s library books are available at most retail and online bookstores as well as by subscription from Safari Books Online at safari informit. com Developer's Librar informit. com/devlibrary C++ Primer plus Sixth editⅰon Stephen prata 六 Addison- Wesley Upper Saddle River,NJ· Boston· Indianapolis· San francisco New York· Toronto· Montreal· London· Munich· Paris· Madrid Cape town· Sydney· Tokyo· Singapore· Mexico city Many of the designations used by manufacturers and sellers to distinguish their products Acquisitions Editor are claimed as trademarks. Where those designations appear in this book, and the publish- Mark Taber er was aware of a trademark claim, the designations have been printed with initial capital Development letters or in all capitals. Editor The author and publisher have taken care in the preparation of this book, but make no Michael Thurston expressed or implied warranty of any kind and assume no responsibility for errors or omis- Managing Editor sions. No liability is assumed for incidental or consequential damages in connection with or Kristy hart arising out of the use of the information or programs contained herein Project Editors The publisher offers excellent discounts on this book when ordered in quantity for bulk pur- Samantha chases or special sales, which may include electronic versions and/or custom covers and Sinkhorn content particular to your business, training goals, marketing focus, and branding interests Jovana shirle For more information, please contact Copy Editor U.S. Corporate and Government sales Bart reed (800)3823419 corpsales@pearsontechgroup.com Indexer Lisa Stumpf For sales outside the United States, please contact Proofreader International sales Language international@pearson.com Logistics, LLC Visit us on the Web: informit. com/ aw. Technical reviewer David horvath Library of Congress Cataloging-in-Publication data is on file Publishing Copyright o 2012 Pearson Education, Inc Coordinator Vanessa evans All rights reserved. Printed in the United States of America. This publication is protected by copyright, and permission must be obtained from the publisher prior to any prohibited repro Cover Designer duction, storage in a retrieval system, or transmission in any form or by any means, elec- Gary Adair tronic,mechanical,photocopying, recording, or likewise. To obtain permission to use materi-Compositor al from this work, please submit a written request to Pearson Education, Inc, Permissions Nonie Ratcliff Department, One Lake Street, Upper Saddle River, New Jersey 07458, or you may fax your request to(201)236-3290 SBN-13:978032177640-2 SBN-10:0-321776402 Text printed in the United states on recycled paper at R. R. Donnelley in Crawfordsville, Indiana Second printing: January 2012 To my parents, with love Contents at a Glance Introduction 1 1 Getting Started with C++ 9 2 Setting Out to C++ 27 3 Dealing with Data 65 4 Compound Types 115 5 Loops and Relational Expressions 195 6 Branching Statements and Logical Operators 253 7 Functions: C++'s Programming Modules 305 8 Adventures in Functions 379 9 Memory Models and Namespaces 447 10 Objects and classes 505 11 Working with Classes 563 12 Classes and Dynamic Memory Allocation 627 13 Class Inheritance 707 14 Reusing Code in C++ 785 5 Friends, Exceptions, and More 877 6 The string class and the Standard Template Library 951 17 Input, output, and Files 1061 8 visiting with the New C++ Standard 1153 Appendixes a Number bases 1215 B C++ Reserved words 1221 c The ascll character Set 1225 D Operator precedence 1231 E other Operators 1235 F The string Template Class 1249 G The Standard Template Library Methods and Functions 1271 H Selected Readings and Internet Resources 1323 I Converting to Iso Standard C++ 1327 J Answers to Chapter Reviews 1335 Index 1367 Table of contents Introduction 1 1 Getting Started with C++ 9 Learning C++: What Lies Before You 10 The Origins of C++: A Little History 10 Portability and standards 15 The Mechanics of Creating a Program 18 Summary 25 2 Setting out to C++ 27 C++ Initiation 27 C++ Statements 41 More c++ statements 45 Functions 48 Summary 61 Chapter Review 62 Programming Exercises 62 3 Dealing with Data 65 Simple variables 66 The const Qualifier 90 Floating-Point Numbers 92 C++ Arithmetic Operators 97 Summary 109 Chapter Review 110 Programming Exercises 111 4 Compound Types 115 ntroducing Arrays 116 Strings 120 Introducing the string Class 131 Introducing Structures 140 Unions 149 Enumerations 150 Pointers and the free store 153 Pointers, Arrays, and Pointer Arithmetic 167 Combinations of Types 184 Array Alternatives 186 Summary 190 Chapter Review 191 Programming EXercises 192 Contents 5 Loops and Relational Expressions 195 Introducing for Loops 196 The while Loop 224 The do while Loop 231 The Range-Based for Loop(C++11) 233 Loops and Text Input 234 Nested Loops and Two-Dimensional Arrays 244 Summary 249 Chapter Review 250 Programming EXercises 251 6 Branching Statements and Logical Operators 253 The if statement 254 Logical Expressions 260 The ectype Library of Character Functions 270 The ? Operator 273 The switch statement 274 The break and cont inue statements 280 Number-Reading Loops 283 Simple File Input/output 287 Summary 298 Chapter Review 298 Programming Exercises 301 7 Functions: C++'s Programming Modules 305 Function review 306 Function Arguments and Passing by Value 313 Functions and Arrays 320 Functions and Two-Dimensional Arrays 337 Functions and C-Style Strings 339 Functions and structures 343 Functions and string Class objects 353 Functions and array objects 355 Recursion 357 Pointers to functions 361 Summary 371 Chapter Review 372 Programming Exercises 374 8 Adventures in Functions 379 C++ Inline functions 379 Reference variables 383 Default Arguments 409 Function Overloading 412 Function Templates 419

...展开详情
试读 127P C++.Primer第六版完全清晰版
立即下载 低至0.43元/次 身份认证VIP会员低至7折
一个资源只可评论一次,评论内容不能少于5个字
huoshi7640 根本就不是priemr,而是priemer plus ,还是英文版的。垃圾
2017-09-25
回复
baidu_25868975 质量很好 谢谢 但要注明是英文版
2017-01-28
回复
sung_june 也不说清楚是英文版的,浪费积分!!!!
2016-09-06
回复
关注 私信 TA的资源
上传资源赚积分,得勋章
最新推荐
C++.Primer第六版完全清晰版 49积分/C币 立即下载
1/127
C++.Primer第六版完全清晰版第1页
C++.Primer第六版完全清晰版第2页
C++.Primer第六版完全清晰版第3页
C++.Primer第六版完全清晰版第4页
C++.Primer第六版完全清晰版第5页
C++.Primer第六版完全清晰版第6页
C++.Primer第六版完全清晰版第7页
C++.Primer第六版完全清晰版第8页
C++.Primer第六版完全清晰版第9页
C++.Primer第六版完全清晰版第10页
C++.Primer第六版完全清晰版第11页
C++.Primer第六版完全清晰版第12页
C++.Primer第六版完全清晰版第13页
C++.Primer第六版完全清晰版第14页
C++.Primer第六版完全清晰版第15页
C++.Primer第六版完全清晰版第16页
C++.Primer第六版完全清晰版第17页
C++.Primer第六版完全清晰版第18页
C++.Primer第六版完全清晰版第19页
C++.Primer第六版完全清晰版第20页

试读结束, 可继续阅读

49积分/C币 立即下载 >