The structure name is equivalent to the array name. Structure variables are equivalent to array names. -Easy to understand!
An array contains a set of numbers of the same type. An array of integers, all of which are integers. A floating-point number group, all elements of which are floating-point types.
A structure contains a set of numbers, which usually belong to different types. For example, its members are integer, float and char.
Whether there is a structure variable is the same as whether there is an array variable.
You don't want to use a bunch of simple variables, but an array, so use an array. Similarly, you don't want to use a bunch of simple variables of various types, just use structures instead.
For example, student information: name, student number, math score, Chinese score, physics score and average score. You want to put this information of 1 student as a set of numbers in a variable. You can define a structure type, for example, call it struct student. Member variables are named as name, quantity, mathematics, Yu Wen, wuli and mean.
Write:
struct student { char name[20]; Int num floating-point mathematics, Yu Wen, wuli, mean}- that's the structure.
Structural student ST 1, st2, st3, st4- declared four variables of student information structure, named ST1,ST2, ST3 and ST4.
Then you can use them.
As for how to use it, see for yourself. Only the basic questions can be answered simply here.