Skip to Main Content
Visual C++ 2008: How to Program, Second Edition
book

Visual C++ 2008: How to Program, Second Edition

by P. J. Deitel, H. M. Deitel, D. T. Quirk
December 2007
Intermediate to advanced content levelIntermediate to advanced
1552 pages
46h 20m
English
Pearson
Content preview from Visual C++ 2008: How to Program, Second Edition

Chapter 22. 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

Ivor Horton's Beginning Visual C++ 2012

Ivor Horton's Beginning Visual C++ 2012

Ivor Horton

Publisher Resources

ISBN: 9780136085652Purchase book