PDA

View Full Version : Elements number of a estructures array



Eduardo Huerta
28th January 2019, 19:25
How can I get the elements number of a estructures array?
I have used sizeof (nameStruct), but it gives an incorrect value of elements.
Thanks for help

anda_skoa
28th January 2019, 20:41
If you use a vector instead of an array, you can simply query its size.

Cheers,
_