Check out example codes for "how to initialize an struct object in c++". It will help you in understanding the concepts better.

Code Example 1

// exemple avec la structure Coordonnees :
struct Coordonnees
{
  int x;
  int y;
}

int main()
{
  Coordonnees coords = {1,2};
}

Learn ReactJs, React Native from akashmittal.com