Exploring C++: The Programmer's Introduction to C++ (Expert's Voice in C++)

Exploring C++: The Programmer's Introduction to C++ (Expert's Voice in C++)

Language: English

Pages: 725

ISBN: 1590597494

Format: PDF / Kindle (mobi) / ePub

This is a book about learning by doing and is aimed at programmers familiar with programming, but not C++. The key exercises are not simply listed at the end of the chapter, but are integrated into the main text. Readers work hands-on throughout the book. Each lesson poses numerous questions, asking readers to write answers directly in the book. The book includes answers to all questions, so readers can check their work. These exercises are not simple cookbook-style recipes (e.g., "Write a program to do xyz"). Instead, they are explorations―structured labs that guide readers through a series of steps to highlight specific features of C++.

Introducing .NET 4.0: with Visual Studio 2010

Starting Out with Java: From Control Structures through Objects (5th Edition)

Objective-C Fundamentals

Beginning C for Arduino: Learn C Programming for the Arduino

Baby Signs: How to Talk with Your Baby Before Your Baby Can Talk (3rd Edition)

Getting Started with Raspberry Pi













in ^kkh, what would you expect as a result? ________________ Try compiling and running Listing 2-3, and find out if you are correct. Listing 2-3. Determining the Number of Bits in a ^kkh ej_hq`a 8ekopna]i: ej_hq`a 8heiepo: ej_hq`a 8kopna]i: ejp i]ej$% w 17 18 EXPLO RATIO N 2 N R EA DING C ++ C ODE ++ Jkpa pd]p `ecepo ia]jo ^ej]nu `ecepo( e*a*( ^epo* op`66_kqp 88 ^epo lan ^kkh6  88 op`66jqiane_[heiepo8^kkh:66`ecepo 88 #Xj#7 y Did you get the value you expected? If not, do you

i]ej$% w ejp t7 sdeha $op`66_ej :: t% eb $ % ++ Behh ej pda _kj`epekj* op`66_kqp 88 t 88  eo araj*Xj7 ahoa op`66_kqp 88 t 88  eo k``*Xj7 y To test for equality, use two equal signs (99). In this case: eb $t ! . 99 ,% A common mistake that new C++ programmers make, especially those who are accustomed to Pascal and similar languages, is to use a single equal sign for comparison. In this case, the compiler usually alerts you to the mistake. Go ahead and try it, to see what the compiler does.

that the output operator is 88, what do you expect the input operator to be? ________________ That didn’t take a rocket scientist to deduce, did it? The input operator is ::, the opposite direction of the output operator. Think of the operators as arrows pointing in the direction that information flows: from the stream to variables for input, or from variables to the stream for output. The standard library declares input operators in the 8eopna]i: header. Listing 5-1 shows a simple program that

happens. Some suggestions follow: Try dropping a semicolon from the end of a statement. What happens? _________________________________________________________________________________ _________________________________________________________________________________ Try dropping a double quote from the start or end of a string. What happens? _________________________________________________________________________________

it, Doxygen uses the file’s real name. Except for advanced Doxygen uses, this tag is required.

Download sample