Buy New

or
Sign in to turn on 1-Click ordering.
or
Amazon Prime Free Trial required. Sign up when you check out. Learn More
Buy Used
Used - Good See details
$1.70 & eligible for FREE Super Saver Shipping on orders over $25. Details

or
Sign in to turn on 1-Click ordering.
 
   
More Buying Choices
Have one to sell? Sell yours here
C++ Cookbook (Cookbooks (O'Reilly))
 
 
Tell the Publisher!
I'd like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

C++ Cookbook (Cookbooks (O'Reilly)) [Paperback]

D. Ryan Stephens (Author), Christopher Diggins (Author), Jonathan Turkanis (Author), Jeff Cogswell (Author)
3.8 out of 5 stars  See all reviews (8 customer reviews)

List Price: $49.99
Price: $29.57 & this item ships for FREE with Super Saver Shipping. Details
You Save: $20.42 (41%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.
Want it delivered Monday, January 30? Choose One-Day Shipping at checkout. Details
Like this book? Find similar titles from O'Reilly and Partners in our O'Reilly Bookstore.

Book Description

Cookbooks (O'Reilly) November 15, 2005

Despite its highly adaptable and flexible nature, C++ is also one of the more complex programming languages to learn. Once mastered, however, it can help you organize and process information with amazing efficiency and quickness.

The C++ Cookbook will make your path to mastery much shorter. This practical, problem-solving guide is ideal if you're an engineer, programmer, or researcher writing an application for one of the legions of platforms on which C++ runs. The algorithms provided in C++ Cookbook will jump-start your development by giving you some basic building blocks that you don't have to develop on your own.

Less a tutorial than a problem-solver, the book addresses many of the most common problems you're likely encounter--whether you've been programming in C++ for years or you're relatively new to the language. Here are just some of the time-consuming tasks this book contains practical solutions for:

  • Reading the contents of a directory
  • Creating a singleton class
  • Date and time parsing/arithmetic
  • String and text manipulation
  • Working with files
  • Parsing XML
  • Using the standard containers

Typical of O'Reilly's "Cookbook" series, C++ Cookbook is written in a straightforward format, featuring recipes that contain problem statements and code solutions, and apply not to hypothetical situations, but those that you're likely to encounter. A detailed explanation then follows each recipe in order to show you how and why the solution works. This question-solution-discussion format is a proven teaching method, as any fan of the "Cookbook" series can attest to. This book will move quickly to the top of your list of essential C++ references.


Frequently Bought Together

C++ Cookbook (Cookbooks (O'Reilly)) + C++ in a Nutshell + C++ Pocket Reference
Price For All Three: $61.49

Show availability and shipping details

Buy the selected items together
  • In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • C++ in a Nutshell $21.97

    In Stock.
    Ships from and sold by Amazon.com.
    Eligible for FREE Super Saver Shipping on orders over $25. Details

  • C++ Pocket Reference $9.95

    In Stock.
    Ships from and sold by Amazon.com.
    Eligible for FREE Super Saver Shipping on orders over $25. Details



Editorial Reviews

About the Author

Ryan Stephens is a software engineer, writer, and student living in Tempe, AZ. He enjoys programming in virtually any language, especially C++. His interests include the fields of information retrieval and data mining, and pretty much anything that has to do with algorithms and large data sets. When he's not working, writing, or programming, he plays with his kids, works on his house, or goes cycling.

Christopher Diggins is a freelance software developer and writer who has been programming computers since he was "haut comme trois pommes". Christopher writes regularly for the C++ Users Journal, and is the designer of the Heron programming lanugage.

Jonathan Turkanis is the author of the Boost Iostreams library and several other open source C++ libraries covering areas including smart pointers, runtime reflection, component architectures and aspect-oriented programming. He is a Ph.D. candidate in mathematical logic at the University of California at Berkeley.

Jeff Cogswell has been programming in several languages for many years. His background was previously in telecom, writing software for such strange things as network management protocols. Lately, however, his work has focused more on web development. After spending a few years in both Florida and California, Jeff now lives in Michigan. He's holding out for some warmer weather.


Product Details

  • Paperback: 600 pages
  • Publisher: O'Reilly Media; 1 edition (November 15, 2005)
  • Language: English
  • ISBN-10: 0596007612
  • ISBN-13: 978-0596007614
  • Product Dimensions: 7 x 9.1 x 1.3 inches
  • Shipping Weight: 1.8 pounds (View shipping rates and policies)
  • Average Customer Review: 3.8 out of 5 stars  See all reviews (8 customer reviews)
  • Amazon Best Sellers Rank: #308,933 in Books (See Top 100 in Books)

More About the Authors

Discover books, learn about writers, read author blogs, and more.

 

Customer Reviews

8 Reviews
5 star:
 (3)
4 star:
 (3)
3 star:    (0)
2 star:
 (1)
1 star:
 (1)
 
 
 
 
 
Average Customer Review
3.8 out of 5 stars (8 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

35 of 41 people found the following review helpful:
4.0 out of 5 stars A very good book of C++ recipes!, December 16, 2005
By 
This review is from: C++ Cookbook (Cookbooks (O'Reilly)) (Paperback)
Unlike a self-proclaimed "C++ Wizard," I'm of the opinion that this book is inherently useful in many ways, even for experienced programmers. Basically, it offers several ways to tackle various programming challenges with C++-centric solutions.

Whining about brace style is a hopelessly lost cause. K&R style braces save lines and reduces page count in the publishing industry. Get used to it or get out of it, I say.

However, this isn't a rant.

There is a good portion of the book that would be more helpful to aspiring programmers and less useful to advanced programmers, such as "Making Sure a Header File Gets Include Only Once." In my programming career, I've seen a lot of bad code. If more developing programmers would have read this book, my life would surely have been easier!

Like any cookbook, a recipe is a guideline for producing a desired result. It is up to the chef to decide when to depart from the guideline and by how much. It is oftentimes difficult to find the core solution in a set of API documentation, for example, in string handling. The C++ Cookbook has a whole chapter on string manipulation and text processing. It is much easier to look at the often short and sweet recipes in the book and decide whether or not they are close enough to what you want to do to use them as a baseline for writing your own code, rather than just referring to an API document and trying to figure out which set of operations you want to use to accomplish the task at hand.

I don't think that this book is some kind of answer to all of our C++-related prayers; what cookbook have you used that can be so much to so many? In all, it is a worthwhile product for those seeking assistance with their everyday coding. It does tend to promote Boost. Boost is a large project of common C++ "needs" wrapped up in a fairly platform agnostic package and available as a free download. It is a lot like a "Swiss Army Knife" API for C++ in a way similar to what the JDK is to Java developers.

C++ Cookbook will be very helpful to programmers who don't want to spend time solving every little problem themselves. It may not be the best text for a veteran with ingrained Computer Sciences education, but for self-taught, non-CS disciplinarians, it may well be the ticket to writing much better code in less time. For someone making a transition from C to C++, it is an indepensible "how to" reference that you can easily read when the mood strikes. If you think FILE* before fstream, chances are this book will be a big help!

A few aspects of the book are specific to a particular platform, though for the most part, it is platform independent.

Not every C++ book needs to be written for the hardcore daily-life programmer. Hobbyists and others who find that they need to use C++ are certain to find it full of useful nuggets. There are often dozens of ways to set about solving a particular programming challenge. This book offers its solutions in a very readable, enjoyable manner that is also interesting and practical. If you're a C++ Wizard, you probably don't need this book, but in my experience, more than half the guys who think they're C++ Wizards tend to be wanna bes.

There is a lot of good information inside of this book that should be known by most experienced C++ programmers. There are also a lot of good information that is easily forgotten by programmers who don't work in a particular area of the language very often. The Cookbook provides an easy way to look up the recipe and implement a viable solution without having to sort through barely comprehensible API documentation, which is often a lot like trying to bake a chocolate cake with the first steps being milk the cow and fetch the eggs, or more likely sometimes, plant the grass so that you can raise cows to eventually milk! This book is more like a box of cake mix. Maybe not perfect in the eyes of a master chef, but good enough for the rest of us to use and enjoy.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


14 of 17 people found the following review helpful:
4.0 out of 5 stars Good Book For New C++ Programmers, September 8, 2006
This review is from: C++ Cookbook (Cookbooks (O'Reilly)) (Paperback)
The 'C++ Cookbook' is a great resource for any developer that might be new to or still mastering the C++ programming language. Packed with over 500 pages and broken up into 15 chapters, this book is well written and easy to follow. My main "gripe" with this book is that when I think of a cookbook, many times it's full of solutions are less well known, or slightly more challenging tasks that the average programmer might not know the solution to. With this cookbook, I feel it's geared more towards the more junior level developer who isn't a master of the language and is still learning their trade. I don't feel that this book is perfect for senior programmers, but it DOES offer common solutions in one book, so I might be incorrect in this assumption. All in all, a solid book, and one well worth keeping on your desk and you code with C++!!

**** RECOMMENDED
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


4 of 4 people found the following review helpful:
5.0 out of 5 stars Good for those (uncreative) new to programming (in c++), February 25, 2009
This review is from: C++ Cookbook (Cookbooks (O'Reilly)) (Paperback)
Im a freshman in college and just finished my second c++ programming course, this book was my best friend. It gives you plenty of ways to do a given task and covers a broad range of topics. Because it covers a broad range of topics, even if a specific "recipe" doesn't do exactly what you want, there is usually no trouble in changing/tweaking it ever so slightly to do what you want to do for a specific problem. It's very well written and easy to understand for the laymen to c++ (like me!!)
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No

Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews






Only search this product's reviews



Inside This Book (learn more)
Key Phrases - Statistically Improbable Phrases (SIPs): (learn more)
string algorithms, storing objects, using boost, target name, hashed containers, lexical cast, find member function, ccp files, nonconforming code, using namespace std, executable hello, exe rule, output iterator, valid float, friend bool operator, directory binaries, pragma export, standard library implementation, global locale, input iterator, initializer list, iterator categories, string tmp, debug target, existing source files
Key Phrases - Capitalized Phrases (CAPs): (learn more)
Digital Mars, Solution Use, Managing Data, Configuration Properties, Boost Filesystem, Discussion Example, Project Options, Visual Studio, Complex Application, Configuration Visual, Boost Threads, Feldman Family Circus Animals, Select New, Solution Create, Discussion There, Text File, Applications Table, Solution Example, Language Settings, Add Existing Item, Algorithms Example, Target Settings Window, Define Xerceslnitializer, Preventing Name Collisions, Hal Brown
Browse Sample Pages:
Front Cover | Table of Contents | First Pages | Index | Back Cover | Surprise Me!
Search Inside This Book:

What Other Items Do Customers Buy After Viewing This Item?


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(1)
(1)

Your tags: Add your first tag
 

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 

Search Customer Discussions
Search all Amazon discussions
   
Related forums





Look for Similar Items by Category


Look for Similar Items by Subject