Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualradioteeth

Posted 02 January 2013 - 11:49 PM


int x, y;
float array[ ARRAY_SIZE ];

for(x = 0; x < ARRAY_SIZE; x++)
    for(y = x+1; y < ARRAY_SIZE; y++)
        if(fabs(array[x] - array[y]) < EPSILON)
            printf("array[%d] (%f) ~ array[%d] (%f)\n", x, array[x], y, array[y]);

#3radioteeth

Posted 18 December 2012 - 04:37 PM

[source lang="cpp"]int x, y;float array[ ARRAY_SIZE ];for(x = 0; x < ARRAY_SIZE; x++) for(y = x+1; y < ARRAY_SIZE; y++) if(fabs(array[x] - array[y]) < EPSILON) printf("array[%d] (%f) ~ array[%d] (%f)\n", x, array[x], y, array[y]);[/source]

#2radioteeth

Posted 18 December 2012 - 04:35 PM

[source lang="cpp"]int x, y;float array[ ARRAY_SIZE ];for(x = 0; x < ARRAY_SIZE; x++) for(y = x+1; y < ARRAY_SIZE; y++) if(fabs(array[x] - array[y]) < EPSILON) printf("array[%d] (%f) ~ array[%d] (%f)\n", x, y, array[x], array[y]);[/source]

#1radioteeth

Posted 18 December 2012 - 04:34 PM

[source lang="cpp"]int x, y;float array[SIZE];for(x = 0; x < ARRAY_SIZE; x++) for(y = x+1; y < ARRAY_SIZE; y++) if(fabs(array[x] - array[y]) < EPSILON) printf("array[%d] (%f) ~ array[%d] (%f)\n", x, y, array[x], array[y]);[/source]

PARTNERS