Printing 2D arrays

 

I have a 2D array which I print to check on values:

double array [][2];

ArrayResize(array,count);
for(i=0;i<count;i++)
  for(j=0;j<2;j++)
  Print(array[i,j]);

the output looks like this:

Can anybody please let me know if it is possible to get the array values to print side by side?

thanks

 
sd59:

I have a 2D array which I print to check on values:

the output looks like this:

Can anybody please let me know if it is possible to get the array values to print side by side?

Yes, of course . . .

Do this . . .

double array [][2];

ArrayResize(array, count);
for(i = 0; i < count; i++)
  Print(array[i, 0], " ", array[i, 1] );
 
Great, thanks!