Presentación
Enviado por abracadabara • 6 de Abril de 2015 • 2.348 Palabras (10 Páginas) • 168 Visitas
Author’s Acknowledgments
I find it very strange that only a single name appears on the cover of any
book, but especially a book like this. In reality, many people contribute to
the creation of a For Dummies book. From the beginning, editorial director
Mary Corder and my agent, Claudette Moore, were involved in guiding and
molding the book’s content. During the development of the five editions of
this book, I found myself hip-deep in edits, corrections, and suggestions from
a group of project editors, copyeditors, and technical reviewers — this book
would have been a poorer work but for their involvement. And nothing would
have made it into print without the aid of the person who coordinated the
first and second editions of the project, Suzanne Thomas. Nevertheless, one
name does appear on the cover and that name must take responsibility for
any inaccuracies in the text.
I also have to thank my wife, Jenny, and son, Kinsey, for their patience and
devotion. I hope we manage to strike a reasonable balance.
Finally, a summary of the animal activity around my house. For those of you
who have not read any of my other books, I should warn you that this has
become a regular feature of my For Dummies books.
My two dogs, Scooter and Trude, continue to do well, although Trude is all
but blind now. Our two mini-Rex rabbits, Beavis and Butt-head, passed on to
the big meadow in the sky after living in our front yard for almost a year and
a half.
If you would like to contact me concerning C++ programming, semi-blind dogs,
or free-roaming rabbits, feel free to drop me a line at srdavis@acm.org.
Publisher’s Acknowledgments
We’re proud of this book; please send us your comments through our online registration form
located at www.dummies.com/register/.
Some of the people who helped bring this book to market include the following:
Acquisitions, Editorial, and
Media Development
Project Editor: Linda Morris
Acquisitions Editor: Katie Feltman
Copy Editor: Melba Hopper
Technical Editor: Wiley-Dreamtech India Pvt Ltd
Editorial Manager: Leah Cameron
Permissions Editor: Laura Moss
Media Development Specialist: Travis Silvers
Media Development Manager:
Laura VanWinkle
Media Development Supervisor:
Richard Graves
Editorial Assistant: Amanda Foxworth
Cartoons: Rich Tennant, www.the5thwave.com
Production
Project Coordinator: Adrienne Martinez
Layout and Graphics: Amanda Carter,
Andrea Dahl, Denny Hager, Michael Kruzil,
Lynsey Osborn, Jacque Schneider
Proofreaders: Andy Hollandbeck, Carl Pierce,
Dwight Ramsey, TECHBOOKS Production
Services
Indexer: TECHBOOKS Production Services
Special Help:
Barry Childs-Helton
Publishing and Editorial for Technology Dummies
Richard Swadley, Vice President and Executive Group Publisher
Andy Cummings, Vice President and Publisher
Mary C. Corder, Editorial Director
Publishing for Consumer Dummies
Diane Graves Steele, Vice President and Publisher
Joyce Pepple, Acquisitions Director
Composition Services
Gerry Fahey, Vice President of Production Services
Debbie Stailey, Director of Composition Services
Table of Contents
Introduction ..................................................................1
What’s in This Book .........................................................................................1
What’s on the CD..............................................................................................2
What Is C++?......................................................................................................2
Conventions Used in This Book .....................................................................2
How This Book Is Organized...........................................................................3
And There’s More.............................................................................................4
Part I: Introduction to C++ Programming ......................................................4
Part II: Becoming a Functional C++ Programmer .........................................4
Part III: Introduction to Classes......................................................................5
Part IV: Inheritance ..........................................................................................5
Part V: Optional Features ................................................................................5
Part VI: The Part of Tens .................................................................................5
Icons Used in This Book..................................................................................6
Where to Go from Here....................................................................................6
Part I: Introduction to C++ Programming ........................7
Chapter 1: Writing Your First C++ Program . . . . . . . . . . . . . . . . . . . . . . . .9
Grasping C++ Concepts .................................................................................10
What’s a program?................................................................................10
How do I program? ...............................................................................11
Installing Dev-C++...........................................................................................12
Setting the options ...............................................................................15
Creating Your First C++ Program..................................................................16
Entering the C++ code..........................................................................17
Building your program.........................................................................18
Executing Your Program................................................................................20
Dev-C++ is not Windows ......................................................................21
Dev-C++ help .........................................................................................21
Reviewing the Annotated Program ..............................................................21
Examining the framework for all C++ programs ...............................22
Clarifying source code with
...