Here is my code:
and the problem lies where "FILE *fp;" is...
int Start( void )
printf ( "Starting...\n\n"
"All questions will be multiple choice, answer with either\n"
"1, 2, 3 or 4.\n\n\n" );
/* here will be open data.txt */
if ( ( fp = fopen( "data.txt", "r" ) ) == NULL )
fprintf (stderr, "Error opening file.\n");
The error i get is.
[C++ Error] main.c(76): E2140 Declaration is not allowed here
I checked weather it would compiler under another compiler, and Dev-C++ does the job. Why would Borland have a b!tch about where the Declaration is?
Thanks for anyone that can help me.