I need to do a very simple task like:
Code: Select all
y[0.5] = 1;
y[1.5] = 2;
y[2.5] = 3;
It seems like the array index should only contain a solid integer.
Is there any way to do that type of array assignment
(float-type of array index)?
Any help would be very much appreciated.
Thank you,
raysa