Accelerated C++

Accelerated C++

作者:Andrew Koenig

出版社:Addison-Wesley Professional

出版年:2000-8-24

评分:9.0

ISBN:9780201703535

所属分类:行业好书

书刊介绍

内容简介

Want to learn how to program in C++ immediately? Want to start writing better, more powerful C++ programs today? Accelerated C++'s uniquely modern approach will help you learn faster and more fluently than you ever believed possible. Based on the authors' intensive summer C++ courses at Stanford University, Accelerated C++ covers virtually every concept that most professional C++ programmers will ever use -- but it turns the "traditional" C++ curriculum upside down, starting with the high-level C++ data structures and algorithms that let you write robust programs immediately. Once you're getting results, Accelerated C++ takes you "under the hood," introducing complex language features such as memory management in context, and explaining exactly how and when to use them. From start to finish, the book concentrates on solving problems, rather than learning language and library features for their own sake. The result: You'll be writing real-world programs in no time -- and outstanding code faster than you ever imagined.

精彩摘录

Theinttypeissufficientforrowsbecausethenumberofrowsdependsonlyonthevalueofpad,whichwecontrol.EveryC++implementationisrequiredtoalloweveryintvariabletotakeonvaluesuptoatleast32767,whichisplenty.Nevertheless,wheneverwedefineavariablethatcontainsthesizeofaparticulardatastructure,itisagoodhabittousethetypethatthelibrarydefinesasbeingappropriateforthatspecificpurpose.

——引自第24页


C++offersawayofsayingthataparticularnameshouldalwaysbeinterpretedascomingfromaparticularnamespace.Forexample,bywriting

——引自第25页

相关推荐

微信二维码