If I have a struct array e.g. MyStruct that I access like MyStruct
how can I take MyStruct and put it into a variable maintaing the reference (not copying it)
so that instead of writing.
MyStruct.abc = 1; MyStruct.def = 2;
I could write:
st = MyStruct; // <------ does this copy or is it a reference? st.abc = 1; st.abc = 2;
also, how do you make a constructor to initialize a struct?
and also, if a struct contains a string - then it is intiialized - what does that mean? all zero’s out? like booleans are false, strings are “” ? numbers are 0?