i have a problem in making an array representing a table as following: i have to prompt the user to enter x,y values to get another value needed for
calculation so making a 2d array like a[x][y] to get another value in the equation but the problem is that all the values of x, y are not integer numbers
and no linear relation to convert them to integers
ex. values of y are 1.38, 1.3958 , 1.3982
values of x are .3 , .358 , .387
to get the desired values
the problem is not the number i want to save but the number representing those values:
for example:
double a[x][y]={1,2,3
4,5,6}
i want to prompt the user to enter x,y to represent the number inside the array but x,y are not integers.
as following:
he must enter diameter 1.334 inch with beta ratio .345 to represent a value of a factor=2 to be used in my equation
excellent,
that is exactly what i meant
thanks very much
it was a problem i faced with a lot of talbles of data that non integer values needed to represent a certain value of an array.