Skip to Content
C++ How to Program, Sixth Edition
book

C++ How to Program, Sixth Edition

by P. J. Deitel - Deitel & Associates, Inc., H. M. Deitel - Deitel & Associates, Inc.
July 2007
Beginner to intermediate
1504 pages
44h 24m
English
Pearson
Content preview from C++ How to Program, Sixth Edition

Chapter 21. Bits, Characters, C Strings and structs

 

The same old charitable lie Repeated as the years scoot by Perpetually makes a hit—“You really haven’t changed a bit!”

 
 --Margaret Fishback
 

The chief defect of Henry King Was chewing little bits of string.

 
 --Hilaire Belloc
 

Vigorous writing is concise. A sentence should contain no unnecessary words, a paragraph no unnecessary sentences.

 
 --William Strunk, Jr.

OBJECTIVES

In this chapter you’ll learn:

  • To create and use structs.

  • To pass structs to functions by value and by reference.

  • To use typedef to create aliases for previously defined data types and structs.

  • To manipulate data with the bitwise operators and to create bit fields for storing data compactly.

  • To use the functions of the character-handling ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C++ How to Program, 10/e

C++ How to Program, 10/e

Paul Deitel, Harvey Deitel
C++ How to Program, Ninth Edition

C++ How to Program, Ninth Edition

Paul Deitel, Harvey Deitel

Publisher Resources

ISBN: 9780136085669Purchase book