The STL can be used to simplify development with containers like vectors (resizeable arrays), lists, and maps. The heart of this book provides a nicely approachable tutorial on these container types, along with examples geared toward Visual C++ 6. (In the past, STL didn't coexist well with the Microsoft foundation class library (MFC). The authors provide the correct code, including a tour of the new Standard Library header files, which supercede the older C headers.) They also cover other standard classes (like strings and complex numbers), which help simplify everyday programming tasks.
The real power of STL is arguably in its support for "generic programming" techniques, and the authors do a fine job here of outlining these features up close without getting bogged down in the often arcane syntax of STL. They look at dozens of algorithms (which can be used to sort or modify data in collections, for instance), as well as the various iterator classes (which are used to navigate through containers).
STL will perhaps never be easy to master, but Visual C++ Templates makes it more approachable for any programmer who wants to improve his or her basic skills with these standard--but sometimes difficult--classes. Written by two expert computer authors (who besides being educators have written over four dozen books together), this title fills a worthwhile niche by demystifying STL and making it something that you can use every day for greater productivity. --Richard Dragan
Topics covered: Overview of the Standard C++ Library and the Standard Template Library (STL), STL history and features, STL reference, tutorial, sample code, template syntax, template functions and classes, namespaces, new casting operations, STL function objects, exception handling, STL support templates, algorithm and iterator reference and tutorial, vectors, stacks and queues, lists, maps, numeric support templates, sets and multisets, allocators, bitsets, C++ Standard Library header files reference, assertions, exceptions, types and strings, time functions, streams, and valarrays.
This is an exciting time to be a programmer-exciting, but sometimes a little scary. The knowledge base for C and C++ programmers has grown tremendously in the past few years. The first hurtle included procedure-oriented Windows programming, but has now grown to include object-oriented MFC Windows programming, OLE, STL and more!
This book assumes a knowledge of object-oriented C++ programming at the beginner/intermediate level. You'll quickly apply your programming knowledge to these new programming concepts.
In this book, Murray and Pappas will guide you through a solid integrated understanding of the latest STL (Standard Template Library) concepts couple with MFC's (Microsoft Foundation Class library) programming concepts that apply to both Windows 98 and Windows 2000.
The first six chapters deal exclusively with the STL. You'll learn terms, definitions and reasons for using the STL. Many command line examples will teach new programming concepts in simple applications.
In the next six chapters, you'll learn how to develop object-oriented MFC Windows applications. It's all here-wizards, icons, cursors, menus, dialog boxes and more. When you complete this group of chapters, you'll have a solid understanding of object-oriented programming under Windows.
In the final four chapters, STL concepts from the first six chapters are integrated with MFC Windows applications, from the second six chapters, to build robust MFC Windows applications using the STL. When you complete these four chapters, you understand how well both the STL and MFC integrate together to produce powerful new applications.
Product Details
Would you like to update product info or give feedback on images?
|
|
Share your thoughts with other customers:
|
||||||||||||||||||||||
|
Most Helpful Customer Reviews
7 of 8 people found the following review helpful:
1.0 out of 5 stars
Don't be misled,
By A Customer
This review is from: Visual C++ Templates (Prentice Hall Ptr Microsoft Technologies Series) (Paperback)
I have to qualify my one-star rating of this book. The book does an adequate job of explaining the origins and history of STL, and could be a reasonably good reference guide for STL and the Standard C++ headers if you don't already have one. Unfortunately, it stops there. The reason I rate it one star is that the back cover and inside flap seem to promise a great deal more meat than is actually present. I was expecting to see an integrated approach and examples of using STL with MFC classes (such as using an iterator to process a collection of MDI windows). No such luck. The examples are primarily command line interface applications using << cin and >> cout. Each chapter focuses on one template or standard header. The examples are aimed at showing how specific individual template features work rather than at combining capabilities of multiple templates or templates and MFC classes. All in all, I'd recommend spending your money on a book that doesn't promise to be something that it's not.
2 of 2 people found the following review helpful:
1.0 out of 5 stars
All talk and hardly any MFC,
By A Customer
This review is from: Visual C++ Templates (Prentice Hall Ptr Microsoft Technologies Series) (Paperback)
If you're looking for a good explanation of STL, you've found it. This book does a good job of explaining STL, even dedicating entire chapters to one template. However, on the inside flap, the authors promise six chapters dedicated to learning how to develop MFC Windows applications(including wizards, icons, cursors, menus, dialog boxes and more). THERE ARE NO CHAPTERS DEDICATED TO MFC!!! These chapters are nothing more than more STL explanations. Also, on page 361 of the book, there is actually a sentence that states: "Although the details for the use of the AppWizard are beyond the scope of this book, we can give you a few basic instructions." You are later told to just follow on-screen instructions in the AppWizard.So unless you only want a book on STL or you can get a copy of this book VERY cheap ... I don't recommend it. I really don't understand how the authors got away with promising so much more than they actually delivered.
1 of 1 people found the following review helpful:
5.0 out of 5 stars
Templates and the STL,
By Harry Ricker (Conway, SC) - See all my reviews
This review is from: Visual C++ Templates (Prentice Hall Ptr Microsoft Technologies Series) (Paperback)
Cover to cover this book is about 520 pages. It concentrates on the Microsoft C++ compiler (what else is there).The book clearly discussed standard C++ libraries and compares and contrasts them against the STL. You will find the standard coverage of <utility>, <functional>, <algorithm>, <iterator>, <vector>, <stack>, <queue> and <dequeue>, <list>, <map>, <numeric> and a whole lot more. What sets this book apart from others is the crisp clear examples used. They are short and to the point. You won't get lost in a lot of code you don't care about. They teach just a few concepts in each example. This book gets a high rating in my opinion. I wound it to be very helpful and I am now writing the bulk of my C++ code using STL information from this book.
Share your thoughts with other customers: Create your own review
|
|
Tag this product(What's this?)Think of a tag as a keyword or label you consider is strongly related to this product.
Tags will help all customers organize and find favorite items. |
|
This product's forum
Active discussions in related forums
Search Customer Discussions
|
Related forums
|