![]() |
![]() |
![]() |
![]() |
![]() |
|
Once you have created a trade object by defining a variable of the
trade type, you can refer to that trade object's own
price and number structure variables. To refer to a
structure variable, you join the name of the trade variable, via the
structure-member operator, a period, to the name of the structure
variable in which you are interested. Thus, t.price produces the
value of the price structure variable of the trade object
named
t.
Once you know how to refer to a trade object's structure variables,
you are free to assign values to those structure variables and,
subsequently, to retrieve those values.