I'm having some difficulty figuring out how to create an instance of a struct within one of my objects.
Here is what I am trying to accomplish:
Within the main function, I want to be able to create an object "beam". Each beam needs to be able to be given loads and reactions. Each load and reaction need to be given a magnitude, x-coordinate, and y-coordinate.
For example:
Within the main function, I want to be able to create beam Lower_FWD;. Then I want to be able to add loads and reactions:
OBD is just the name of a particular load. Is there any way that I can do this while keeping OBD as a member of a specific beam, so that loads and reactions can be created for specific "beams" i.e.:
I appreciate the quick solution, but I'm looking for a way to give "beams" properties "load" and "react", which also have properties, without having to remember their placement in a vector.