04.01.2015 Views

Thinking in C++ 2nd ed Volume 1 Revision 6

Thinking in C++ 2nd ed Volume 1 Revision 6

Thinking in C++ 2nd ed Volume 1 Revision 6

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

esponses, which are discuss<strong>ed</strong> <strong>in</strong> this chapter along with the ideas<br />

of object-orient<strong>ed</strong> programm<strong>in</strong>g (OOP) and how it attempts to solve<br />

the software crisis. The chapter walks you through the basic<br />

concepts and features of OOP and also <strong>in</strong>troduces the analysis and<br />

design process. In addition, you’ll learn about the benefits and<br />

concerns of adopt<strong>in</strong>g the language and suggestions for mov<strong>in</strong>g <strong>in</strong>to<br />

the world of <strong>C++</strong>.<br />

Chapter 2: Mak<strong>in</strong>g and Us<strong>in</strong>g Objects. This chapter expla<strong>in</strong>s the<br />

process of build<strong>in</strong>g programs us<strong>in</strong>g compilers and libraries. It<br />

<strong>in</strong>troduces the first <strong>C++</strong> program <strong>in</strong> the book and shows how<br />

programs are construct<strong>ed</strong> and compil<strong>ed</strong>. Then some of the basic<br />

libraries of objects available <strong>in</strong> Standard <strong>C++</strong> are <strong>in</strong>troduc<strong>ed</strong>. By the<br />

time you f<strong>in</strong>ish this chapter you’ll have a good grasp of what it<br />

means to write a <strong>C++</strong> program us<strong>in</strong>g off-the-shelf object libraries.<br />

Chapter 3: The C <strong>in</strong> <strong>C++</strong>. This chapter is a dense overview of the<br />

features <strong>in</strong> C that are us<strong>ed</strong> <strong>in</strong> <strong>C++</strong>, as well as a number of basic<br />

features that are available only <strong>in</strong> <strong>C++</strong>. It also <strong>in</strong>troduces the<br />

“make” utility that’s common <strong>in</strong> the software development world<br />

and which is us<strong>ed</strong> to build all the examples <strong>in</strong> this book (the source<br />

code for the book, which is available at www.BruceEckel.com,<br />

conta<strong>in</strong>s makefiles for each chapter). Chapter 3 assumes you have a<br />

solid ground<strong>in</strong>g <strong>in</strong> some proc<strong>ed</strong>ural programm<strong>in</strong>g language like<br />

Pascal, C, or even some flavors of Basic (as long as you’ve written<br />

plenty of code <strong>in</strong> that language, especially functions). If you f<strong>in</strong>d<br />

this chapter a bit too much, you should first go through the<br />

<strong>Th<strong>in</strong>k<strong>in</strong>g</strong> <strong>in</strong> C sem<strong>in</strong>ar on the CD that’s bound with this book (and<br />

also available at www.BruceEckel.com).<br />

Chapter 4: Data Abstraction. Most features <strong>in</strong> <strong>C++</strong> revolve around<br />

the ability to create new data types. Not only does this provide<br />

superior code organization, but it lays the groundwork for more<br />

powerful OOP abilities. You’ll see how this idea is facilitat<strong>ed</strong> by the<br />

simple act of putt<strong>in</strong>g functions <strong>in</strong>side structures, the details of how<br />

to do it, and what k<strong>in</strong>d of code it creates. You’ll also learn the best<br />

way to organize your code <strong>in</strong>to header files and implementation<br />

files.<br />

28 <strong>Th<strong>in</strong>k<strong>in</strong>g</strong> <strong>in</strong> <strong>C++</strong> www.BruceEckel.com

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

Saved successfully!

Ooh no, something went wrong!