Initialize struct array
Is there a way struct array Initialize ?
Freitag:
Is there a way struct array Initialize ?
Is there a way struct array Initialize ?
Yes by adding a constructor to your struct. When you will use ArrayResize the constructor will be called for each element of the array.
MyStruct() : a(EMPTY_VALUE),b(EMPTY_VALUE),c(EMPTY_VALUE),d(EMPTY_VALUE) {};
Thanks.