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.

Introduction3Hi mom!In addition, code listings appear as follows:// some programvoid main(){...}If you are entering these programs by hand, you must enter the text exactlyas shown with one exception: The number of spaces is not critical, so don’tworry if you enter one too many or one too few spaces.C++ words are usually based on English words with similar meanings. This canmake reading a sentence containing both English and C++ difficult to make outwithout a little help. To help out, C++ commands and function names appearin a different font like this. In addition, function names are always followedby an open and closed parenthesis like myFavoriteFunction(). The argumentsto the function are left off except when there’s a specific need to makethem easier to read. It’s a lot easier to say: “this is myFavoriteFunction()”than “this is myFavoriteFunction(int, float).”Sometimes, the book directs you to use specific keyboard commands. For example,when the text instructs you to press Ctrl+C, it means that you should holddown the Ctrl key while pressing the C key and then release both together.Don’t type the plus sign.Sometimes, I’ll tell you to use menu commands, such as File➪Open. This notationmeans to use the keyboard or mouse to open the File menu and thenchoose the Open option. Finally, both Dev-C++ and Visual Studio.NET definefunction keys for certain common operations — unfortunately, they don’tuse the same function keys. To avoid confusion, I rarely use function keys inthe book — I couldn’t have kept the two straight anyway.How This Book Is OrganizedEach new feature is introduced by answering the following three questions: What is this new feature? Why was it introduced into the language? How does it work?

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

Saved successfully!

Ooh no, something went wrong!