Let's talk about the structure bliss first. Suppose the structure bliss is as follows:
Blist sign
Integer:: xx
Integer:: yy
real::zz
End type
So that is to say, the attribute of the structure blist is three variables: xx, yy, zz.
So type (bliss), dimension (50):: A means.
Assign the attribute of the structure blist to the one-dimensional array variable A (the upper limit is 50).
Then a has the attributes of xx, yy and zz.
Usage is roughly as follows: A( 1)%xx! Represents an integer variable
A(2)%yy! Represents an integer variable
A(50)%zz! Represents a real variable.
This is a grammatical feature of object-oriented language.
rise
A simple example to help you understand. We define in the computer that people have five senses, two hands and two legs, and two legs to walk. A dog has four legs and walks on four legs. This person or dog is equivalent to blist. Five senses, walking on two legs and walking on four legs are the corresponding attributes, which are equivalent to xx, yy and zz. Suppose there are variables Zhang San and Wang Cai now, which are equivalent to variable A. So I told the computer that Zhang San and Wang Cai were human and dog respectively. This process corresponds to the type (Blist) and size (50).
* Answer. So now the computer knows that Zhang San has five senses, two hands and two legs, and walks with two legs, while Wang Cai has four legs and walks with four legs.
Just sauce purple.