okay i have an array of a struct.
struct MYSTRUCT
{
float myFirstVal, mySecondVal, myThirdVal;
unsigned char myByte;
}
int myCountFunction(MYSTRUCT *&myArrayOfStructs)
{
int myCount;
// question area
return myCount;
}
here is my question. how do i count the number of elements in an array of type blah quickly. I have tried to "sizeof()" the array and only seem to get the size of the struct. I tried to "sizeof()" the reference and only get the size of the DWORD pointer. I thought that i could take the total size and divide that value by the size of the struct to get the elements... but this worked to no avail.
any help is much appreciated.
Thanks.