C++大学教程(第7版&英文原版&全彩页).pdf

所需积分/C币:50 2011-10-16 11:59:57 246.55MB PDF
收藏 收藏
举报

《C++大学教程(第七版)》,原名《C++ How to Program (7th Edition)》,作者:【美】Paul Deitel、Harvey M. Deitel。本书是英文原版,全彩页,pdf 格式,大小 252MB。 内容简介: 本书是一本讲解c++编程的优秀教材,全面介绍了面向对象编程的原理和方法,详细分析了与c++编程有关的技术,具体包括类与对象、控制语句、函数与递归、数组、指针、运算符重载、继承、多态、模板、流输入/输出、异常处理、文件处理、搜索与排序、数据结构、标准模板库等内容,本书的同步学习网站上还包含了更多的扩展内容。全书以“活代码”方式详细分析了每个知识要点,是初学
Deitel Developer Series AJAX, Rich Internet Applications and iPhone for Programmers Web Development for Programmers ava for programmers C++ for Programmers avascript for Programmers C# 2008 for Programmers, 3/E LiveLessons Video Learning Products wiWWdeitel. com/books/LiveLessons/ Java Fundamentals Parts 1 and 2 C++ Fundamentals parts 1 and 2 C+ Fundamentals parts 1 and 2 JavaScript Fundamentals Parts I and 2 To receive updates on Deitel publications, Resource Centers, training courses, partner offers and more, please register for the free Deite/ Buzz Online e-mail newsletter at www.deitel.com/newsletter/subscribe.html ollow us on witter adeste and become a deitel Associates fan on facebook Www.deitel.com/deitelfan To communicate with the authors. send e-mail to dei tel adeitel com For information on government and corporate Dive-Into Series on-site seminars offered by Deitel Associates, Inc. worldwide, visit www.deitel.com/training/ or write to deitel adeitel, com For continuing updates on Prentice Hall/Deitel publications visit ww, deitel. com www.pearsonhighered.com/deitel Check out our Resource Centers for valuable web resources that will help you master Java, other important programming languages, software and Internet-and web-related topIcs: www.deitel.com/resourcecentErs.htmi Library of Congress Cataloging-in-Publication Data On file Vice President and Editorial Director, ECS: Marcia Horton Editor-in-Chief, Computer Science: Micael hirsch Associate Editor: Carole Snyder Supervisor/ Editorial Assistant: Dolores Mars Director of Tearm-Based Project Management: Vince Obrien Senior Managing editor: Scott Dy Managing editor: Robert Engelhardt A/V Production Editor: Greg Dulles Art Director: Kristine Carney Cover Design: Abbey S Deitel, Harvey M. Deitel Francesco Santrlucid, Kristine Carney Interior Design: Harvey M. Deitel, Kristine Carney Manufacturing Manager Al e is Heydt-Lomg Manufacturing Buyer: Lisa McDowell Director of Marketing Margaret Waples Marketing MA Erin PEARSON G 2010 by Pearson Education, Inc. Prentice Upper Saddle River, New Jersey 07458 Th eaLltnarsal d publisher of this book have used their best efforts in preparing this book These efforts include the development, research, and testing of the theories and programs to determine their effectiveness. The authors and pub- lisher make no warranty of any kind, expressed or implied, with regard to these programs or to the documentation containedin this book. The authors and publisher shall not be liable in any event for inciden tal or consequential dam- ages in connection with, or arising out of, the furnishing, performance, or use of these programs. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks and registered trademarks. Where those designations appearin this book, and Prentice Hall and the authors were aware of a trademark claim, the designations have been printed in initial caps or all caps. All product names mentioned remain trademarks or registered trademarks of their respective owners All rights reserved. No part of this book may be reproduced, in any form or by any means, without permission in writEr ng from the publisher Printed in the united states of america 10987654321 工sRN-10:0-13-611726-0 工SBN-13:978-0-13-611726-1 Pearson education ltd lordon caBs Education Australia Pty. Ltd, Sydney Pearson Education Singapore, Pte. Lte Pearson Education North Asia Ltdas Hong Kong Pearson Education Canada, Inca, Toronto Pearson educacion de mexico, sa, de cy Pearson Education-Japan, Toky Pearson Education Malaysia, Pte Ltd Pearson Education, Inca, Upper Saddle river New jersey Trademarks DEITEL, the double-thumbs-up bug and DIVE INTO are registered trademarks of Deitel and Associates, United States and other countries. Pearson Education is independent of Sun Microsystems Ing the Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. Microsoft, Internet Explorer and the Windows logo are either registered trademarks or trademarks of Microsoft Corporation in the United States and/ or other countries Pong dassic video game courtesy of Atari Interactive, Inc. @2009 Atari Interactive, Inc. All rights reserved. Used with permission UNIX is a registered trademark of The Open Group. In memony of joseph Weizenbaum MIT Professor Emeritus of Computer Science for making us think. Paul and harvey deitel Deitel resource Centers Our resource centers focus on the yast amounts of free content available online find resources downloads, tutorials, documentation, books, c-books, journals, articles, blogs, RSS feeds and more on many of today s hottest programming and technology topics. For the most up-to-date list of our Resource centers. visits wWwdeitel.com/ResourceCenters.htm Let us know what other Resource Centers you'd like to sec! Also, please register for the frcc Deite/B Buzz Onli 起ecI newsletter at Www.deitEl.com/newsletter/subscribe.htm1 Computer Science Ruby on rails Java Se6 Search engines Functional Programming Silverlight Java se 7 (Dolphin Share point Regular expressions UML Resource center Skype Visual basic JavaFx Web sery FErs Programming Ⅵ isual c++ wilkis Apple iphone visual Studio Team System Microsoft Windows vista ASpNET 3.5 Web 3d technologies ASPNET Adobe flex Web services ASPNET 3. 5 web 2.0 ajax windows presentation ASPNET Ajax Alert services Ar Fc undation CH ttention Economy ASPNET Ajax XHTML DotNetNuke①DNN Bl ASpnet XML Internet Explorer 7(IE7) Building Web C Microsoft lino Communities C+ Games and Game NET Community Generated C++ boost libraries Programming NI TET 3.0 Content C++ Game Programming Computer Game pro- NET 3.5 Face book developer C Sharepoint gramming Platform Code Search Engines and Computer Games Silverlight Face book social ads Mobile Gaming CIC Computer Game Sudoku Visual C++ Goople video rogramming Isual stdio eam Google Web Toolkit CSS 2.1 Bu stena (GWTY Dojo filiate programs Windows presentation Internet vide Facebook Developer plat Competitive analysis foundation ost Facebook social ads Windows vista 吧Ln Based services Flash 9 Google adse cnsc Microsoft Popfly Mashups Functional ProgrammIng Googe Analytics ava Google services Open Source and Microformats Recommender Systems Java Certification and Internet Advertising LAMP Stack RSS sessment Te Internet business Apach ial Graph Java Design Patterns Initiative DotNetnuke①DNN) ocial media Java ee 5 Internet public relations Eclipse Java se6 ocial Networking Link building Fi Ireton Software as a service Java SE 7 (Dolphin) Location- Based services Lnux Resource center Online Lead generation MySQL Virtual worlds JavaFX podcasting g open Source Web 2.0 JavaScrip Search Engine Optimiza- Perl Web 3.0 ISON clon PHP Microsoft LINQ Selling Digital Content Microsoft popfly Sitemaps Dive into Web 2.0 NET Web Analytics neT 3.0 Website monetization Software eDMond NET 3.5 You lube and adsense Web2 ebook OpenGL DotNetNuke NN) Perl eclipse Other to PHP a Telok Computer games Programming Projects Java Certification and Internet Explorer 7(IE7) Computing Jobs Assessment Testing Gadgets and gizmos Reular expressions Java Design Patterns MySQL Ring te Ants Ruby Java ee 5 pen source Sudoku This page intentionally left blank Pre eface “ The chief merit of language is clearness…," -Galen Welcome to the world of C++ programming and C++ How to Prognam, Seventh Edition This book presents leading-edge computing technologies for students, instructors and software development professionals At the heart of the book is the Deitel signature"live-code approach. Concepts are presented in the context of complete working C++ programs, rather than in code snippets Each code example is immediately followed by one or more sample executions. All the sourcecodeisavailableatwww.deitel.com/books/cpphtp7/. New and updated Features Here are the updates we' ve made for C++ How to Program, Zle Making a Difference Exercise Sets. We encourage you to use computers and the Internet to research and solve problems that really matter. These new exercises are meant to increase awareness of important issues the world is facing. We hope you'll approach them with your own values, politics and beliefs Prefer string Objects to C Strings. C++ offers two types of strings-string class objects(which we use starting in Chapter 3)and C-style, pointer-based strings We continue to include some early discussions of C strings to give you practice with pointer manipulations, to illustrate dynamic memory allocation with new and de lete and to prepare you for working with C strings in the "legacy code hat you'll encounter in industry. In new development, you should favor string class objects. We've replaced most occurrences of C strings with instances of C++ ass string to make programs more robust and eliminate many of the security problems that can be caused by manipulating C strings Prefer vectors to C Arrays. Similarly, C++ offers two types of arrays-vector class objects(which we use starting in Chapter 7)and C-style, pointer-based ar rays As appropriate, we use class template vector instead of C arrays throughout the book. However, we begin by discussing C arrays in Chapter 7 to prepare you for working with legacy code and to use as a basis for building your own custom- ized Array class in Chapter 11, Operator Overloading New Companion Website(ww. pearson ighered. com/deitel/). This editions Companion Website includes a wealth of material to help you with your study of C++ programming. We provide an extensive number of Video Notes that walk you through the code examples in 14 of the key chapters, solutions to many of the book's exercises, bonus chapters, and more (see the Companion Website sec tion later in this Preface) xxiv Preface Dynamic Memory Allocation. We moved dynamic memory allocation later in the uses dynamic memory) has also been moved to Chapterl/3 discussion(which book to Chapter 11, where it's first needed. The"proxy clas Titled Programming Exercises. We've titled all the programming exercises. This and the previous two features help instructors tune assignments for their classes Eliminated "Magic Numbers. We eliminated all uses of truly magic"numbers and replaced them with named constants or enums as appropriate. In a few cases in which the context is absolutely clear, we dont consider numbers to be"magic Enhanced Use of const. We increased our use of const bookwide to encourage tter software engineering. Eliminated "return 0;. According to the C++ standard, any main function that does not contain"return o: as its last statement is assumed to return 0. For this reason, we've eliminated"return 0; from all but the first program in the book Use" using namespace std; " Previously, we specified a using declaration for every individual item that we referenced from a C++ Standard Library header file Since these items are well known and unlikely to have name collisions with other C++libraries, we now use "using namespace std: "for all C++ Standard Library components from Chapter 3 forward. This simplifies the e programs and saves many lines of code New Design. The book has a new interior design that graphically serves to orga nize, clarify and highlight the information, and enhances the books pedagogy Reorganized Optional OOD Case Study. We tuned the Object-Oriented Design UML automated teller machine (ATM) case study and reorganized it into two optional chapters(25 and 26)that present the ATMs design and complete code implementation. This is a nice business example that most students can relate to Working through these two chapters as a unit will help you tie together many of the object-oriented programming(OOP)concepts you learn in Chapters 1-13 A key concept in OOP is the interactions among objects. In most textbooks, the code examples create and use only one or two objects. The ATM case study gives you the opportunity to examine the interactions among many objects that pro- vide the functionality of a substantial system. For instructors who wish to cover the case study in a distributed manner, we've indicated where each section in Chapters 25 and 26 can be covered inline with earlier chapters in the book. Function Pointer Exercises. We added several real-world function-pointers exer cises.TheseareavailableattheCompanionWebsiteandatwiww.deitel.com books/cpphtp7/. Improved Terminology Sections. We've added page numbers for the defining occurrences of all terms in the terminology lists for easy reference New Features in the Next C++ Standard We discuss four new language features that will be part of the next C++ standard and are already implemented by some of today s C++ compilers. These include Initializer Lists for User-Defined Types. These enable objects of your own types to be initialized using the same syntax as built-in arrays

...展开详情
试读 127P C++大学教程(第7版&英文原版&全彩页).pdf
立即下载 低至0.43元/次 身份认证VIP会员低至7折
一个资源只可评论一次,评论内容不能少于5个字
心蓝168 很好地书籍,推荐,一定要坚持学习~适合入门!
2018-05-30
回复
antinomy2008 很好,很经典!
2017-11-19
回复
alok88 很好地书籍,推荐
2016-07-02
回复
是真汉子就搞机 书很不错适合入门,就是很长需要坚持
2016-04-30
回复
jinguliuti 很好地书籍,推荐
2015-12-07
回复
一只游荡的小幽魂 英文版的比中文版的还要多出来一点啊,值得看看
2015-11-27
回复
white__water 非常不错的一本书 适合入门
2015-06-27
回复
JLU_Ab 看了第五版 非常不错 生动详细 比谭老的强
2015-06-17
回复
baker 好书,值得分享
2015-06-03
回复
qq_16094343 书很好 但是翻起来不是很方便 还是建议买书
2015-06-03
回复
  • GitHub

    绑定GitHub第三方账户获取
  • 至尊王者

    成功上传501个资源即可获取
关注 私信 TA的资源
上传资源赚积分or赚钱
最新推荐
C++大学教程(第7版&英文原版&全彩页).pdf 50积分/C币 立即下载
1/127
C++大学教程(第7版&英文原版&全彩页).pdf第1页
C++大学教程(第7版&英文原版&全彩页).pdf第2页
C++大学教程(第7版&英文原版&全彩页).pdf第3页
C++大学教程(第7版&英文原版&全彩页).pdf第4页
C++大学教程(第7版&英文原版&全彩页).pdf第5页
C++大学教程(第7版&英文原版&全彩页).pdf第6页
C++大学教程(第7版&英文原版&全彩页).pdf第7页
C++大学教程(第7版&英文原版&全彩页).pdf第8页
C++大学教程(第7版&英文原版&全彩页).pdf第9页
C++大学教程(第7版&英文原版&全彩页).pdf第10页
C++大学教程(第7版&英文原版&全彩页).pdf第11页
C++大学教程(第7版&英文原版&全彩页).pdf第12页
C++大学教程(第7版&英文原版&全彩页).pdf第13页
C++大学教程(第7版&英文原版&全彩页).pdf第14页
C++大学教程(第7版&英文原版&全彩页).pdf第15页
C++大学教程(第7版&英文原版&全彩页).pdf第16页
C++大学教程(第7版&英文原版&全彩页).pdf第17页
C++大学教程(第7版&英文原版&全彩页).pdf第18页
C++大学教程(第7版&英文原版&全彩页).pdf第19页
C++大学教程(第7版&英文原版&全彩页).pdf第20页

试读结束, 可继续阅读

50积分/C币 立即下载 >