In my app i declare a pointer as a member variable(double *pTab. This pointer will be used as a pointer on an array of double. In one of the member function, i want to do some calculation which do affectation like that:
for(i=1;i<=n;i++)
{
*(pTab+i)=Value_i;
}
I don't want that this function return value so i decide it will be type "void".
And now i want to use this function in another member method. So, if i call the first function, i would like to know if i will be able to get one of specific value of the array.
For example, could i just return the value *(pTab+i2)?
thanks in advance for your help
jayjay
for(i=1;i<=n;i++)
{
*(pTab+i)=Value_i;
}
I don't want that this function return value so i decide it will be type "void".
And now i want to use this function in another member method. So, if i call the first function, i would like to know if i will be able to get one of specific value of the array.
For example, could i just return the value *(pTab+i2)?
thanks in advance for your help
jayjay