|
|
Structures, cont. |
|
struct particle_type {
double pos [3];
double mass;
int type;
char name [80];
} neutron;
In such a definition the name of the structure is not necessary unless it
will be used elsewhere.
struct particle_type neutron = {
{ 1.1, 2.2, 3.3 },
14.2,
1,
"neutron"
};