Thank you for your response. Let's say though I initialize a MyStruct object in main(), assuming I have a constructor,
int main()
{
MyStruct ms(0.1, 0.2);
ms.[0] // == 0.1
...
Type: Posts; User: angabout
Thank you for your response. Let's say though I initialize a MyStruct object in main(), assuming I have a constructor,
int main()
{
MyStruct ms(0.1, 0.2);
ms.[0] // == 0.1
...
Hi all,
I'm a bit stumped about the idea of returning a reference to an array inside a struct. For example,
struct MyStruct
{
float x, y;