22 Bits, Characters, C Strings and struct
s
Objectives
In this chapter you’ll learn:
To create and use
struct
s and to understand their near equivalence with classes.To use
typedef
to create aliases for data types.To manipulate data with the bitwise operators and to create bit fields for storing data compactly.
To use the functions of the character-handling library
<cctype>
.To use the string-conversion functions of the general-utilities library
<cstdlib>
.To use the string-processing functions of the string-handling library
<cstring>
.
Get C++ How to Program, 10/e now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.