Is it really an "error", or just a "warning"?
Code:
/* code */
return (0);
} <press the return key here, maybe twice for good measure, then save the file>
[edit]Wait, I see. Your indentation is horrible. [Newbs really ought to be required to learn indentation first.] This is that you have:
Code:
#include <stdio.h>
{
void fileio (void);
{
char USERINPUT[100]
double RECORD[100];
FILE *BINARYFILE;
printf ("Enter a file to be opened?\n");
scanf ("%d", &USERINPUT);
if ( ( BINARYFILE = fopen(USERINPUT, "rb" ) ) == NULL )
{
printf( "Sorry! The file could not be opened\n" );
}
else
{
printf ("%s\n", USERINPUT);
fscanf (BINARYFILE, "%d", RECORD);
while ( !feof(BINARYFILE) )
{
printf ("%s\n", RECORD);
fread (BINARYFILE, "%d", RECORD);
}
void replace (RECORD[], char RECORD2[])
{
int i, j, length;
i = -9999.0
for ( j=0;j<length; ++j )
{
RECORD[j] = RECORD2[i];
--i;
}
printf("%s\n", RECORD);
}
return(0);
}