11.07.2015 Views

tYSR20

tYSR20

tYSR20

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4 C++ For Dummies, 5th EditionSmall pieces of code are sprinkled liberally throughout the chapters. Eachdemonstrates some newly introduced feature or highlights some brilliant pointI’m making. These snippets may not be complete and certainly don’t do anythingmeaningful. However, every concept is demonstrated in at least onefunctional program.Note: A good programmer doesn’t let lines of code extend too far because itmakes them hard to read. I have inserted newlines appropriately to limit myprograms to the width of the book page.And There’s MoreA real-world program can take up lots of pages. However, seeing such a programis an important didactic tool for any reader. I have included a seriesof programs along with an explanation of how these programs work on theenclosed CD-ROM.I use one simple example program that I call BUDGET. This program starts lifeas a simple, functionally-oriented BUDGET1. This program maintains a set ofsimple checking and savings accounts. The reader is encouraged to review thisprogram at the end of Part II. The subsequent version, BUDGET2, adds theobject-oriented concepts presented in Part III. The examples work their wayusing ever more features of the language, culminating with BUDGET5, whichyou should review after you master all the chapters in the book. The BUDGETprograms can be found on the book’s CD-ROM. For a complete overview of theCD-ROM’s contents, see this book’s Appendix.Part I: Introduction to C++ ProgrammingPart I starts you on your journey. You begin by examining what it means towrite a computer program. From there, you step through the syntax of thelanguage (the meaning of the C++ commands).Part II: Becoming a FunctionalC++ ProgrammerIn this part, you expand upon your newly gained knowledge of the basic commandsof C++ by adding the capability to bundle sections of C++ code into modulesand reusing these modules in programs.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!