It is possible to start a C++ array at some index other than zero??
Such as one, similar to the option in Fortran.
e.x.
int i, index= 1;
double array[9];
for (i = 1; i <=10; i++)
{
array[i] = index*20;
// array doesn't start at zero
}
It is possible to start a C++ array at some index other than zero??
Such as one, similar to the option in Fortran.
e.x.
int i, index= 1;
double array[9];
for (i = 1; i <=10; i++)
{
array[i] = index*20;
// array doesn't start at zero
}