C++ In a Nutshell: A Desktop Quick Reference (In a Nutshell (O'Reilly))

3.83 avg rating
( 72 ratings by Goodreads )
 
9780596002985: C++ In a Nutshell: A Desktop Quick Reference (In a Nutshell (O'Reilly))
View all copies of this ISBN edition:
 
 

To-the-point, authoritative, no-nonsense solutions have always been a trademark of O'Reilly books. The In a Nutshell books have earned a solid reputation in the field as the well-thumbed references that sit beside the knowledgeable developer's keyboard. C++ in a Nutshell lives up to the In a Nutshell promise. C++ in a Nutshell is a lean, focused reference that offers practical examples for the most important, most often used, aspects of C++.C++ in a Nutshell packs an enormous amount of information on C++ (and the many libraries used with it) in an indispensable quick reference for those who live in a deadline-driven world and need the facts but not the frills.The book's language reference is organized first by topic, followed by an alphabetical reference to the language's keywords, complete with syntax summaries and pointers to the topic references. The library reference is organized by header file, and each library chapter and class declaration presents the classes and types in alphabetical order, for easy lookup. Cross-references link related methods, classes, and other key features. This is an ideal resource for students as well as professional programmers.When you're programming, you need answers to questions about language syntax or parameters required by library routines quickly. What, for example, is the C++ syntax to define an alias for a namespace? Just how do you create and use an iterator to work with the contents of a standard library container? C++ in a Nutshell is a concise desktop reference that answers these questions, putting the full power of this flexible, adaptable (but somewhat difficult to master) language at every C++ programmer's fingertips.

"synopsis" may belong to another edition of this title.

About the Author:

Ray Lischner began his career as a software developer, but dropped out of the corporate rat race to become an author. He started using C++ in the late 1980s, working at a company that was rewriting its entire product line in C++. Over the years, he has witnessed the evolution of C++ from cfront to native compilers to integrated development environments to visual, component-based tools. Ray has taught C++ at Oregon State University. He is the author of Delphi in a Nutshell and O'Reilly's upcoming C++ in a Nutshell, as well as other books.

Excerpt. Reprinted by permission. All rights reserved.:

Chapter 4 – Statements

Statements define and control what a program does. This chapter describes the syntax and rules for C++ statements: expressions, loops, selection, and control. The statement syntax rules apply recursively, and wherever a statement is called for, you can use (almost) any of the statements in this chapter.

The syntax descriptions in this chapter are informal. See Chapter 12 for a precise BNF grammar.

Expression Statements
An expression statement computes an expression, such as a function call or assignment. The expression result is discarded, so the expression is typically evaluated for its side effects. (See Chapter 3 for details about expressions.) The statement syntax is simply an optional expression followed by a semicolon:
expr ;
or:
;

A statement with no expression is called a null statement. Null statements are most often used for loops when no code is needed in the loop body.

Here are several examples of expression statements:

42; // Valid but pointless
cout << 42; // More typical
x = y * z; // Remember that assignment is an expression
; // Null statementDeclarations

A declaration can appear anywhere a statement appears, and certain statements permit additional declarations within those statements.

Declarations made in a substatement (of a selection or loop statement) are limited in scope to the substatement, even if the substatement is not a compound statement. For example, the following statement:
while ( test( ) )
int x = init( );

is equivalent to:
while ( test( ) ) {
int x = init( );
}
The first example uses a declaration as the entire loop body, and the second uses a compound statement (enclosing the loop body in curly braces). In both cases, though, the scope of x is limited to the body of the while loop.

Declaration Statements
A simple declaration can appear wherever a statement can be used. You can declare an object, a type, or a namespace alias. You can also write a using declaration or using directive. You can declare a function, but not define a function, although there is rarely any reason to declare a function locally. You cannot define a namespace or declare a template.

In traditional C programming, declarations appear at the start of each block or compound statement. In C++ (and in the C99 standard), declarations can appear anywhere a statement can, which means you can declare variables close to where they are used. Example 4-1 shows examples of how declarations can be mixed with statements.

"About this title" may belong to another edition of this title.

Top Search Results from the AbeBooks Marketplace

1.

Lischner, Ray
Published by O'Reilly Media 5/18/2003 (2003)
ISBN 10: 059600298X ISBN 13: 9780596002985
New Paperback or Softback Quantity Available: 5
Seller:
BargainBookStores
(Grand Rapids, MI, U.S.A.)
Rating
[?]

Book Description O'Reilly Media 5/18/2003, 2003. Paperback or Softback. Condition: New. C++ in a Nutshell. Book. Seller Inventory # BBS-9780596002985

More information about this seller | Contact this seller

Buy New
19.36
Convert Currency

Add to Basket

Shipping: FREE
Within U.S.A.
Destination, Rates & Speeds

2.

Lischner, Ray
Published by O'Reilly Media
ISBN 10: 059600298X ISBN 13: 9780596002985
New PAPERBACK Quantity Available: > 20
Seller:
Mediaoutlet12345
(Springfield, VA, U.S.A.)
Rating
[?]

Book Description O'Reilly Media. PAPERBACK. Condition: New. 059600298X *BRAND NEW* Ships Same Day or Next!. Seller Inventory # SWATI2132584164

More information about this seller | Contact this seller

Buy New
18.94
Convert Currency

Add to Basket

Shipping: 2.84
Within U.S.A.
Destination, Rates & Speeds

3.

Ray Lischner
Published by O'Reilly Media (2018)
ISBN 10: 059600298X ISBN 13: 9780596002985
New Paperback Quantity Available: 19
Print on Demand
Seller:
Murray Media
(North Miami Beach, FL, U.S.A.)
Rating
[?]

Book Description O'Reilly Media, 2018. Paperback. Condition: New. Never used! This item is printed on demand. Seller Inventory # 059600298X

More information about this seller | Contact this seller

Buy New
21.55
Convert Currency

Add to Basket

Shipping: 1.42
Within U.S.A.
Destination, Rates & Speeds

4.

Lischner, Ray
Published by O'Reilly Media
ISBN 10: 059600298X ISBN 13: 9780596002985
New PAPERBACK Quantity Available: 15
Seller:
Lakeside Books
(Benton Harbor, MI, U.S.A.)
Rating
[?]

Book Description O'Reilly Media. PAPERBACK. Condition: New. 059600298X BRAND NEW, GIFT QUALITY! NOT OVERSTOCKS OR MARKED UP REMAINDERS! DIRECT FROM THE PUBLISHER!|2.36. Seller Inventory # OTF-S-9780596002985

More information about this seller | Contact this seller

Buy New
20.53
Convert Currency

Add to Basket

Shipping: 2.84
Within U.S.A.
Destination, Rates & Speeds

5.

Ray Lischner
Published by O Reilly Media, Inc, USA, United States (2003)
ISBN 10: 059600298X ISBN 13: 9780596002985
New Paperback Quantity Available: 1
Seller:
The Book Depository
(London, United Kingdom)
Rating
[?]

Book Description O Reilly Media, Inc, USA, United States, 2003. Paperback. Condition: New. Language: English . Brand New Book. To-the-point, authoritative, no-nonsense solutions have always been a trademark of O Reilly books. The In a Nutshell books have earned a solid reputation in the field as the well-thumbed references that sit beside the knowledgeable developer s keyboard. C++ in a Nutshell lives up to the In a Nutshell promise. C++ in a Nutshell is a lean, focused reference that offers practical examples for the most important, most often used, aspects of C++. C++ in a Nutshell packs an enormous amount of information on C++ (and the many libraries used with it) in an indispensable quick reference for those who live in a deadline-driven world and need the facts but not the frills. The book s language reference is organized first by topic, followed by an alphabetical reference to the language s keywords, complete with syntax summaries and pointers to the topic references. The library reference is organized by header file, and each library chapter and class declaration presents the classes and types in alphabetical order, for easy lookup. Cross-references link related methods, classes, and other key features. This is an ideal resource for students as well as professional programmers. When you re programming, you need answers to questions about language syntax or parameters required by library routines quickly. What, for example, is the C++ syntax to define an alias for a namespace? Just how do you create and use an iterator to work with the contents of a standard library container? C++ in a Nutshell is a concise desktop reference that answers these questions, putting the full power of this flexible, adaptable (but somewhat difficult to master) language at every C++ programmer s fingertips. Seller Inventory # AAH9780596002985

More information about this seller | Contact this seller

Buy New
26.61
Convert Currency

Add to Basket

Shipping: FREE
From United Kingdom to U.S.A.
Destination, Rates & Speeds

6.

Ray Lischner
Published by O Reilly Media, Inc, USA, United States (2003)
ISBN 10: 059600298X ISBN 13: 9780596002985
New Paperback Quantity Available: 1
Seller:
Book Depository International
(London, United Kingdom)
Rating
[?]

Book Description O Reilly Media, Inc, USA, United States, 2003. Paperback. Condition: New. Language: English . Brand New Book. To-the-point, authoritative, no-nonsense solutions have always been a trademark of O Reilly books. The In a Nutshell books have earned a solid reputation in the field as the well-thumbed references that sit beside the knowledgeable developer s keyboard. C++ in a Nutshell lives up to the In a Nutshell promise. C++ in a Nutshell is a lean, focused reference that offers practical examples for the most important, most often used, aspects of C++. C++ in a Nutshell packs an enormous amount of information on C++ (and the many libraries used with it) in an indispensable quick reference for those who live in a deadline-driven world and need the facts but not the frills. The book s language reference is organized first by topic, followed by an alphabetical reference to the language s keywords, complete with syntax summaries and pointers to the topic references. The library reference is organized by header file, and each library chapter and class declaration presents the classes and types in alphabetical order, for easy lookup. Cross-references link related methods, classes, and other key features. This is an ideal resource for students as well as professional programmers. When you re programming, you need answers to questions about language syntax or parameters required by library routines quickly. What, for example, is the C++ syntax to define an alias for a namespace? Just how do you create and use an iterator to work with the contents of a standard library container? C++ in a Nutshell is a concise desktop reference that answers these questions, putting the full power of this flexible, adaptable (but somewhat difficult to master) language at every C++ programmer s fingertips. Seller Inventory # AAH9780596002985

More information about this seller | Contact this seller

Buy New
27.35
Convert Currency

Add to Basket

Shipping: FREE
From United Kingdom to U.S.A.
Destination, Rates & Speeds

7.

Ray Lischner
Published by OReilly Media
ISBN 10: 059600298X ISBN 13: 9780596002985
New Paperback Quantity Available: 8
Seller:
THE SAINT BOOKSTORE
(Southport, United Kingdom)
Rating
[?]

Book Description OReilly Media. Paperback. Condition: New. New copy - Usually dispatched within 2 working days. Seller Inventory # B9780596002985

More information about this seller | Contact this seller

Buy New
21.38
Convert Currency

Add to Basket

Shipping: 6.94
From United Kingdom to U.S.A.
Destination, Rates & Speeds

8.

Ray Lischner
Published by O'Reilly Media (2003)
ISBN 10: 059600298X ISBN 13: 9780596002985
New Paperback Quantity Available: 1
Seller:
Ergodebooks
(RICHMOND, TX, U.S.A.)
Rating
[?]

Book Description O'Reilly Media, 2003. Paperback. Condition: New. Seller Inventory # DADAX059600298X

More information about this seller | Contact this seller

Buy New
26.85
Convert Currency

Add to Basket

Shipping: 3.56
Within U.S.A.
Destination, Rates & Speeds

9.

Ray Lischner
Published by O'Reilly Media (2003)
ISBN 10: 059600298X ISBN 13: 9780596002985
New Softcover First Edition Quantity Available: 1
Seller:
Irish Booksellers
(Portland, ME, U.S.A.)
Rating
[?]

Book Description O'Reilly Media, 2003. Condition: New. book. Seller Inventory # M059600298X

More information about this seller | Contact this seller

Buy New
30.82
Convert Currency

Add to Basket

Shipping: FREE
Within U.S.A.
Destination, Rates & Speeds

10.

Ray Lischner
Published by O'Reilly Media
ISBN 10: 059600298X ISBN 13: 9780596002985
New Paperback Quantity Available: > 20
Seller:
BuySomeBooks
(Las Vegas, NV, U.S.A.)
Rating
[?]

Book Description O'Reilly Media. Paperback. Condition: New. 704 pages. Dimensions: 8.8in. x 6.0in. x 1.6in.To-the-point, authoritative, no-nonsense solutions have always been a trademark of OReilly books. The In a Nutshell books have earned a solid reputation in the field as the well-thumbed references that sit beside the knowledgeable developers keyboard. C in a Nutshell lives up to the In a Nutshell promise. C in a Nutshell is a lean, focused reference that offers practical examples for the most important, most often used, aspects of C. C in a Nutshell packs an enormous amount of information on C (and the many libraries used with it) in an indispensable quick reference for those who live in a deadline-driven world and need the facts but not the frills. The books language reference is organized first by topic, followed by an alphabetical reference to the languages keywords, complete with syntax summaries and pointers to the topic references. The library reference is organized by header file, and each library chapter and class declaration presents the classes and types in alphabetical order, for easy lookup. Cross-references link related methods, classes, and other key features. This is an ideal resource for students as well as professional programmers. When youre programming, you need answers to questions about language syntax or parameters required by library routines quickly. What, for example, is the C syntax to define an alias for a namespace Just how do you create and use an iterator to work with the contents of a standard library container C in a Nutshell is a concise desktop reference that answers these questions, putting the full power of this flexible, adaptable (but somewhat difficult to master) language at every C programmers fingertips. This item ships from multiple locations. Your book may arrive from Roseburg,OR, La Vergne,TN. Paperback. Seller Inventory # 9780596002985

More information about this seller | Contact this seller

Buy New
31.54
Convert Currency

Add to Basket

Shipping: FREE
Within U.S.A.
Destination, Rates & Speeds

There are more copies of this book

View all search results for this book