Rick and Dave have already found and explained the errors. Here again the short version and notes:
error C2447: "{": Function header missing
Although nothing has been really called anywhere below main, the error arises because a function name is missing.
--- snip --
inFile.close();
}
int unusedmenu(){ char ch;
...
return 0;
}
-- snip ---
In addition, a pair of brackets seems to be unnecessary.
Using goto is not a good style of programming and should be avoided.
Note: I get this warnings at ch = getch().
warning C4996: 'getch': The POSIX name for this item is deprecated.
Instead, use the ISO C and C++ conformant name: _getch.
The function definitions for these declarations do not exist.
void SaveStudent();
void displayAll();
void Searchdisplay(int);
void modifyStudent(int);
void deleteStudent(int);
void DisplayClassResult();
void DisplayResult();