November 2018
Intermediate to advanced
528 pages
13h 21m
English
A structure is a collection of variables of different data types, under a single name. As with most programming languages, we define a structure type by using the struct keyword. In the following example, we declare a structure with two members:
struct car { string Brand; string Rnumber;}
Here, the struct represents a car by defining its brand and registration number. We then declare a car object by using car public Mycar;.
Read now
Unlock full access