Guest_imported
New member
- Jan 1, 1970
- 0
howdy,
-I am declaring an array with 100 index.->Data[100];
-Then I initialize all to zero.
-like below.
for(int count;count<100;count++)
Data[count]=0;
-Next Im going to use only 20 index space in the array Data[100]; And the rest of the value would be zero sinc I intitialize to zero.
***My question to you experts is, is there a function or
an easy way to have C++ count how many index are use.
For example we know I only use 20 index space.So it there
is a way then C++ will say,"Oh you use 20 index space".
I hope you can understand my question.And thanks in advance.
-I am declaring an array with 100 index.->Data[100];
-Then I initialize all to zero.
-like below.
for(int count;count<100;count++)
Data[count]=0;
-Next Im going to use only 20 index space in the array Data[100]; And the rest of the value would be zero sinc I intitialize to zero.
***My question to you experts is, is there a function or
an easy way to have C++ count how many index are use.
For example we know I only use 20 index space.So it there
is a way then C++ will say,"Oh you use 20 index space".
I hope you can understand my question.And thanks in advance.