Chapter 5. Structures and Pointers
You have learned to structure programs by using functions and to structure data by using arrays and containers. Functions, arrays, containers, and program input/output were all that FORTRAN and BASIC gave programmers. Modern languages, including C++, give you the ability to group different kinds of data together and create dynamic references.
In this chapter you will learn
How to declare and use C++ structs
Why C++ structs are a superior way to organize data
How to manipulate data via pointers
Get C++ By Example: UnderC Learning Edition 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.