E-Book Overview
Here’s the easy way to learn how to use C++
C++, developed by Bjarne Stroustrup at Bell Labs, is one of the most widely used programming languages, with close to four million C++ programmers and growing. C++’s popularity has earned it a spot as part of the Standard Library.
Fully updated for the new C++ 2009 standard, C++ All-in-One for Dummies, 2nd Edition compiles seven books into one. This guidebook covers key topics like an introduction to C++, understanding objects and classes, fixing problems, advanced programming, reading and writing files, advanced C++, and building applications with Microsoft MFC. If you're a C++ newbie, start with Book I. But if you’re experienced with C++, simply jump in anywhere to learn more! This all-in-one reference helps you learn to:
- Use C++ for Windows, Mac, and Linux by using the CodeBlocks compiler
- Understand object-oriented programming
- Use various diagrams to design your programs
- Recognize how local variables are stored
- Use packages, notes, and tags effectively
- Make a class persistent
- Handle constructors and destructors
With over 25,000 sold of the previous bestselling edition, this second edition with a bonus CD makes C++ easier to understand. It’s a perfect introduction for new programmers and guide for advanced programmers.
Note: CD-ROM/DVD and other supplementary materials are not included as part of eBook file.
E-Book Content
ALL-IN-ONE
c++ FOR
DUMMIES'* 2ND EDITION
by John Paul Mueller and Jeff Cogswell
WILEY
Wiley Publishing, Inc.
Disclaimer: This eBook does not include ancillary media that was packaged with the printed version o f the book. C++ All-in-One For Dummies? 2nd Edition Published by Wiley Publishing, Inc. I l l River Street Hoboken, NJ 0 7 0 3 0 - 5 7 7 4 www.wiley.com Copyright © 2 0 0 9 by Wiley Publishing, Inc., Indianapolis, Indiana Published by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada
No part of this publication m a y b e r e p r o d u c e d , stored in a retrieval s y s t e m or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, e x c e p t a s permitted under Sections 107 or 108 of t h e 1976 United States Copyright Act, without either t h e prior written permission of t h e Publisher, or authorization through payment of t h e a p p r o p r i a t e per-copy fee t o t h e Copyright C l e a r a n c e Center, 2 2 2 Rosewood Drive, Danvers, MA 01923, ( 9 7 8 ) 750-8400, fax ( 9 7 8 ) 646-8600. Requests to t h e Publisher for permission should be a d d r e s s e d t o t h e Permissions Department, J o h n Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 0 7 0 3 0 , ( 2 0 1 ) 748-6011, fax ( 2 0 1 ) 748-6008, or online at h t t p : / /www. w i l e y . c o m / g o / p e r m i s s i o n s . T r a d e m a r k s : Wiley, t h e Wiley Publishing logo, For Dummies, t h e Dummies Man logo, A Reference for t h e Rest of Us!, T h e Dummies Way, Dummies Daily, T h e Fun and E a s y Way, Dummies.com, Making Everything Easier, and related t r a d e d r e s s a r e trademarks or registered t r a d e m a r k s of John Wiley & Sons, Inc. a n d / or its affiliates in t h e United States and o t h e r countries, and m a y not be used without written permission. All o t h e r trademarks are t h e p r o p e r t y of their respective owners. Wiley Publishing, Inc., is not a s s o c i a t e d with any product or v e n d o r mentioned in this book. LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: T H E PUBLISHER AND T H E AUTHOR MAKE NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF THE CONTENTS O F THIS WORK AND SPECIFICALLY DISCLAIM ALL WARRANTIES, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULA