The weight of the entry is initialized to 1.0.
void weightarrayfromname(string &names[], float &weights[], string name)
Sets names
to {name}
and weights
to {1.0}
.