This is a short program I have been working on.....I have got it to open a binaryfile...however I would like to use a function called replace (void replace (double *array, int size)) that will replace the smallest element in the array with -9999.0. All help would be appreciated!
Code:#include <stdio.h> int main (void) { FILE *binaryfile; int i,x; binaryfile = fopen ("numbers.bin", "rb"); for (i=1; i<=10; ++i) { fread (&x, sizeof(int), 1, binaryfile); printf ("%d ", x); } fclose (binaryfile); return (0); }



LinkBack URL
About LinkBacks



