Hi,
Can someone please assist/help me solve this problem, I tried my best all the help with the internet search. I will be really very thankful for any answers.
I have a class A{}; and class B {};
inside Class B, I need to have an array of pointers object for Class A (dimensions size 10). Class B contains methodB() that takes a pointer of A Class as a parameter and store the parameter value into the first unused slot in the array.
How to find out which slot if free. How to get the length of an array to traverse. I tried the floowing
sizeof(A1) where A1 was the array of pointer object for Class A.
Thanks for any help!
Thanks a lot.
Can someone please assist/help me solve this problem, I tried my best all the help with the internet search. I will be really very thankful for any answers.
I have a class A{}; and class B {};
inside Class B, I need to have an array of pointers object for Class A (dimensions size 10). Class B contains methodB() that takes a pointer of A Class as a parameter and store the parameter value into the first unused slot in the array.
How to find out which slot if free. How to get the length of an array to traverse. I tried the floowing
sizeof(A1) where A1 was the array of pointer object for Class A.
Thanks for any help!
Thanks a lot.