1. 首页
  2. 编程语言
  3. C++ 
  4. Exceptional.C++

Exceptional.C++

上传者: 2018-12-25 19:22:22上传 PDF文件 25.87MB 热度 28次
Exceptional.C++中文This page was created by the unregistered version of CHM To PDF Converter by Theta-SoftwareI l@ve Reboardd FREVIOUISNEXTExceptional C++Herb SutterTable of contentsExceptional C++: 47 Engineering Puzzles,Programming Problems, and SolutionsByHerb SutterPublisher Addison WesleyPub date: November 18, 1999ISBN0-201-61562-2Page240FPrefaceHow to read this bookHow We got hGotw and Peer DirectAcknowledgmentsGeneric Programming and the C++ Standard LibraryItem 1. IteratorsSolutionItem 2. Case-Insensitive Strings-Part 1SolutionItem 3. Case-Insensitive Strings-Part 2so|utⅰItem 4. Maximally reusable generic Containers -Part 1SolutionItem 5. Maximally Reusable Generic Containers--Part 2SolutionAlternative: The Standard Library ApproachItem 6. Temporary ObjectsSolutionItem 7. Using the Standard Library(or, Temporaries Revisited)Solutibbs. theithome comThis page was created by the unregistered version of CHM To PDF Converter by Theta-SoftwareException-Safety Issues and TechniquesItem 8. Writing Exception-Safe Code--Part 1SolutionItem 9. Writing Exception-Safe Code--Part 2SolutionItem 10. Writing Exception-Safe Code--Part 3SolutionItem 11. Writing Exception-Safe Code-Part 4SolutionItem 12. Writing Exception-Safe Code-Part 5SolutionItem 13. Writing Exception-Safe Code-Part 6SolutionItem 14. writinng Exception-Safe Code-Part 7SolutionItem 15. Writing Exception-Safe Code--PartSolutionItem 16. Writing Exception-Safe Code-Part 9SolutionItem 17. Writing Exception-Safe Code-Part 10SolutionItem 18. Code Complexity-Part 1SolutionItem 19. Code Complexity-Part 2SolutionClass Design and InheritanceItem 20. Class mechanicsSolutionItem 21. Overriding virtual FunctionsSolutiItem 22. Class Relationships-Part 1olutionItem 23. Class Relationships-Part 2SolutionItem 24. Uses and abuses of inheritanceSolutionItem 25. Object-Oriented ProgrammingSolutionbbs. theithome comThis page was created by the unregistered version of CHM To PDF Converter by Theta-SoftwareCompiler firewalls and the pimpl idiomItem 26. Minimizing Compile-time Dependencies-Part 1SolutionItem 27. Minimizing Compile-time Dependencies-Part 2SolutionItem 28. Minimizing Compile-time Dependencies-Part 3SolutionItem 29. Compilation FirewallsSolutionItem 30. The Fast Pimpl" IdiomSolutionName Lookup, Namespaces, and the Interface PrincipleItem 31. Name lookup and the interface principle-Part 1SolutionItem 32. Name Lookup and the Interface Principle-Part 2SolutionItem 33. Name Lookup and the Interface Principle--Part 3SolutionItem 34. Name Lookup and the Interface Principle-Part 4SolutionMemory ManagementItem 35. Memory Management--Part 1SolutionItem 36. Memory Management--Part 2SolutionItem 37. AUTO ptrSolutionTraps, Pitfalls, and Anti-IdiomsItem 38. Object IdentitySolutionItem 39, Automatic ConversionsSolutionItem 40. Object Lifetimes-Part 1SolutionItem 41. Object Lifetimes-Part 2Solutionbbs. theithome comThis page was created by the unregistered version of CHM To PDF Converter by Theta-SoftwareMiscellaneous TopicsItem 42. Variable initialization -Or is it?SolutionItem 43. Const-CorrectnessSolutionItem 44. CastsSolutionItem 45. BOOLSolutionItem 46. Forwarding FunctionsSolutionItem 47. Control flowSolutionAfterwoBibliographI love Reboard4 PREVIOUS NEXT Ibbs. theithome comThis page was created by the unregistered version of CHM To PDF Converter by Theta-SoftwareI love reboardd FREVIOUISNEXTCopyrightMany of the designations used by manufacturers and sellers to distinguish their products are claimedaware of a trademark claim, the designations have been printed in initial capital letters or all capitalas trademarks. Where those designations appear in this book and Addison Wesley Longman, Inc, walettersThe author and publisher have taken care in the preparation of this book, but make no expressed orimplied warranty of any kind and assume no responsibility for errors or omissions. No liability isassumed for incidental or consequential damages in connection with or arising out of the use of theinformation or programs contained hereinThe publisher offers discounts on this book when ordered in quantity for special sales. For moreinformation please contactPearson Education Corporate Sales Division201W. 103rd streetIndianapolis, in 46290(800)428-5331corpsales@pearsoned.comLibrary of Congress Cataloging-in-Publication DataSutter, herbExceptional C++: 47 engineering puzzles, programming problems, and solutions / Herb Sutter.p. cm.Includes bibliographical references and indexISBN 0-201-61562-2(alk. paper)1. C++(Computer program language)I. TitleQA76.73.C153.s881999005.13′3-dc2199-046115CIPCopyright o 2000 by Addison Wesley Longman, IncAll rights reserved. No part of this publication may be reproduced, stored in a retrieval system, ortransmitted, in any form or by any means, electronic, mechanical, photocopying, recording, orotherwise, without the prior consent of the publisher. Printed in the United States of AmericaPublished simultaneously in CanadaCreditsProject Editor: Deborah LaffertyProduction Manager: Sarah WeaverDesign and Composition: Kim Arneybbs. theithome comThis page was created by the unregistered version of CHM To PDF Converter by Theta-SoftwareIndex: Michael looText printed on recycled paper.45678910CRs-040302014th printing, November 2001DedicationTo my family for their patient support, and to Eric Wilson, Jeff Sumner, Juana Chang, Larry Palmer,and the rest of the core PeerDirect development team, my extended family for the past four years:Declan westDoug Shelleyduk Loifan LongJustin KarabegovicKim NguyenMargot FulcherMark cheersmorgan JonesVioletta lukowThanks for everything, guyslOve Reboard4 PREVIOUS NEXT Abbs. theithome comThis page was created by the unregistered version of CHM To PDF Converter by Theta-SoftwareI love reboardd FREVIOUISNEXTForewordThis is a remarkable book but it wasn't until i had nearly finished reading it that i realized just howremarkable it is. This could well be the first book ever written for people who are already familiar withC++-all of C++. From language features to components of the standard library to programmingtechniques, this book skips from topic to topic, always keeping you slightly off balance always makingsure you're paying attention. Just like real c++ programs. Class design bumps into the behavior ofvirtual functions, iterator conventions run up against name lookup rules, assignment operatorssideswipe exception safety, compilation dependencies cross paths with exported templates. Just likthey do in real programs. The result is a dizzying maelstrom of language features, library components,and programming techniques at once both chaotic and magnificent. Just like real programsI pronounce Gotw such that it rhymes with"Gotcha ,and perhaps thats fitting. As I compared mysolutions to the book's quizzes against Sutter's answers, I fell into the traps he (and c++ laid beforeme more often than I'd like to admit. I could almost see herb smiling and softly saying " Gotcha! " foreach error I made. Some may argue that this proves i dont know much about C++. others may clairdemonstrates that C++ is too complex for anyone to master. I believe it shows that when you'reorking in C++, you have to think carefully about what you're doing C++ is a powerful languagedesigned to help solve demanding problems and it's important that you hone your knowledge of thelanguage, its library and its programming idioms as finely as you can The breadth of topics in thisbook will help you do that. So will its unique quiz-based formatVeteran readers of the C++ newsgroups know how difficult it is to be proclaimed a guru of the WeekVeteran participants know it even better. On the Internet, of course, there can be only one guru eachweek, but, backed by the information in this book you can reasonably hope to produce guru-qualitycode every time you programScott MeyersJune 1999I love Ru boardd FREVIOUNEXT kbbs. theithome comThis page was created by the unregistered version of CHM To PDF Converter by Theta-SoftwareI love reboardd FREVIOUISNEXTPrefaceExceptiona/ C++ shows by example how to go about solid software engineering. Along with a lot ofother material, this book includes expanded versions of the first 30 issues of the popular Internet C++feature Guru of the Week (or, in its short form, GotW), a series of self-contained C++ engineeringproblems and solutions that illustrate specific design and coding techniquesThis book isn't a random grab-bag of code puzzles; it's primarily a guide to sound real-worldenterprise software design in C++. It uses a problem/solution format because that's the mosteffective way i know to involve you, gentle reader, in the ideas behind the problems and the reasonsbehind the guidelines. although the Items cover a variety of topics, you'll notice recurring themes thatfocus on enterprise development issues, particularly exception safety sound class and module design,appropriate optimization and writing portable standards-conforming codeI hope you find this material useful in your daily work. But I also hope you find at least a few niftythoughts and elegant techniques, and that from time to time, as you're reading through these pages,you'll suddenly have an"Aha! Gnarly! "moment. After all, who says software engineering has to bedull?I l@ve RuboardPREVIOUNEXTbbs. theithome com
用户评论