Structure introduction
01——Why use structures?
Ordinary integers, floating point numbers, and strings are all scattered data representations
Sometimes we need to use many types of data to represent a whole, such as student information:
A structure is analogous to an array: an array is a collection of data with the same element type
If it is a data collection with different element data, a structure will be used.
02 - Define a structure
It is considered a template and generally does not assign specific values. Not every item must be used in actual applications .
Each member is a field of the structure, also called a field table (member list)
When declaring, define variables and use them as little as possible