Introduction
This lesson introduces structures. The designers of C++ evolved structures into the notion of a class. Like a class, C++ structures can contain access specifiers, member functions, constructors and destructors. In fact, the only difference between structures and classes in C++ is that structure members default to public access and class members default to private access when no access specifiers are used. In this lesson we focus on their use where structures contain only public data members.
We will learn how to declare structures, initialize structures and pass structures to functions.