sorry for asking the question but can any one here see whats worng with the following
Code:
int main (void)
{
//...Determining whether there is stored tree or not...
printf("\n+--------------------------+");
printf("\n| Guessing Game |");
printf("\n|------------By------------|");
printf("\n|------------?-------------|");
printf("\n+--------------------------+");
printf("\n\n\nPress any key to continue...");
//getch();
//clrscr();
FILE *in;
in = fopen ( "people.txt", "rb" );
if (in == NULL)
{
//fclose(in);
//BeginNew();
//Continue();
}
else
{
//fclose(in);
//ReadFile();
//Continue();
}
return 0;
}
when i run that i get 2 errors the first is about the use of FILE:
Code:
C:\guessing_game\Game.c(35) : error C2275: 'FILE' : illegal use of this type as an expression
the other is:
Code:
C:\guessing_game\Game.c(35) : error C2065: 'in' : undeclared identifier
ive gone through various posts here and gone through the FAQ for files but as far as i can see im doing nothing wrong.
Can any one offer a bit of insight as to what im doing wrong or am missing?