Friday, December 16, 2011

Question about dynamic array of structs in C++?

Your code is correct, when using an array, you use the . to access members of structs if you refer to an array item by index. If you had used a pointer, then you would use the -> operator to access members.

0 comments:

Post a Comment