Splinter
Member
K been using a guide on how to code in C and i have been doing simple programs that it states to show how different functions work, such as:
#include <stdio.h>
#define MAX 10
int main ()
{
FILE *f
int x;
f=fopen("out", "w") ;
if (!f)
return 1 ;
for(x=1; x<=MAX; x++)
fprintf(f,"%d\n" ,x) ;
fclose (f) ;
return 0 ;
}
Its just that my compiler says i have a missing prototype for main.
??????
#include <stdio.h>
#define MAX 10
int main ()
{
FILE *f
int x;
f=fopen("out", "w") ;
if (!f)
return 1 ;
for(x=1; x<=MAX; x++)
fprintf(f,"%d\n" ,x) ;
fclose (f) ;
return 0 ;
}
Its just that my compiler says i have a missing prototype for main.
??????